FROMLIST: [PATCH v3 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)
committerBruno Martins <bgcngm@gmail.com>
Fri, 20 Oct 2023 16:03:36 +0000 (17:03 +0100)
commita247c32c935338126933422f703429705c3248ab
treef1c3e7ebabcc7bbcd9ed067beb87154b6cd18c5f
parent4f9ba149dca5a96672bd1a4c3ddb1f31ba92ceea
FROMLIST: [PATCH v3 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