ARM: 8789/1: signal: copy registers using __copy_to_user()
authorJulien Thierry <julien.thierry@arm.com>
Tue, 11 Sep 2018 09:11:06 +0000 (10:11 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Fri, 5 Oct 2018 09:51:15 +0000 (10:51 +0100)
commit5ca451cf6ed04443774bbb7ee45332dafa42e99f
tree73f4aeb814b3746878935c69d75c86b24de1e68a
parenta3c0f84765bb429ba0fd23de1c57b5e1591c9389
ARM: 8789/1: signal: copy registers using __copy_to_user()

When saving the ARM integer registers, use __copy_to_user() to
copy them into user signal frame, rather than __put_user_error().
This has the benefit of disabling/enabling PAN once for the whole copy
intead of once per write.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/kernel/signal.c