05714ccab7
This patch adds a new ..._unverified_area_... group of functions to the cbfs_map/_load/_alloc() APIs. These functions can be used to access custom FMAP sections and are meant to replace the existing cbfs_locate_file_in_region(). The name is intended to highlight that accesses through this API will not be verified when CBFS_VERIFICATION is enabled and should always be treated as if they may return malicious data. (Due to laziness I'm not adding the combination of this API with the ..._type_... variant at this point, since it seems very unlikely that we'll ever have a use case for that. If we ever do, it should be easy to add later.) (Also remove the 'inline' from cbfs_file_hash_mismatch(). I'm not sure why I put it there in the first place, probably a bad copy&paste.) Signed-off-by: Julius Werner <jwerner@chromium.org> Change-Id: I402265900f7075aa0c2f58d812c67ea63ddf2900 Reviewed-on: https://review.coreboot.org/c/coreboot/+/59678 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org> |
||
---|---|---|
.. | ||
gnat | ||
asan.c | ||
b64_decode.c | ||
bmp_logo.c | ||
boot_device.c | ||
bootblock.c | ||
bootmem.c | ||
bootmode.c | ||
bootsplash.c | ||
cb.ads | ||
cbfs.c | ||
cbmem_common.c | ||
cbmem_console.c | ||
cbmem_stage_cache.c | ||
compute_ip_checksum.c | ||
coreboot_table.c | ||
crc_byte.c | ||
decompressor.c | ||
delay.c | ||
device_tree.c | ||
dimm_info_util.c | ||
dp_aux.c | ||
edid.c | ||
edid_fill_fb.c | ||
espi_debug.c | ||
ext_stage_cache.c | ||
fallback_boot.c | ||
fit.c | ||
fit_payload.c | ||
fmap.c | ||
fw_config.c | ||
gcc.c | ||
gcov-glue.c | ||
gcov-io.c | ||
gcov-io.h | ||
gcov-iov.h | ||
gpio.c | ||
halt.c | ||
hardwaremain.c | ||
hexdump.c | ||
hexstrtobin.c | ||
hw-time-timer.adb | ||
imd.c | ||
imd_cbmem.c | ||
jpeg.c | ||
jpeg.h | ||
Kconfig | ||
Kconfig.cbfs_verification | ||
libgcc.c | ||
libgcov.c | ||
list.c | ||
lzma.c | ||
lzmadecode.c | ||
lzmadecode.h | ||
Makefile.inc | ||
malloc.c | ||
memchr.c | ||
memcmp.c | ||
memcpy.c | ||
memmove.c | ||
memrange.c | ||
memset.c | ||
metadata_hash.c | ||
nhlt.c | ||
primitive_memtest.c | ||
prog_loaders.c | ||
prog_ops.c | ||
program.ld | ||
ramdetect.c | ||
ramtest.c | ||
reg_script.c | ||
region_file.c | ||
reset.c | ||
rmodule.c | ||
rmodule.ld | ||
romstage_handoff.c | ||
rtc.c | ||
selfboot.c | ||
spd_bin.c | ||
spd_cache.c | ||
stack.c | ||
string.c | ||
thread.c | ||
timer.c | ||
timer_queue.c | ||
timestamp.c | ||
ubsan.c | ||
uuid.c | ||
version.c | ||
wrdd.c |