mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/1] x86/power: only verify usable RAM regions during hibernation E820 check
@ 2026-06-20  8:15 Marco Scardovi
  2026-06-20  8:15 ` [PATCH 1/1] " Marco Scardovi
  0 siblings, 1 reply; 13+ messages in thread
From: Marco Scardovi @ 2026-06-20  8:15 UTC (permalink / raw)
  To: moravec
  Cc: rafael, pavel, tglx, mingo, bp, dave.hansen, x86, hpa, crecklin,
	linux-pm, linux-kernel, regressions, regressions, Marco Scardovi

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(-)

-- 
2.54.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-06-30  6:52 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-20  8:15 [PATCH 0/1] x86/power: only verify usable RAM regions during hibernation E820 check Marco Scardovi
2026-06-20  8:15 ` [PATCH 1/1] " Marco Scardovi
2026-06-20  9:20   ` Milan Oravec
2026-06-23 12:59   ` Rafael J. Wysocki
2026-06-23 15:11     ` Milan Oravec
2026-06-23 16:47       ` [PATCH v2 0/4] PM: hibernate: Add relaxed_memmap option for x86 E820 integrity check Marco Scardovi
2026-06-23 16:47         ` [PATCH v2 1/4] PM: hibernate: Declare hibernate_relaxed_memmap Marco Scardovi
2026-06-23 16:47         ` [PATCH v2 2/4] PM: hibernate: Define and parse hibernate=relaxed_memmap parameter Marco Scardovi
2026-06-23 16:47         ` [PATCH v2 3/4] x86/power: Implement relaxed E820 memory map integrity check Marco Scardovi
2026-06-23 16:47         ` [PATCH v2 4/4] Documentation: Document hibernate=relaxed_memmap parameter option Marco Scardovi
2026-06-29 13:04         ` [PATCH v2 0/4] PM: hibernate: Add relaxed_memmap option for x86 E820 integrity check Milan Oravec
2026-06-29 19:53           ` Marco Scardovi
2026-06-30  6:52             ` Milan Oravec

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®