Thomas Huth
9fe6e8139d
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>
(cherry picked from commit b987718bbb1d0eabf95499b976212dd5f0120d75)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
2023-05-28 12:02:26 +03:00
..
2022-09-27 20:51:20 +02:00
2022-12-01 02:29:59 -05:00
2022-08-29 15:29:13 +02:00
2022-04-06 14:31:55 +02:00
2022-05-03 15:16:51 +04:00
2022-09-27 20:51:21 +02:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-07-14 16:24:38 +02:00
2022-05-03 09:13:17 -07:00
2022-09-27 20:51:20 +02:00
2022-07-18 13:25:13 +01:00
2022-11-22 05:19:00 -05:00
2022-11-07 14:08:18 -05:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-09-27 20:51:21 +02:00
2022-08-25 15:16:13 +02:00
2022-04-06 14:31:55 +02:00
2022-10-28 09:39:21 +02:00
2022-09-29 18:23:51 +02:00
2022-10-28 14:31:49 +02:00
2022-05-03 15:16:51 +04:00
2022-10-28 11:17:12 +02:00
2022-10-11 14:06:55 +02:00
2022-05-03 15:16:51 +04:00
2022-09-20 11:23:02 +02:00
2022-11-06 10:14:26 +01:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-09-20 11:23:02 +02:00
2022-09-27 20:51:20 +02:00
2022-05-03 15:16:51 +04:00
2023-05-28 12:02:26 +03:00
2022-10-11 12:36:15 +02:00
2022-10-11 12:36:15 +02:00
2022-10-11 12:36:15 +02:00
2022-10-11 12:36:15 +02:00
2022-10-11 12:36:15 +02:00
2022-05-03 15:16:51 +04:00
2022-10-11 14:06:55 +02:00
2022-05-03 15:16:51 +04:00
2022-09-27 20:51:20 +02:00
2022-09-30 18:43:44 +02:00
2022-09-20 12:34:31 +02:00
2022-04-06 14:31:55 +02:00
2022-05-03 15:16:51 +04:00
2022-10-11 14:06:55 +02:00
2022-10-28 11:17:12 +02:00
2022-05-28 11:42:56 +02:00
2022-09-27 20:51:21 +02:00
2022-10-28 14:32:09 +02:00
2022-11-05 20:35:45 +01:00
2022-05-03 15:16:51 +04:00
2022-08-25 15:24:09 +02:00
2022-08-29 15:28:51 +02:00
2022-05-03 15:16:51 +04:00
2022-10-12 08:43:40 +02:00
2022-09-27 20:51:21 +02:00
2022-08-25 15:24:09 +02:00
2022-08-25 15:24:09 +02:00
2022-12-03 21:56:13 +01:00
2022-10-26 14:56:42 -04:00
2022-05-03 15:16:51 +04:00
2022-07-18 13:20:14 +01:00
2022-09-19 15:12:28 +02:00
2022-06-03 08:03:28 +02:00
2022-04-06 14:31:43 +02:00
2022-06-10 14:32:35 +01:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-09 11:47:55 +01:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-09-27 20:51:21 +02:00
2022-05-03 15:16:51 +04:00
2022-08-29 15:28:51 +02:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-10-09 16:38:45 -04:00
2022-09-27 20:51:21 +02:00
2022-11-23 10:58:48 +01:00
2022-10-07 09:41:51 -04:00
2022-08-16 11:36:21 +02:00
2022-05-03 15:16:51 +04:00
2022-08-25 15:24:09 +02:00
2022-04-06 14:31:55 +02:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2020-01-12 11:42:41 +01:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-04-06 14:31:55 +02:00
2022-10-28 09:39:21 +02:00
2022-05-03 15:16:51 +04:00
2022-10-28 09:39:21 +02:00
2022-10-28 09:39:21 +02:00
2020-03-05 12:18:39 -05:00
2022-10-28 09:39:21 +02:00
2022-10-28 09:39:21 +02:00
2022-05-03 15:16:51 +04:00
2022-09-27 20:51:20 +02:00
2022-10-22 23:17:06 +02:00
2022-10-24 12:24:32 +02:00
2022-09-27 20:51:20 +02:00
2022-09-27 20:51:21 +02:00
2022-09-27 20:51:21 +02:00
2022-05-12 12:07:06 +02:00
2022-09-27 20:51:20 +02:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00
2022-10-12 08:43:40 +02:00
2022-05-03 15:16:51 +04:00
2022-05-03 15:16:51 +04:00