]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Use probe_address() to read instructions
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 24 Feb 2020 18:02:10 +0000 (18:02 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 2 Jun 2020 10:59:08 +0000 (20:59 +1000)
commit26c5d5572c9c24e58811a142b96bfc62fb089ed3
tree57dfdc64d9726b44f06780fd8db35d07763cfa4c
parent0d4d0538cf4b98aa30bb07265e9dcd6926c67243
powerpc/kprobes: Use probe_address() to read instructions

In order to avoid Oopses, use probe_address() to read the
instruction at the address where the trap happened.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7f24b5961a6839ff01df792816807f74ff236bf6.1582567319.git.christophe.leroy@c-s.fr
arch/powerpc/kernel/kprobes.c