]> git.baikalelectronics.ru Git - kernel.git/commit
efi: cper: check section header more appropriately
authorShuai Xue <xueshuai@linux.alibaba.com>
Mon, 23 Aug 2021 11:56:54 +0000 (19:56 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 27 Aug 2021 14:03:01 +0000 (16:03 +0200)
commit265f76c4ede8bee02a88056fb3f7cda1341a2d57
tree452ab6ca0fc0666a8eb4444b20afb27e3c635b7d
parent494236d314198bf8ced8f1ea668e7db949a64022
efi: cper: check section header more appropriately

When checking a generic status block, we iterate over all the generic data
blocks. The loop condition checks that the generic data block is valid.
Because the size of data blocks (excluding error data) may vary depending
on the revision and the revision is contained within the data block, we
should ensure that enough of the current data block is valid appropriately
for different revision.

Signed-off-by: Shuai Xue <xueshuai@linux.alibaba.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/cper.c