linux-stable/arch/x86
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
..
boot .gitignore updates 2010-08-06 10:53:05 -07:00
configs x86: update defconfigs 2008-08-27 08:14:17 +02:00
crypto [CRYPTO] aes-x86-32: Remove unused return code 2008-04-21 10:19:21 +08:00
ia32 x86-64, compat: Retruncate rax after ia32 syscall entry tracing 2010-09-20 13:03:22 -07:00
kernel x86: Make Dell Latitude E5420 use reboot=pci 2012-02-11 15:37:34 +01:00
kvm KVM: x86: check for cr3 validity in ioctl_set_sregs 2010-04-01 15:52:25 -07:00
lguest lguest: set max_pfn_mapped, growl loudly at Yinghai Lu 2008-07-29 09:58:31 +10:00
lib x86, 64-bit: Fix copy_[to/from]_user() checks for the userspace address limit 2012-02-11 15:40:45 +01:00
mach-default x86: add ->pre_time_init to x86_quirks 2008-07-20 09:25:52 +02:00
mach-es7000 x86: move the last Dprintk instance to pr_debug() 2008-07-21 21:58:34 +02:00
mach-generic x86: make generic arch support NUMAQ, fix 2008-07-08 10:35:45 +02:00
mach-rdc321x removed unused #include <linux/version.h>'s 2008-08-23 12:14:12 -07:00
mach-voyager Merge branch 'generic-ipi' into generic-ipi-for-linus 2008-07-15 21:55:59 +02:00
math-emu x86: coding style fixes to arch/x86/math-emu/reg_constant 2008-06-18 15:00:13 +02:00
mm x86: Fix mmap random address range 2012-02-11 15:40:49 +01:00
oprofile oprofile, x86: Fix nmi-unsafe callgraph support 2012-02-11 15:38:13 +01:00
pci x86/pci: fix mmconfig detection with 32bit near 4g 2009-06-11 20:01:32 -07:00
power x86: Hibernate: Fix breakage on x86_32 with CONFIG_NUMA set 2008-12-05 10:55:20 -08:00
vdso x86, gcc-4.6: Use gcc -m options when building vdso 2011-02-09 22:15:39 +01:00
video x86: video/fbdev.c: add MODULE_LICENSE 2008-05-04 20:04:46 +02:00
xen xen: drop xen_sched_clock in favour of using plain wallclock time 2010-08-13 13:50:38 -07:00
Kconfig cpuidle: upon BIOS bug, default to default_idle rather than polling 2009-02-06 14:00:40 -08:00
Kconfig.cpu x86: disable static NOPLs on 32 bits 2008-09-08 11:35:43 -07:00
Kconfig.debug x86: Fix help message for STRICT_DEVMEM config option 2008-07-21 13:04:08 -07:00
Makefile x86, RDC321x: add to mach-default 2008-07-26 13:51:46 +02:00
Makefile_32.cpu x86: move i386 and x86_64 Makefiles to arch/x86 2007-10-25 22:27:34 +02:00