ARM: 8795/1: spectre-v1.1: use put_user() for __put_user()
authorJulien Thierry <julien.thierry@arm.com>
Thu, 14 Feb 2019 14:49:20 +0000 (09:49 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:18:26 +0000 (10:18 +0100)
commit17e3a84090784f814096f8c41cd21fbe40dcf565
tree25f25e7179f607fb792aa76ac85bdd0e3a5b529e
parent0cb3209d8819b58ff85bee7e4cf14a5367c00c1a
ARM: 8795/1: spectre-v1.1: use put_user() for __put_user()

Commit e3aa6243434fd9a82e84bb79ab1abd14f2d9a5a7 upstream.

When Spectre mitigation is required, __put_user() needs to include
check_uaccess. This is already the case for put_user(), so just make
__put_user() an alias of put_user().

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/include/asm/uaccess.h