diff options
Diffstat (limited to 'arch/x86_64/mm/init.c')
-rw-r--r-- | arch/x86_64/mm/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86_64/mm/init.c b/arch/x86_64/mm/init.c index efb6e845114e..9a0e98accf04 100644 --- a/arch/x86_64/mm/init.c +++ b/arch/x86_64/mm/init.c | |||
@@ -605,6 +605,11 @@ void mark_rodata_ro(void) | |||
605 | if (num_possible_cpus() > 1) | 605 | if (num_possible_cpus() > 1) |
606 | start = (unsigned long)_etext; | 606 | start = (unsigned long)_etext; |
607 | #endif | 607 | #endif |
608 | |||
609 | #ifdef CONFIG_KPROBES | ||
610 | start = (unsigned long)__start_rodata; | ||
611 | #endif | ||
612 | |||
608 | end = (unsigned long)__end_rodata; | 613 | end = (unsigned long)__end_rodata; |
609 | start = (start + PAGE_SIZE - 1) & PAGE_MASK; | 614 | start = (start + PAGE_SIZE - 1) & PAGE_MASK; |
610 | end &= PAGE_MASK; | 615 | end &= PAGE_MASK; |