qemu/hw/scsi
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
..
Kconfig New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
emulation.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
esp-pci.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
esp.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
lsi53c895a.c hw/scsi/lsi53c895a: Fix reentrancy issues in the LSI controller (CVE-2023-0330) 2023-09-25 14:25:01 +08:00
megasas.c 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
mfi.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mpi.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mptconfig.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mptendian.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mptsas.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
mptsas.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
scsi-bus.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
scsi-disk.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
scsi-generic.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
spapr_vscsi.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
srp.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
trace-events New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
trace.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vhost-scsi-common.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vhost-scsi.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vhost-user-scsi.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
viosrp.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
virtio-scsi-dataplane.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
virtio-scsi.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vmw_pvscsi.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vmw_pvscsi.h New upstream version 7.1.0 2022-11-03 14:19:34 +08:00