Ken'ichi Ohmichi e7706fc691 x86, kdump: fix invalid access on i386 sparsemem
Impact: fix kdump crash on 32-bit sparsemem kernels

Since linux-2.6.27, kdump has failed on i386 sparsemem kernel.
1st-kernel gets a panic just before switching to 2nd-kernel.

The cause is that a kernel accesses invalid mem_section by
page_to_pfn(image->swap_page) at machine_kexec().
image->swap_page is allocated if kexec for hibernation, but
it is not allocated if kdump. So if kdump, a kernel should
not access the mem_section corresponding to image->swap_page.

The attached patch fixes this invalid access.

Signed-off-by: Ken'ichi Ohmichi <oomichi@mxs.nes.nec.co.jp>
Cc: kexec-ml <kexec@lists.infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-10-28 16:48:24 +01:00
..
2008-10-16 16:53:14 +02:00
2008-10-16 16:53:13 +02:00
2008-10-16 09:24:41 -07:00
2008-10-16 16:53:13 +02:00
2008-10-14 10:34:58 +02:00
2008-09-29 10:04:53 +02:00
2008-10-13 10:21:10 +02:00
2008-10-16 16:53:12 +02:00
2008-04-26 17:35:47 +02:00
2008-07-22 14:35:57 +02:00
2008-10-16 16:53:30 +02:00
2008-10-16 16:53:30 +02:00
2008-10-21 15:54:40 +02:00
2008-10-16 16:53:15 +02:00
2008-10-12 12:37:32 +02:00
2008-07-26 12:00:04 -07:00
2008-10-12 12:37:32 +02:00
2008-10-18 14:29:15 +01:00
2008-10-23 00:11:07 -04:00
2008-08-25 12:31:32 +02:00
2008-10-20 08:52:41 -07:00
2008-08-25 10:59:18 +02:00
2008-07-16 12:15:17 -07:00
2008-07-26 16:31:35 +02:00
2008-07-22 14:35:57 +02:00
2008-10-22 22:55:23 -07:00
2008-09-05 17:44:08 +02:00
2008-07-22 14:35:57 +02:00
2008-08-21 10:01:52 +02:00
2008-10-16 16:53:13 +02:00
2008-10-16 16:53:15 +02:00
2008-07-22 14:35:57 +02:00
2008-10-16 16:52:59 +02:00
2008-10-16 16:53:15 +02:00
2008-10-22 07:31:28 +02:00