diff options
author | Ludwig Nussel <[email protected]> | 2011-11-15 14:46:46 -0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2011-12-05 17:07:23 +0100 |
commit | 9af0c7a6fa860698d080481f24a342ba74b68982 (patch) | |
tree | 51d5b388fc86379193bcdbba16fa6cd44dcb16ec /net/lapb/lapb_subr.c | |
parent | 176239153049a023d060ce95b05f7ef31667e362 (diff) |
x86: Fix mmap random address range
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 <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: [email protected]
Cc: "H. Peter Anvin" <[email protected]>
Cc: Harvey Harrison <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions