summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/assembler.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2018-10-15 11:32:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-10-18 09:16:28 +0200
commit4a1948d692f13cafaf2ca5c228f789a7ee74f6c7 (patch)
treec4c06b5d7477966d63ea23a7bea2c9b7c574da3a /arch/arm/include/asm/assembler.h
parentf64824a3d475b573cbab5c35942223e0474096be (diff)
downloadlinux-stable-4a1948d692f13cafaf2ca5c228f789a7ee74f6c7.tar.gz
linux-stable-4a1948d692f13cafaf2ca5c228f789a7ee74f6c7.tar.bz2
linux-stable-4a1948d692f13cafaf2ca5c228f789a7ee74f6c7.zip
ARM: spectre-v1: use get_user() for __get_user()
Commit b1cd0a14806321721aae45f5446ed83a3647c914 upstream. Fixing __get_user() for spectre variant 1 is not sane: we would have to add address space bounds checking in order to validate that the location should be accessed, and then zero the address if found to be invalid. Since __get_user() is supposed to avoid the bounds check, and this is exactly what get_user() does, there's no point having two different implementations that are doing the same thing. So, when the Spectre workarounds are required, make __get_user() an alias of get_user(). Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk> Signed-off-by: David A. Long <dave.long@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/include/asm/assembler.h')
0 files changed, 0 insertions, 0 deletions