]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/patches/suse-2.6.27.31/patches.arch/ppc-pseries_remove_lmb-PAGE_SHIFTT.patch
Move xen patchset to new version's subdir.
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / ppc-pseries_remove_lmb-PAGE_SHIFTT.patch
CommitLineData
00e5a55c
BS
1Subject: Bug 431380 – UPT-LTE: mem dlpar remove generates oops(.pseries_remove_lmb+0x28/0xb8)
2From: Nathan Fontenot <nfont@austin.ibm.com>
3References: 431380 - LTC48430
4
5
6Testing hotplug memory remove has revealed that we can oops in
7pseries_lmb_remove(). The incorrect shift causes a NULL pointer
8dereference in the page_zone() inline routine.
9
10I have only been able to reproduce the oops on kernels with large pages
11enabled.
12
13Tested on Power5 and Power6 with and without large pages enabled.
14
15
16Signed-off-by: Olaf Hering <olh@suse.de>
17
18---
19 arch/powerpc/platforms/pseries/hotplug-memory.c | 2 +-
20 1 file changed, 1 insertion(+), 1 deletion(-)
21
22--- a/arch/powerpc/platforms/pseries/hotplug-memory.c
23+++ b/arch/powerpc/platforms/pseries/hotplug-memory.c
24@@ -21,7 +21,7 @@ static int pseries_remove_lmb(unsigned l
25 struct zone *zone;
26 int ret;
27
28- start_pfn = base >> PFN_SECTION_SHIFT;
29+ start_pfn = base >> PAGE_SHIFT;
30 zone = page_zone(pfn_to_page(start_pfn));
31
32 /*