]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()
authorKees Cook <keescook@chromium.org>
Thu, 16 Feb 2017 00:44:37 +0000 (01:44 +0100)
committerRussell King <rmk+kernel@armlinux.org.uk>
Thu, 16 Feb 2017 15:58:32 +0000 (15:58 +0000)
The 64-bit get_user() wasn't clearing the high word due to a typo in the
error handler. The exception handler entry was already correct, though.
Noticed during recent usercopy test additions in lib/test_user_copy.c.

Signed-off-by: Kees Cook <keescook@chromium.org>
Cc: stable@vger.kernel.org
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/lib/getuser.S

index 8ecfd15c3a0248db29667fe3dc6ec6429fc9fc7c..df73914e81c8344feccac5df8d5791dcbe92ed60 100644 (file)
@@ -67,7 +67,7 @@ ENTRY(__get_user_4)
 ENDPROC(__get_user_4)
 
 ENTRY(__get_user_8)
-       check_uaccess r0, 8, r1, r2, __get_user_bad
+       check_uaccess r0, 8, r1, r2, __get_user_bad8
 #ifdef CONFIG_THUMB2_KERNEL
 5: TUSER(ldr)  r2, [r0]
 6: TUSER(ldr)  r3, [r0, #4]