]> git.karo-electronics.de Git - linux-beck.git/commit
[PATCH] RLIMIT_AS checking fix
authorakpm@osdl.org <akpm@osdl.org>
Sun, 1 May 2005 15:58:35 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:35 +0000 (08:58 -0700)
commit119f657c72fc07d6fd28c61de59cfba1566970a9
tree33c8070aa904c4919cf244cdcd7c01e54589bb9e
parentf021e9210185b46e41ec3a0e78ec1621e168eacb
[PATCH] RLIMIT_AS checking fix

Address bug #4508: there's potential for wraparound in the various places
where we perform RLIMIT_AS checking.

(I'm a bit worried about acct_stack_growth().  Are we sure that vma->vm_mm is
always equal to current->mm?  If not, then we're comparing some other
process's total_vm with the calling process's rlimits).

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/linux/mm.h
mm/mmap.c
mm/mremap.c