qemu/hw
Thomas Huth 46eeafe26b hw/scsi/lsi53c895a: Fix reentrancy issues in the LSI controller (CVE-2023-0330)
We cannot use the generic reentrancy guard in the LSI code, so
we have to manually prevent endless reentrancy here. The problematic
lsi_execute_script() function has already a way to detect whether
too many instructions have been executed - we just have to slightly
change the logic here that it also takes into account if the function
has been called too often in a reentrant way.

The code in fuzz-lsi53c895a-test.c has been taken from an earlier
patch by Mauro Matteo Cascella.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1563
Message-Id: <20230522091011.1082574-1-thuth@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: zeng_chi <zengchi@kylinos.cn>
2023-09-25 14:25:01 +08:00
..
9pfs New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
acpi acpi: cpuhp: fix guest-visible maximum access size to the legacy reg block 2023-07-26 09:04:22 +00:00
adc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
alpha New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
arm New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
audio New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
avr New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
block New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
char New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
core New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
cpu New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
cris New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
cxl New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
display virtio-gpu: Add support for virgl video acceleration 2022-11-17 15:32:24 +08:00
dma New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
gpio New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
hppa New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
hyperv New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
i2c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
i386 set default machine type to be microvm if CONFIG_MICROVM is defined 2022-11-09 22:24:21 +08:00
ide New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
input New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
intc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ipack New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ipmi New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
isa New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
loongarch New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
m68k New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mem New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
microblaze New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mips New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
misc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
net net: tulip: Restrict DMA engine to memories 2022-11-09 22:24:24 +08:00
nios2 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
nubus New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
nvme New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
nvram New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
openrisc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
pci New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
pci-bridge New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
pci-host New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
pcmcia New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ppc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
rdma [PATCH v3] hw/pvrdma: Protect against buggy or malicious guest driver 2022-11-09 22:24:24 +08:00
remote New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
riscv New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
rtc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
rx New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
s390x New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
scsi hw/scsi/lsi53c895a: Fix reentrancy issues in the LSI controller (CVE-2023-0330) 2023-09-25 14:25:01 +08:00
sd New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
sensor New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
sh4 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
smbios New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
sparc New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
sparc64 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
ssi a few spelling fixes for the visible strings in binaries 2022-11-09 22:24:23 +08:00
timer New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
tpm New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
tricore New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
usb New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vfio New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
virtio !5 virtio: add a new vcpu watchdog 2023-07-26 08:54:30 +00:00
watchdog New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
xen New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
xenpv New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
xtensa New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
Kconfig New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
meson.build New upstream version 7.1.0 2022-11-03 14:19:34 +08:00