]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: allow kuser helpers to be removed from the vector page
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 23 Jul 2013 17:37:00 +0000 (18:37 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 31 Jul 2013 21:01:48 +0000 (22:01 +0100)
commit239ec96af5c9d5ee7717c385c355bff94161c0e6
tree54032cefa513a3ae63971998caa90eea4736180c
parent3cba3025a7e417a1d3c5ea520dbd53278daf71f7
ARM: allow kuser helpers to be removed from the vector page

Provide a kernel configuration option to allow the kernel user helpers
to be removed from the vector page, thereby preventing their use with
ROP (return orientated programming) attacks.  This option is only
visible for CPU architectures which natively support all the operations
which kernel user helpers would normally provide, and must be enabled
with caution.

Cc: <stable@vger.kernel.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-armv.S
arch/arm/kernel/traps.c
arch/arm/mm/Kconfig