diff options
author | Ken'ichi Ohmichi <[email protected]> | 2008-10-20 13:51:52 +0900 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2008-10-28 16:48:24 +0100 |
commit | e7706fc691513b0f06adb3de3d6ac04293180146 (patch) | |
tree | 06a8ace4426f38ec9015373d6f3b08abd6a57456 /fs/jbd2/commit.c | |
parent | 1281675e9c0d4d42d993697f4daab45ef22d49da (diff) |
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 <[email protected]>
Cc: kexec-ml <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions