powerpc/kprobes: Blacklist common exception handlers
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 19 Apr 2017 15:29:52 +0000 (20:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Apr 2017 10:32:26 +0000 (20:32 +1000)
Blacklist all the exception common/OOL handlers as the kernel stack is not yet
setup, which means we can't take a trap at this point.

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/head-64.h

index 5067048daad4cc683f8465c54f9eb3b212e12ceb..86eb87382031dfff0d40db1d52ada5d18b450d93 100644 (file)
@@ -213,6 +213,7 @@ name:
        USE_TEXT_SECTION();                                     \
        .balign IFETCH_ALIGN_BYTES;                             \
        .global name;                                           \
+       _ASM_NOKPROBE_SYMBOL(name);                             \
        DEFINE_FIXED_SYMBOL(name);                              \
 name: