]> git.karo-electronics.de Git - linux-beck.git/commit
x86_64: fix kernel rodata NX setting
authorPekka Paalanen <pq@iki.fi>
Mon, 12 May 2008 19:21:01 +0000 (21:21 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 23 May 2008 19:53:07 +0000 (21:53 +0200)
commit72b59d67f80983f7bb587b086fb4cb1bc95263a4
tree78160905e5c943a0a19fe7774c927a73d61638b7
parent25b0b44a1c732ccfc58095cdd8438955a0a19fff
x86_64: fix kernel rodata NX setting

Without CONFIG_DYNAMIC_FTRACE, mark_rodata_ro() would mark a wrong
number of pages as no-execute. The bug was introduced in the patch
"ftrace: dont write protect kernel text". The symptom was machine reboot
after a CPU hotplug.

Signed-off-by: Pekka Paalanen <pq@iki.fi>
Acked-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/mm/init_64.c