FROMLIST: [PATCH v2 3/3] arm64: compat: Add CONFIG_KUSER_HELPERS
authorKevin Brodsky <kevin.brodsky@arm.com>
Wed, 23 Nov 2016 15:41:15 +0000 (15:41 +0000)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:50 +0000 (21:13 +0000)
commita1c94d05c1426f842bf3303662186b2002b2a258
tree23c3c1136552f0fc93a2cb6fef1ad7459b8534af
parent21f825f597d1f4bc3a3660bbd95d47855a1cfb11
FROMLIST: [PATCH v2 3/3] arm64: compat: Add CONFIG_KUSER_HELPERS

(cherry picked from url http://lkml.iu.edu/hypermail/linux/kernel/1709.1/01903.html)

Make it possible to disable the kuser helpers by adding a KUSER_HELPERS
config option (enabled by default). When disabled, all kuser
helpers-related code is removed from the kernel and no mapping is done
at the fixed high address (0xffff0000); any attempt to use a kuser
helper from a 32-bit process will result in a segfault.

Signed-off-by: Kevin Brodsky <kevin.brodsky@arm.com>
Signed-off-by: Mark Salyzyn <salyzyn@android.com>
Bug: 9674955
Bug: 63737556
Bug: 20045882
Change-Id: Ie8c543301d39bfe88ef71fb6a669e571914b117b
arch/arm64/Kconfig
arch/arm64/kernel/Makefile
arch/arm64/kernel/vdso.c