ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user()
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 02:10:09 +0000 (21:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:20:45 +0000 (10:20 +0100)
commit96d4881f04b916118a0f043360e52bdf51a58f15
treeddc39dd0c92f0833f5afff5a09bbfc3d03dbb412
parent6d3ccf78e2867718c400a0a0e773adac721a470b
ARM: 8792/1: oabi-compat: copy oabi events using __copy_to_user()

Commit 319508902600c2688e057750148487996396e9ca upstream.

Copy events to user using __copy_to_user() rather than copy members of
individually with __put_user_error().
This has the benefit of disabling/enabling PAN once per event intead of
once per event member.

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/sys_oabi-compat.c