Skip to content

Commit

Permalink
parisc: Allow live-patching of __meminit functions
Browse files Browse the repository at this point in the history
When making the text sections writeable with set_kernel_text_rw(1),
include all text sections including those in the __init section.
Otherwise functions marked with __meminit will stay read-only.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org>	# 4.20+
  • Loading branch information
Helge Deller committed May 3, 2019
1 parent 2d94a83 commit d19a129
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/parisc/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ static void __init map_pages(unsigned long start_vaddr,

void __init set_kernel_text_rw(int enable_read_write)
{
unsigned long start = (unsigned long) _text;
unsigned long start = (unsigned long) __init_begin;
unsigned long end = (unsigned long) &data_start;

map_pages(start, __pa(start), end-start,
Expand Down

0 comments on commit d19a129

Please sign in to comment.