Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Al Viro and committed by
Linus Torvalds
1c109fab 4cea8776

+5 -1
+5 -1
arch/x86/include/asm/uaccess.h
··· 433 433 #define __get_user_asm_ex(x, addr, itype, rtype, ltype) \ 434 434 asm volatile("1: mov"itype" %1,%"rtype"0\n" \ 435 435 "2:\n" \ 436 - _ASM_EXTABLE_EX(1b, 2b) \ 436 + ".section .fixup,\"ax\"\n" \ 437 + "3:xor"itype" %"rtype"0,%"rtype"0\n" \ 438 + " jmp 2b\n" \ 439 + ".previous\n" \ 440 + _ASM_EXTABLE_EX(1b, 3b) \ 437 441 : ltype(x) : "m" (__m(addr))) 438 442 439 443 #define __put_user_nocheck(x, ptr, size) \