]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix atomic_t overflow in vm
authorAlan Cox <alan@redhat.com>
Fri, 23 May 2008 20:04:31 +0000 (13:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 24 May 2008 16:56:09 +0000 (09:56 -0700)
commit8273cdc3550a993ebc8c84e8904055981300a351
treea2af11a3991b1bebe9d764ab6d4d28891e86eda2
parent1480a6ee9ba19bfe6746992f6bb225f41a69527d
mm: fix atomic_t overflow in vm

The atomic_t type is 32bit but a 64bit system can have more than 2^32
pages of virtual address space available.  Without this we overflow on
ludicrously large mappings

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/proc/proc_misc.c
include/linux/mman.h
mm/mmap.c
mm/nommu.c
mm/swap.c