audk/OvmfPkg/VirtNorFlashDxe
Gerd Hoffmann 735d0a5e2e OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too
It is possible to find variable entries with State being 0xff, i.e. not
updated since flash block erase.   This indicates the variable driver
could not complete the header write while appending a new entry, and
therefore State was not set to VAR_HEADER_VALID_ONLY.

This can only happen at the end of the variable list, so treat this as
additional "end of variable list" condition.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-Id: <20240116171105.37831-6-kraxel@redhat.com>
2024-01-18 19:25:14 +00:00
..
VirtNorFlash.c OvmfPkg/VirtNorFlashDxe: allow larger writes without block erase 2024-01-18 19:25:14 +00:00
VirtNorFlash.h OvmfPkg/VirtNorFlashDxe: add casts to UINTN and UINT32 2024-01-18 19:25:14 +00:00
VirtNorFlashDxe.c OvmfPkg: Update code to be more C11 compliant by using __func__ 2023-04-10 14:19:57 +00:00
VirtNorFlashDxe.inf OvmfPkg/VirtNorFlashDxe: sanity-check variables 2024-01-09 16:31:57 +00:00
VirtNorFlashFvb.c OvmfPkg/VirtNorFlashDxe: ValidateFvHeader: unwritten state is EOL too 2024-01-18 19:25:14 +00:00