x86: mark the .rodata section also NX
authorArjan van de Ven <arjan@linux.intel.com>
Wed, 6 Feb 2008 21:39:45 +0000 (22:39 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 6 Feb 2008 21:39:45 +0000 (22:39 +0100)
commit984bb80d94d891592ab16d4d129b988792752c7b
treeefc22a5eb3e3cf05b056bedcbe48bbdb48b99ad8
parenta57dae3aa4d00a000b5bac4238025438204c78b2
x86: mark the .rodata section also NX

The .rodata section shouldn't just be read-only,
but also non-executable. This is free since we've broken
up the 2MB page already anyway.

also update test_nx to check for this.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/test_nx.c
arch/x86/mm/init_64.c