]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/kprobes: Mark newly allocated probes as ROX
authorRussell Currey <ruscur@russell.cc>
Wed, 9 Jun 2021 01:34:26 +0000 (11:34 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 21 Jun 2021 11:13:20 +0000 (21:13 +1000)
commit2d899d4220a35c13fa03c4b30790072448c14ad9
tree13c234330f10fb9df2378f74c2f3ff36cb276cca
parent57e9b1305edb84eaaae8e1d596da993ef3839682
powerpc/kprobes: Mark newly allocated probes as ROX

Add the arch specific insn page allocator for powerpc. This allocates
ROX pages if STRICT_KERNEL_RWX is enabled. These pages are only written
to with patch_instruction() which is able to write RO pages.

Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
[jpn: Reword commit message, switch to __vmalloc_node_range()]
Signed-off-by: Jordan Niethe <jniethe5@gmail.com>
Reviewed-by: Daniel Axtens <dja@axtens.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210609013431.9805-5-jniethe5@gmail.com
arch/powerpc/kernel/kprobes.c