Skip to content

x86/power: only verify usable RAM regions during hibernation E820 check

Marco Scardovi linux-pm lkml regressions 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1x86/power: only verify usable RAM regions during hibernation E820 checkarch/x86/power/hibernate.c+11 -411 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/1] x86/power: only verify usable RAM regions during hibernation E820 check

This patch addresses a hibernation resume regression on some UEFI platforms (such as the HP OmniBook X Flip) where resume from hibernation fails with the error:
"Hibernate inconsistent memory map detected!"

The issue is triggered because the UEFI firmware or bootloader (like GRUB) makes non-deterministic allocations or shifts ACPI/reserved memory regions across boots. This changes the CRC32 checksum computed over the entire E820 table, even if the usable system RAM layout remains completely identical and safe to restore.

We fix this by restricting the E820 map CRC32 calculation to only include entries of type E820_TYPE_RAM. This maintains the check for system RAM safety while preventing false-positive mismatches due to dynamic shifts in reserved and ACPI ranges.

Marco Scardovi (1):
x86/power: only verify usable RAM regions during hibernation E820
check

 arch/x86/power/hibernate.c | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)
Signature · 1 line
2.54.0