Skip to contentSkip to conversation

Patch "ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()" has been added to the 4.9-stable tree

PATCH [email protected] 1 participant 1 message Feb 20, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

    ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()

to the 4.9-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:

     arm-8658-1-uaccess-fix-zeroing-of-64-bit-get_user.patch

and it can be found in the queue-4.9 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 9e3440481845b2ec22508f60837ee2cab2b6054f Mon Sep 17 00:00:00 2001

From: Kees Cook <[email protected]>
Date: Thu, 16 Feb 2017 01:44:37 +0100
Subject: ARM: 8658/1: uaccess: fix zeroing of 64-bit get_user()

From: Kees Cook <[email protected]>

commit 9e3440481845b2ec22508f60837ee2cab2b6054f upstream.

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.

---
 arch/arm/lib/getuser.S |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/lib/getuser.S +1 -1
@@ -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]

Patches currently in stable-queue which might be from [email protected] are

queue-4.9/arm-8658-1-uaccess-fix-zeroing-of-64-bit-get_user.patch