]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mm: fix madvise infinine loop
authorNick Piggin <npiggin@suse.de>
Wed, 28 Mar 2007 19:29:38 +0000 (21:29 +0200)
committerAdrian Bunk <bunk@stusta.de>
Wed, 28 Mar 2007 19:29:38 +0000 (21:29 +0200)
commit921e8ebfc8b0e41dc724ea52f4b95b7c44f6e880
treefd6779c379ac22493f2016d402e0f38bd4dc3aa4
parentef1136fb7497e0ad6b419add0b463c9a770c42ee
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>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
mm/madvise.c