projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05194cf
)
x86-32, mm: The WP test should be done on a kernel page
author
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 21 Sep 2012 19:43:06 +0000
(12:43 -0700)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Fri, 21 Sep 2012 19:45:25 +0000
(12:45 -0700)
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
patch
|
blob
|
history
diff --git
a/arch/x86/mm/init_32.c
b/arch/x86/mm/init_32.c
index 575d86f85ce400b2a6798876bd76250bda317828..e537b351e8ce5c9489944d58db1adfb8eadbacfe 100644
(file)
--- a/
arch/x86/mm/init_32.c
+++ b/
arch/x86/mm/init_32.c
@@
-712,7
+712,7
@@
static void __init test_wp_bit(void)
"Checking if this processor honours the WP bit even in supervisor mode...");
/* Any page-aligned address will do, the test is non-destructive */
- __set_fixmap(FIX_WP_TEST, __pa(&swapper_pg_dir), PAGE_
READONLY
);
+ __set_fixmap(FIX_WP_TEST, __pa(&swapper_pg_dir), PAGE_
KERNEL_RO
);
boot_cpu_data.wp_works_ok = do_test_wp_bit();
clear_fixmap(FIX_WP_TEST);