]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit29cfd3205e5e7dc35865026444f046b4351f8df4
treeefc22a5eb3e3cf05b056bedcbe48bbdb48b99ad8
parent4b84a17d4e61d1c7926c009c3e8b8a95f1be23f4
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