Skip to content
Snippets Groups Projects
Commit 1789737c authored by Chris von Recklinghausen's avatar Chris von Recklinghausen Committed by Greg Kroah-Hartman
Browse files

PM: hibernate: x86: Use crc32 instead of md5 for hibernation e820 integrity check


[ Upstream commit f5d1499a ]

Hibernation fails on a system in fips mode because md5 is used for the e820
integrity check and is not available. Use crc32 instead.

The check is intended to detect whether the E820 memory map provided
by the firmware after cold boot unexpectedly differs from the one that
was in use when the hibernation image was created. In this case, the
hibernation image cannot be restored, as it may cover memory regions
that are no longer available to the OS.

A non-cryptographic checksum such as CRC-32 is sufficient to detect such
inadvertent deviations.

Fixes: 62a03def ("PM / hibernate: Verify the consistent of e820 memory map by md5 digest")
Reviewed-by: default avatarEric Biggers <ebiggers@google.com>
Tested-by: default avatarDexuan Cui <decui@microsoft.com>
Reviewed-by: default avatarDexuan Cui <decui@microsoft.com>
Signed-off-by: default avatarChris von Recklinghausen <crecklin@redhat.com>
[ rjw: Subject edit ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 8b4d4bd1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment