]> git.baikalelectronics.ru Git - kernel.git/commit
mprotect: prevent alteration of the PAT bits
authorVenki Pallipadi <venkatesh.pallipadi@intel.com>
Wed, 14 May 2008 23:05:51 +0000 (16:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 15 May 2008 02:11:15 +0000 (19:11 -0700)
commit0e9a19a9ac5bc76a115d0bc0ce1fe74ba5863c9e
treef61d58e955b3159007ef77513c1c4f1ed2c9ec23
parent46d8b1040a62e543af26815003fe4eedc7a85dc2
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 <venkatesh.pallipadi@intel.com>
Signed-off-by: Suresh Siddha <suresh.b.siddha@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-x86/pgtable.h
mm/mprotect.c