[PATCH] mm: fix madvise infinine loop
commit00e9fa2d6421fbbefb4c02821a1e779a3ce47781
authorNick Piggin <npiggin@suse.de>
Fri, 16 Mar 2007 21:38:10 +0000 (16 13:38 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 17 Mar 2007 02:25:04 +0000 (16 19:25 -0700)
treed5b57449b693f24ee106af062ca8c6bfcef6d1e7
parent0465fc0a1c42e18438d391f3a7e661493a9ad68e
[PATCH] mm: fix madvise infinine loop

madvise(MADV_REMOVE) can go into an infinite loop or cause an oops if the
call covers a region from the start of a vma, and extending past that vma.

Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Badari Pulavarty <pbadari@us.ibm.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/madvise.c