]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.xen/xen3-x86-mark_rodata_rw-2.patch
Add a patch to fix Intel E100 wake-on-lan problems.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.xen / xen3-x86-mark_rodata_rw-2.patch
1 From: Andres Gruenbacher <agruen@suse.de>
2 Subject: Also mark rodata pages executable in mark_rodata_rw()
3
4 For review: do we also need to mark rodata pages executable in
5 mark_rodata_rw() to fully undo mark_rodata_ro()?
6
7 Signed-off-by: Andres Gruenbacher <agruen@suse.de>
8
9 Automatically created from "patches.suse/x86-mark_rodata_rw-2.patch" by xen-port-patches.py
10
11 --- head-2009-02-02.orig/arch/x86/mm/init_64-xen.c 2009-02-02 10:07:59.000000000 +0100
12 +++ head-2009-02-02/arch/x86/mm/init_64-xen.c 2009-02-02 10:08:33.000000000 +0100
13 @@ -1234,6 +1234,12 @@ void mark_rodata_rw(void)
14 printk(KERN_INFO "Write enabling the kernel read-only data: %luk\n",
15 (end - start) >> 10);
16 set_memory_rw_force(start, (end - start) >> PAGE_SHIFT);
17 +
18 + /*
19 + * The rodata section should also be executable. (The kernel text
20 + * still is!)
21 + */
22 + set_memory_x_force(rodata_start, (end - rodata_start) >> PAGE_SHIFT);
23 }
24 EXPORT_SYMBOL(mark_rodata_rw);
25 #endif