[PATCH] Fix MADV_REMOVE protection checking
authorHugh Dickins <hugh@veritas.com>
Mon, 17 Apr 2006 21:46:32 +0000 (22:46 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 18 Apr 2006 01:22:18 +0000 (18:22 -0700)
commit69cf0fac6052c5bd3fb3469a41d4216e926028f8
treef403d0731549835fbf406fa4cd0910d9aec1d953
parente14d95f773b7365b6ba2d2105522c92b007c6db1
[PATCH] Fix MADV_REMOVE protection checking

madvise_remove needs to respect file and mmap protections.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
[ Will the real CVE-2006-1524 stand up, please.. ]
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/madvise.c