diff options
Diffstat (limited to 'arch/x86/mm/init_32.c')
-rw-r--r-- | arch/x86/mm/init_32.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/mm/init_32.c b/arch/x86/mm/init_32.c index 4d1156545194..a72737c05747 100644 --- a/arch/x86/mm/init_32.c +++ b/arch/x86/mm/init_32.c | |||
@@ -736,6 +736,8 @@ static int noinline do_test_wp_bit(void) | |||
736 | } | 736 | } |
737 | 737 | ||
738 | #ifdef CONFIG_DEBUG_RODATA | 738 | #ifdef CONFIG_DEBUG_RODATA |
739 | const int rodata_test_data = 0xC3; | ||
740 | EXPORT_SYMBOL_GPL(rodata_test_data); | ||
739 | 741 | ||
740 | void mark_rodata_ro(void) | 742 | void mark_rodata_ro(void) |
741 | { | 743 | { |
@@ -765,6 +767,7 @@ void mark_rodata_ro(void) | |||
765 | set_pages_ro(virt_to_page(start), size >> PAGE_SHIFT); | 767 | set_pages_ro(virt_to_page(start), size >> PAGE_SHIFT); |
766 | printk("Write protecting the kernel read-only data: %luk\n", | 768 | printk("Write protecting the kernel read-only data: %luk\n", |
767 | size >> 10); | 769 | size >> 10); |
770 | rodata_test(); | ||
768 | 771 | ||
769 | #ifdef CONFIG_CPA_DEBUG | 772 | #ifdef CONFIG_CPA_DEBUG |
770 | printk("Testing CPA: undo %lx-%lx\n", start, start + size); | 773 | printk("Testing CPA: undo %lx-%lx\n", start, start + size); |