summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-ep93xx.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2018-07-09 10:05:22 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2018-07-26 17:00:28 +0100
commitc32cd419d6650e42b9cdebb83c672ec945e6bd7e (patch)
tree7c729bf35c1fcdb71e256107aec60a41a4e2080d /drivers/gpio/gpio-ep93xx.c
parent10573ae547c85b2c61417ff1a106cffbfceada35 (diff)
ARM: signal: copy registers using __copy_from_user()
__get_user_error() is used as a fast accessor to make copying structure members in the signal handling path as efficient as possible. However, with software PAN and the recent Spectre variant 1, the efficiency is reduced as these are no longer fast accessors. In the case of software PAN, it has to switch the domain register around each access, and with Spectre variant 1, it would have to repeat the access_ok() check for each access. It becomes much more efficient to use __copy_from_user() instead, so let's use this for the ARM integer registers. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'drivers/gpio/gpio-ep93xx.c')
0 files changed, 0 insertions, 0 deletions