]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit837e2dfc0a0e396b0b2a36d97bbb7aa3f0530d1c
tree1122628edc5663db5526e4bf333f3e3351332fbc
parentbdc04318119c7af13adccbff64923b4e50e5f664
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