]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
ARM: 8789/1: signal: copy registers using __copy_to_user()
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 02:10:06 +0000 (21:10 -0500)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commitc1c5a20504ad2aef0b560ed7944f333285d1e012
treeaedc6806581ec850a267edef11267bdf615008e9
parentbcec8b516c4b5937f6ef4f3f8ebc5db0bebd39e5
ARM: 8789/1: signal: copy registers using __copy_to_user()

BugLink: https://bugs.launchpad.net/bugs/1837813
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>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm/kernel/signal.c