]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: fix madvise infinine loop
authorNick Piggin <npiggin@suse.de>
Fri, 16 Mar 2007 21:38:10 +0000 (13:38 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Mar 2007 19:49:22 +0000 (12:49 -0700)
commit522850039c6c8a7ff8df8f9b6b118141aca50d62
treed67638d3a0156ab1adcb57c51f45614bd459c0f0
parent7639e962234c76031d1ddf436def7fd9602be560
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
mm/madvise.c