]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Add skeleton for Kernel Userspace Execution Prevention
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 18 Apr 2019 06:51:19 +0000 (16:51 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Apr 2019 13:05:56 +0000 (23:05 +1000)
commit863917781797c476ed160cae6b56ff5456ed6593
tree0f458e2ca41b6e94626f1d7bc41c4557e42a44ec
parent99db5c9279761eb0004ca1a0799d4c26d3f00465
powerpc: Add skeleton for Kernel Userspace Execution Prevention

This patch adds a skeleton for Kernel Userspace Execution Prevention.

Then subarches implementing it have to define CONFIG_PPC_HAVE_KUEP
and provide setup_kuep() function.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Don't split strings, use pr_crit_ratelimited()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/admin-guide/kernel-parameters.txt
arch/powerpc/include/asm/kup.h
arch/powerpc/mm/fault.c
arch/powerpc/mm/init-common.c
arch/powerpc/platforms/Kconfig.cputype