ARM: 8797/1: spectre-v1.1: harden __copy_to_user
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 02:10:14 +0000 (21:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:20:46 +0000 (10:20 +0100)
commit27dd16a03e5dd81dc37ddae2b51add3504dff4b8
tree925d3d68dd63bc20f3d726a72644e139d6818414
parentd5e5018179eada4f3d95d11fdfa1c9bd14595f0b
ARM: 8797/1: spectre-v1.1: harden __copy_to_user

Commit a1d09e074250fad24f1b993f327b18cc6812eb7a upstream.

Sanitize user pointer given to __copy_to_user, both for standard version
and memcopy version of the user accessor.

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/lib/copy_to_user.S
arch/arm/lib/uaccess_with_memcpy.c