Skip to content
Commit e036bd33 authored by Ben Zhang's avatar Ben Zhang Committed by Tony Luck
Browse files

pstore/ram: verify ramoops header before saving record



On some devices the persistent memory contains junk after a cold boot,
and /dev/pstore/dmesg-ramoops-* are created with random data which is
not the result of a kernel crash.

This patch adds a ramoops header check and skips any
persistent_ram_zone that does not have a valid header.

Signed-off-by: default avatarBen Zhang <benzh@chromium.org>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 07239fc8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment