diff options
author | Russell King | 2018-07-09 10:28:12 +0100 |
---|---|---|
committer | Russell King | 2018-08-02 17:41:38 +0100 |
commit | b1cd0a14806321721aae45f5446ed83a3647c914 (patch) | |
tree | d97f31f577fde389b410224139b342e9538c2cc5 /arch/cris/arch-v10 | |
parent | d09fbb327d670737ab40fd8bbb0765ae06b8b739 (diff) |
ARM: spectre-v1: use get_user() for __get_user()
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>
Diffstat (limited to 'arch/cris/arch-v10')
0 files changed, 0 insertions, 0 deletions