coreboot-kgpe-d16/src/lib
Duncan Laurie 13bc5e5c80 lib/coreboot_tables: Zero framebuffer structure
Zero the framebuffer structure so if it is not filled in (either if
no display is present or if there is an error) then it does not
provide garbage data to the payload.

This was noticed when booting a board without a display attached as
the payload wrote to the framebuffer at a random address.

With this change the payload can properly handle the case where a
display is not attached and not corrupt memory.

Change-Id: I8114d88496cd2a4f2e7f07f377fe76f3180a7f40
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/20367
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
2017-06-27 02:16:03 +00:00
..
gnat Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
b64_decode.c src/lib: Add "int" following "unsigned" 2017-03-09 17:24:17 +01:00
boot_device.c lib/boot_device: add RW boot device construct 2016-08-19 03:07:05 +02:00
bootblock.c src/lib: Move asmlinkage before type 2017-03-13 17:21:26 +01:00
bootmem.c
bootmode.c
cbfs.c src/lib: Fix space between type, * and variable name 2017-03-09 17:27:02 +01:00
cbmem_common.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
cbmem_console.c cbmem_console: Fix undefined behavior 2017-06-14 19:51:38 +02:00
cbmem_stage_cache.c
compute_ip_checksum.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
coreboot_table.c lib/coreboot_tables: Zero framebuffer structure 2017-06-27 02:16:03 +00:00
debug.c src/lib: Add "int" following "unsigned" 2017-03-09 17:24:17 +01:00
delay.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
edid.c lib/edid: Split out fill_lb_framebuffer() 2017-05-30 18:32:44 +02:00
edid_fill_fb.c lib/edid: Split out fill_lb_framebuffer() 2017-05-30 18:32:44 +02:00
ext_stage_cache.c soc/intel/apollolake: Implement stage cache to improve resume time 2016-10-07 18:18:14 +02:00
fallback_boot.c Kconfig: Add choice of framebuffer mode 2017-06-04 18:47:19 +02:00
fmap.c lib/fmap: provide RW region device support 2016-08-19 18:17:04 +02:00
gcc.c src/lib: Move asmlinkage before type 2017-03-13 17:21:26 +01:00
gcov-glue.c src/lib: Clean up general issues found by checkpatch.pl 2017-03-15 05:05:04 +01:00
gcov-io.c src/lib: Use tabs instead of spaces 2017-03-13 15:46:02 +01:00
gcov-io.h src/lib: Fix brace positions 2017-03-13 17:21:16 +01:00
gcov-iov.h
generic_dump_spd.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
generic_sdram.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
gpio.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
halt.c src/lib: Fix brace positions 2017-03-13 17:21:16 +01:00
hardwaremain.c src/lib: Use tabs instead of spaces 2017-03-13 15:46:02 +01:00
hexdump.c
hexstrtobin.c
hw-time-timer.adb Hook up libhwbase in ramstage 2016-11-29 23:45:40 +01:00
imd.c src/lib: Remove unnecessary code 2017-03-13 21:23:58 +01:00
imd_cbmem.c src/lib: Use tabs instead of spaces 2017-03-13 15:46:02 +01:00
jpeg.c src/lib/jpeg: Fix missing closing brace 2017-03-29 13:05:18 +02:00
jpeg.h src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
Kconfig lib/edid: Split out fill_lb_framebuffer() 2017-05-30 18:32:44 +02:00
libgcc.c
libgcov.c src/lib: Move assignment out of if condition 2017-03-15 05:04:45 +01:00
lzma.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
lzmadecode.c src/lib: Remove semicolon from end of macro 2017-03-13 21:24:26 +01:00
lzmadecode.h src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
Makefile.inc Add support for Undefined Behavior Sanitizer 2017-06-14 19:56:59 +02:00
malloc.c
memchr.c
memcmp.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
memcpy.c
memmove.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
memrange.c src/lib: Use tabs instead of spaces 2017-03-13 15:46:02 +01:00
memset.c
nhlt.c lib/nhlt: add support for setting the oem_revision 2016-12-01 08:17:42 +01:00
primitive_memtest.c src/lib: Add space before ( 2017-03-09 17:30:21 +01:00
prog_loaders.c src/lib: Remove unnecessary code 2017-03-13 21:23:58 +01:00
prog_ops.c
program.ld lib/program.ld: add .sdata sections 2016-10-31 19:33:44 +01:00
ramtest.c src/lib: Remove unnecessary code 2017-03-13 21:23:58 +01:00
reg_script.c src/lib: Clean up general issues found by checkpatch.pl 2017-03-15 05:05:04 +01:00
region_file.c lib: add region file support 2016-12-08 16:10:28 +01:00
reset.c Consolidate reset API, add generic reset_prepare mechanism 2017-06-13 20:53:09 +02:00
rmodule.c src/lib: Use tabs instead of spaces 2017-03-13 15:46:02 +01:00
rmodule.ld
romstage_handoff.c lib: put romstage_handoff implementation in own compilation unit 2016-12-01 08:16:47 +01:00
romstage_stack.c intel post-car: Increase stacktop alignment 2016-11-18 20:59:12 +01:00
rtc.c
selfboot.c src: change coreboot to lowercase 2017-06-07 12:09:15 +02:00
spd_bin.c lib/spd_bin: Print out correct SMBus SPD address in dump_spd_info 2017-06-09 23:57:38 +02:00
stack.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
thread.c src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
timer.c src/lib: Clean up general issues found by checkpatch.pl 2017-03-15 05:05:04 +01:00
timer_queue.c src/lib: Fix spacing 2017-03-13 17:16:08 +01:00
timestamp.c src/lib: Fix space between type, * and variable name 2017-03-09 17:27:02 +01:00
tlcl.c src/lib: Clean up general issues found by checkpatch.pl 2017-03-15 05:05:04 +01:00
tlcl_internal.h src/lib: Fix brace positions 2017-03-13 17:21:16 +01:00
tlcl_structures.h src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
tpm2_marshaling.c drivers/i2c/tpm: use iobuf library for marshaling commands 2017-04-24 19:07:07 +02:00
tpm2_marshaling.h drivers/i2c/tpm: use iobuf library for marshaling commands 2017-04-24 19:07:07 +02:00
tpm2_tlcl.c cr50: process uninitialized values gracefully 2017-06-21 20:29:11 +00:00
tpm2_tlcl_structures.h cr50: process uninitialized values gracefully 2017-06-21 20:29:11 +00:00
tpm_error_messages.h src/lib: Wrap lines at 80 columns 2017-03-13 17:21:02 +01:00
trace.c src/lib: Fix checkpatch warnings 2016-09-07 22:28:00 +02:00
ubsan.c Add support for Undefined Behavior Sanitizer 2017-06-14 19:56:59 +02:00
version.c
wrdd.c