summaryrefslogtreecommitdiff
path: root/arch/arm/kernel/sys_oabi-compat.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2018-07-09 10:13:36 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2018-08-02 17:41:37 +0100
commit42019fc50dfadb219f9e6ddf4c354f3837057d80 (patch)
tree7c2173ccdbd6aec6c1bf37434df28a408f986384 /arch/arm/kernel/sys_oabi-compat.c
parentc32cd419d6650e42b9cdebb83c672ec945e6bd7e (diff)
ARM: vfp: use __copy_from_user() when restoring VFP state
__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. Use __copy_from_user() rather than __get_user_err() for individual members when restoring VFP state. Acked-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/kernel/sys_oabi-compat.c')
0 files changed, 0 insertions, 0 deletions