]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
asm-generic: make copy_from_user() zero the destination properly
authorAl Viro <viro@zeniv.linux.org.uk>
Wed, 17 Aug 2016 20:36:37 +0000 (16:36 -0400)
committerSasha Levin <alexander.levin@verizon.com>
Thu, 6 Oct 2016 02:40:20 +0000 (22:40 -0400)
commit11e9b4ed30479de5555fa95022e958caadc6edc7
tree268a6729c6983c623a75124c33e5eaa6ba35e25a
parent62fc2f90511bc865c2d6386bc348283005c0f951
asm-generic: make copy_from_user() zero the destination properly

[ Upstream commit 2545e5da080b4839dd859e3b09343a884f6ab0e3 ]

... in all cases, including the failing access_ok()

Note that some architectures using asm-generic/uaccess.h have
__copy_from_user() not zeroing the tail on failure halfway
through.  This variant works either way.

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
include/asm-generic/uaccess.h