qemu/tests
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
..
avocado New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
bench New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
data New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
decode New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
docker New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
fp New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
guest-debug New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
image-fuzzer New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
include New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
keys New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
lcitool New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
migration New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
multiboot New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
perf/block/qcow2 New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
plugin New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
qapi-schema New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
qemu-iotests New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
qtest hw/scsi/lsi53c895a: Fix reentrancy issues in the LSI controller (CVE-2023-0330) 2023-09-25 14:25:01 +08:00
rocker New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
tcg New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
tsan New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
uefi-test-tools New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
unit New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vm New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vmstate-static-checker-data New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
Makefile.include New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
check-block.sh New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
dbus-vmstate-daemon.sh 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
requirements.txt New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
test-qht-par.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00
vhost-user-bridge.c New upstream version 7.1.0 2022-11-03 14:19:34 +08:00