qemu-e2k/hw
Dov Murik e5aaeac355 hw/i386: Improve bounds checking in OVMF table parsing
When pc_system_parse_ovmf_flash() parses the optional GUIDed table in
the end of the OVMF flash memory area, the table length field is checked
for sizes that are too small, but doesn't error on sizes that are too
big (bigger than the flash content itself).

Add a check for maximal size of the OVMF table, and add an error report
in case the size is invalid.  In such a case, an error like this will be
displayed during launch:

    qemu-system-x86_64: OVMF table has invalid size 4047

and the table parsing is skipped.

Signed-off-by: Dov Murik <dovmurik@linux.ibm.com>
Message-Id: <20220222071906.2632426-2-dovmurik@linux.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
2022-03-06 05:08:23 -05:00
..
9pfs
acpi hw/acpi/erst: clean up unused IS_UEFI_CPER_RECORD macro 2022-03-04 08:30:52 -05:00
adc
alpha
arm target/arm: Report KVM's actual PSCI version to guest in dtb 2022-03-02 19:27:37 +00:00
audio
avr
block
char
core clock-vmstate: Add missing END_OF_LIST 2022-03-02 18:12:40 +00:00
cpu
cris
display * Improve virtio-net failover test 2022-02-22 13:07:32 +00:00
dma
gpio
hppa
hyperv
i2c hw/i2c: flatten pca954x mux device 2022-03-02 19:27:36 +00:00
i386 hw/i386: Improve bounds checking in OVMF table parsing 2022-03-06 05:08:23 -05:00
ide
input hw/input/tsc210x: Don't abort on bad SPI word widths 2022-03-02 19:27:36 +00:00
intc pnv/xive2: Add support for 8bits thread id 2022-03-02 06:51:39 +01:00
ipack
ipmi
isa
m68k
mem
microblaze
mips
misc aspeed queue: 2022-02-28 16:46:45 +00:00
net
nios2
nubus
nvme
nvram hw/nvram: use at24 macro 2022-02-21 18:21:54 +01:00
openrisc hw/openrisc/openrisc_sim: Add support for initrd loading 2022-02-26 10:39:36 +09:00
pci
pci-bridge
pci-host ppc/pnv: Add support for PHB5 "Address-based trigger" mode 2022-03-02 06:51:39 +01:00
pcmcia
ppc hw/ppc/spapr_vio.c: use g_autofree in spapr_dt_vdevice() 2022-03-02 06:51:40 +01:00
rdma
remote
riscv
rtc rtc: Have event RTC_CHANGE identify the RTC by QOM path 2022-02-28 11:39:35 +01:00
rx
s390x s390x/cpumodel: Bump up QEMU model to a stripped-down IBM z15 GA1 2022-02-28 11:29:15 +01:00
scsi
sd
sensor
sh4
smbios hw/smbios: add assertion to ensure handles of tables 19 and 32 do not collide 2022-03-04 08:30:52 -05:00
sparc
sparc64
ssi migration: Remove load_state_old and minimum_version_id_old 2022-03-02 18:20:45 +00:00
timer
tpm
tricore
usb Trivial branch pull request 20220222 2022-02-22 20:17:09 +00:00
vfio
virtio vhost-vdpa: make notifiers _init()/_uninit() symmetric 2022-03-06 05:08:23 -05:00
watchdog
xen
xenpv
xtensa
Kconfig
meson.build