]> 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)
commitea43f13c454579fb4e1e7af7ddd5a236e7fb0020
tree1122628edc5663db5526e4bf333f3e3351332fbc
parent39af2b9578821083be0d6c9745d6e36ab9574a2d
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