linux-stable/arch
Ludwig Nussel ad6e2b7456 x86: Fix mmap random address range
commit 9af0c7a6fa upstream.

On x86_32 casting the unsigned int result of get_random_int() to
long may result in a negative value.  On x86_32 the range of
mmap_rnd() therefore was -255 to 255.  The 32bit mode on x86_64
used 0 to 255 as intended.

The bug was introduced by 675a081 ("x86: unify mmap_{32|64}.c")
in January 2008.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: harvey.harrison@gmail.com
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Link: http://lkml.kernel.org/r/201111152246.pAFMklOB028527@wpaz5.hot.corp.google.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Willy Tarreau <w@1wt.eu>
2012-02-11 15:40:49 +01:00
..
alpha alpha: fix several security issues 2012-02-11 15:37:38 +01:00
arm ARM: 6891/1: prevent heap corruption in OABI semtimedop 2012-02-11 15:37:17 +01:00
avr32
blackfin
cris
frv
h8300
ia64 tioca: Fix assignment from incompatible pointer warnings 2011-04-30 16:53:37 +02:00
m32r
m68k tty: Mark generic_serial users as BROKEN 2009-11-09 16:52:18 -08:00
m68knommu
mips
mn10300
parisc set memory ranges in N_NORMAL_MEMORY when onlined 2012-02-11 15:37:10 +01:00
powerpc powerpc: pseries: Fix kexec on machines with more than 4TB of RAM 2012-02-11 15:37:41 +01:00
s390 KVM: s390: check cpu_id prior to using it 2012-02-11 15:37:46 +01:00
sh
sparc compat: Make compat_alloc_user_space() incorporate the access_ok() 2010-09-20 13:03:21 -07:00
sparc64 sparc64: Reschedule KGDB capture to a software interrupt. 2009-06-11 20:01:15 -07:00
um um: fix ubd cow size 2012-02-11 15:37:48 +01:00
x86 x86: Fix mmap random address range 2012-02-11 15:40:49 +01:00
xtensa
.gitignore
Kconfig