e1465e2157
parse_microcode_blob() returns success when it reaches max_fit_entries microcode. It makes the FIT table size verification in fit_add_microcode_file() useless. This patch makes parse_microcode_blob() error out if max_fit_entries is reached. Note that this size verification is critical as a FIT table only partially listing the microcode patches can lead to boot failures as recently observed on Raptor Lake-P. BRANCH=firmware-brya-14505.B BUG=b:245380705 TEST=compilation errors out when trying to stitch more than CONFIG_CPU_INTEL_NUM_FIT_ENTRIES microcode patches. Signed-off-by: Jeremy Compostella <jeremy.compostella@intel.com> Change-Id: Id9c5fb6c1e264f3f5137d29201b9021c72d78fde Reviewed-on: https://review.coreboot.org/c/coreboot/+/67454 Reviewed-by: Selma Bensaid <selma.bensaid@intel.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Zhixing Ma <zhixing.ma@intel.com> |
||
---|---|---|
.. | ||
bpdt_formats | ||
console | ||
flashmap | ||
fpt_formats | ||
lz4 | ||
lzma | ||
tests | ||
.gitignore | ||
EXAMPLE | ||
Makefile | ||
Makefile.inc | ||
ProcessorBind.h | ||
amdcompress.c | ||
cbfs-mkpayload.c | ||
cbfs-mkstage.c | ||
cbfs-payload-linux.c | ||
cbfs.h | ||
cbfs_glue.h | ||
cbfs_image.c | ||
cbfs_image.h | ||
cbfs_sections.c | ||
cbfs_sections.h | ||
cbfscomptool.c | ||
cbfstool.c | ||
coff.h | ||
common.c | ||
common.h | ||
compress.c | ||
cse_fpt.c | ||
cse_fpt.h | ||
cse_helpers.c | ||
cse_helpers.h | ||
cse_serger.c | ||
cse_serger.h | ||
default-x86.fmd | ||
default.fmd | ||
description.md | ||
elf.h | ||
elfheaders.c | ||
elfparsing.h | ||
elogtool.c | ||
eventlog.c | ||
eventlog.h | ||
fdt.h | ||
fit.c | ||
fit.h | ||
flashmap_tests.c | ||
flashrom.c | ||
flashrom.h | ||
fmap_from_fmd.c | ||
fmap_from_fmd.h | ||
fmaptool.c | ||
fmd.c | ||
fmd.h | ||
fmd_parser.c_shipped | ||
fmd_parser.h_shipped | ||
fmd_parser.y | ||
fmd_scanner.c_shipped | ||
fmd_scanner.h_shipped | ||
fmd_scanner.l | ||
fv.h | ||
ifittool.c | ||
ifwitool.c | ||
linux.h | ||
linux_trampoline.S | ||
linux_trampoline.c | ||
linux_trampoline.h | ||
option.h | ||
partitioned_file.c | ||
partitioned_file.h | ||
platform_fixups.c | ||
rmodtool.c | ||
rmodule.c | ||
rmodule.h | ||
xdr.c |