Skip to content

Fix early boot OOM issues for some platforms

Hongyan Xia kexec 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Fix where the real mode interrupt vector endskexec/arch/i386/kexec-x86-common.c+8 -20 replies
2/2Shrink segments to fit alignment instead of throwing them awaykexec/arch/i386/crashdump-x86.c+12 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Fix early boot OOM issues for some platforms

From: Hongyan Xia <[email protected]>

We have observed a couple of cases where after a successful kexec, the crash kernel loaded in the 2nd kernel will run out of memory and crash. We narrowed down to two issues:

1. when preparing the memory map, kexec excludes the Interrupt Vector Table. However, the end address of IVT is incorrect.
2. The wrong end address of IVT is not 1KiB aligned. When preparing the crashkernel, the memory map will reject unaligned memory chunks. On many x86 platforms this means the entire bottom 1MiB range is excluded from the crashkernel memory map, resulting in OOM when the crashkernel boots.

Patch 1 fixes 1 which is actually enough to eliminate the issue but we feel that such issue may happen again (e.g., with a weird BIOS that has unaligned e820 map), so we also have patch 2 to improve the handling of unaligned memory.

Hongyan Xia (2):
Fix where the real mode interrupt vector ends
Shrink segments to fit alignment instead of throwing them away

 kexec/arch/i386/crashdump-x86.c    | 15 ++++++++++++---
 kexec/arch/i386/kexec-x86-common.c | 10 ++++++++--
 2 files changed, 20 insertions(+), 5 deletions(-)
Signature · 7 lines
2.23.3


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec