summaryrefslogtreecommitdiffstats
path: root/arch/x86/mm/init_64.c
diff options
context:
space:
mode:
authorSteven Rostedt2009-10-27 18:15:11 +0100
committerSteven Rostedt2009-10-27 18:15:11 +0100
commit883242dd0e5faaba041528a9a99f483f2a656c83 (patch)
tree58002261f3b7335b9dc9f17bdf095997c91da10e /arch/x86/mm/init_64.c
parentx86, boot: Simplify setting of the PAE bit (diff)
downloadkernel-qcow2-linux-883242dd0e5faaba041528a9a99f483f2a656c83.tar.gz
kernel-qcow2-linux-883242dd0e5faaba041528a9a99f483f2a656c83.tar.xz
kernel-qcow2-linux-883242dd0e5faaba041528a9a99f483f2a656c83.zip
tracing: allow to change permissions for text with dynamic ftrace enabled
The commit 74e081797bd9d2a7d8005fe519e719df343a2ba8 x86-64: align RODATA kernel section to 2MB with CONFIG_DEBUG_RODATA prevents text sections from becoming read/write using set_memory_rw. The dynamic ftrace changes all text pages to read/write just before converting the calls to tracing to nops, and vice versa. I orginally just added a flag to allow this transaction when ftrace did the change, but I also found that when the CPA testing was running it would remove the read/write as well, and ftrace does not do the text conversion on boot up, and the CPA changes caused the dynamic tracer to fail on self tests. The current solution I have is to simply not to prevent change_page_attr from setting the RW bit for kernel text pages. Reported-by: Ingo Molnar <mingo@elte.hu> Cc: Suresh Siddha <suresh.b.siddha@intel.com> Cc: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'arch/x86/mm/init_64.c')
0 files changed, 0 insertions, 0 deletions