powerpc/kprobes: Blacklist exception handlers
authorNaveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Wed, 19 Apr 2017 15:29:51 +0000 (20:59 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 23 Apr 2017 10:32:25 +0000 (20:32 +1000)
commit7aa5b018bf36f733345f8814393b48011110b555
tree1122628edc5663db5526e4bf333f3e3351332fbc
parent71f6e58e5efe09b98a1862d4c25976e8f7763b67
powerpc/kprobes: Blacklist exception handlers

Introduce __head_end to mark end of the early fixed sections and use it to
blacklist all exception handlers from kprobes.

mpe: We do not need to do anything special for relocatable kernels, where the
exception vectors are split from the main kernel, as the split vectors are
already excluded by the check for kernel_text_address().

Signed-off-by: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
[mpe: Move __head_end outside #ifdef 64-bit to unbreak the 32-bit build]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/sections.h
arch/powerpc/kernel/kprobes.c
arch/powerpc/kernel/vmlinux.lds.S