]> www.infradead.org Git - users/jedix/linux-maple.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:20:44 +0000 (10:20 +0100)
commit56a0f2f329032f7feef14390bf6ea10476590e67
treeec5d9effd638a3a1325c5a9659230eb58f848f91
parent03089bb1f4974cb8cf0667d6632684d16916b95b
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