From: Venki Pallipadi Date: Wed, 14 May 2008 23:05:51 +0000 (-0700) Subject: mprotect: prevent alteration of the PAT bits X-Git-Tag: v2.6.26-rc3~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c12c4cf9411eb130b245fa8d0fbbaf989477c7b;p=pandora-kernel.git mprotect: prevent alteration of the PAT bits There is a defect in mprotect, which lets the user change the page cache type bits by-passing the kernel reserve_memtype and free_memtype wrappers. Fix the problem by not letting mprotect change the PAT bits. Signed-off-by: Venkatesh Pallipadi Signed-off-by: Suresh Siddha Signed-off-by: Ingo Molnar Signed-off-by: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed