Patch "openrisc: fix the fix of copy_from_user()" has been added to the 4.7-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
openrisc: fix the fix of copy_from_user()
to the 4.7-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:
openrisc-fix-the-fix-of-copy_from_user.patch
and it can be found in the queue-4.7 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
8e4b72054f554967827e18be1de0e8122e6efc04Mon Sep 17 00:00:00 2001
From: Guenter Roeck <[email protected]>
Date: Sat, 17 Sep 2016 12:57:24 -0700
Subject: openrisc: fix the fix of copy_from_user()
From: Guenter Roeck <[email protected]>
commit 8e4b72054f554967827e18be1de0e8122e6efc04 upstream.
Since commit acb2505d0119 ("openrisc: fix copy_from_user()"), copy_from_user() returns the number of bytes requested, not the number of bytes not copied.
--- arch/openrisc/include/asm/uaccess.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/openrisc/include/asm/uaccess.h +1 -1
@@ -276,7 +276,7 @@ copy_from_user(void *to, const void *frounsigned long res = n;if (likely (access_ok (VERIFY_READ , from, n))) - n =__copy_tofrom_user (to, from, n); + res =__copy_tofrom_user (to, from, n);if (unlikely (res))memset (to + (n - res),0 , res);return res;
Patches currently in stable-queue which might be from [email protected] are
queue-4.7/avr32-fix-undefined-reference-to-___copy_from_user.patch queue-4.7/iio-adc-rockchip_saradc-reset-saradc-controller-before-programming-it.patch queue-4.7/openrisc-fix-the-fix-of-copy_from_user.patch