]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fix minor infoleak in get_user_ex()
authorAl Viro <viro@ZenIV.linux.org.uk>
Thu, 15 Sep 2016 01:35:29 +0000 (02:35 +0100)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 03:03:26 +0000 (19:03 -0800)
commit2739857e58e8cc8e3affc317f0ca160a01f625e9
treee5d90da3b4b22235fb7b5c82c0d414f0b1b96959
parent88f9df601990c490bb1098c08f37d7ca4273c46b
fix minor infoleak in get_user_ex()

get_user_ex(x, ptr) should zero x on failure.  It's not a lot of a leak
(at most we are leaking uninitialized 64bit value off the kernel stack,
and in a fairly constrained situation, at that), but the fix is trivial,
so...

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[ This sat in different branch from the uaccess fixes since mid-August ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 1c109fabbd51863475cd12ac206bdd249aee35af)

Orabug: 25063299
CVE-2016-9178

Signed-off-by: Kirtikar Kashyap <kirtikar.kashyap@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
arch/x86/include/asm/uaccess.h