]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: 8789/1: signal: copy registers using __copy_to_user()
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 14:49:15 +0000 (09:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:18:25 +0000 (10:18 +0100)
commit31ac7816a46854f3ac0d072dbcef91db5c14f490
tree209677484767bc024ec02ce5753f5001cd9d3184
parent0432fed9f48d6671124e19bc1b783bab2783740d
ARM: 8789/1: signal: copy registers using __copy_to_user()

Commit 5ca451cf6ed04443774bbb7ee45332dafa42e99f upstream.

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>
Signed-off-by: David A. Long <dave.long@linaro.org>
Reviewed-by: Julien Thierry <julien.thierry@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm/kernel/signal.c