x86-32, mm: The WP test should be done on a kernel page
authorH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:43:06 +0000 (12:43 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 21 Sep 2012 19:45:25 +0000 (12:45 -0700)
commit8bd753be7a96443dd5111cb07ed5907a3787c978
treef97db44a7bda6557f5730d42b02e4155e0969fd8
parent05194cfc547528a01d655262c49da3b1311c4b11
x86-32, mm: The WP test should be done on a kernel page

PAGE_READONLY includes user permission, but this is a page used
exclusively by the kernel; use PAGE_KERNEL_RO instead.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1348256595-29119-3-git-send-email-hpa@linux.intel.com
arch/x86/mm/init_32.c