Magellan Linux

Contents of /trunk/kernel26-xen/patches-2.6.25-r1/1115-2.6.25-xen-Make-xen_start_info-read-only.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 606 - (show annotations) (download)
Thu May 22 23:13:13 2008 UTC (16 years ago) by niro
File size: 966 byte(s)
-ver bump to 2.6.25-magellan-r1:
- linux-2.6.25.4
- fbcondecor-0.9.4
- squashfs-3.3
- unionfs-2.3.3
- tuxonice-3.0-rc7
- linux-phc-0.3.0
- acpi-dstd-0.9a
- reiser4
- xen-3.2.0
. ipw3945-1.2.2

1 From e353e5b752fdf09a53678852fba4c6aeca0521fc Mon Sep 17 00:00:00 2001
2 From: Eduardo Habkost <ehabkost@redhat.com>
3 Date: Mon, 14 Jan 2008 20:20:55 -0200
4 Subject: [PATCH] Make xen_start_info read-only
5
6 It will aid debugging, catching if anybody tries to write to it.
7
8 Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
9 ---
10 arch/x86/mm/init_64.c | 6 ++++++
11 1 files changed, 6 insertions(+), 0 deletions(-)
12
13 diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c
14 index 48f9912..0e017e5 100644
15 --- a/arch/x86/mm/init_64.c
16 +++ b/arch/x86/mm/init_64.c
17 @@ -495,6 +495,12 @@ static void xen_finish_init_mapping(void)
18 __va(__pa(xen_start_info->mod_start));
19
20 xprintk("messed with start_info.\n");
21 + xprintk("making it read-only:\n");
22 +
23 + /* Make it read-only to catch if anybody touches it by accident.
24 + */
25 + __make_page_readonly(xen_start_info);
26 +
27 xprintk("unmapping:\n");
28
29 /* Destroy the Xen-created mappings beyond the kernel image as
30 --
31 1.5.4.1
32