Philippe Mathieu-Daudé
ef0cf1887e
tests/qtest/fdc-test: Add a regression test for CVE-2021-20196
...
Without the previous commit, when running 'make check-qtest-i386'
with QEMU configured with '--enable-sanitizers' we get:
AddressSanitizer:DEADLYSIGNAL
=================================================================
==287878==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000344
==287878==The signal is caused by a WRITE memory access.
==287878==Hint: address points to the zero page.
#0 0x564b2e5bac27 in blk_inc_in_flight block/block-backend.c:1346:5
#1 0x564b2e5bb228 in blk_pwritev_part block/block-backend.c:1317:5
#2 0x564b2e5bcd57 in blk_pwrite block/block-backend.c:1498:11
#3 0x564b2ca1cdd3 in fdctrl_write_data hw/block/fdc.c:2221:17
#4 0x564b2ca1b2f7 in fdctrl_write hw/block/fdc.c:829:9
#5 0x564b2dc49503 in portio_write softmmu/ioport.c:201:9
Add the reproducer for CVE-2021-20196.
Suggested-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20211124161536.631563-4-philmd@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
(cherry picked from commit cc20926e9b8077bff6813efc8dcdeae90d1a3b10)
Signed-off-by: Michael Roth <michael.roth@amd.com>
2021-12-14 15:05:11 -06:00
..
2021-06-21 05:50:57 +02:00
2021-07-05 13:03:16 +02:00
2020-08-21 06:30:20 -04:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2021-07-08 14:41:59 -05:00
2021-05-14 12:28:01 +02:00
2021-04-12 22:37:11 +01:00
2021-01-19 14:38:51 +00:00
2021-05-01 10:03:51 +02:00
2021-05-01 10:03:52 +02:00
2021-12-14 14:05:24 -06:00
2021-12-14 14:05:20 -06:00
2020-08-21 06:30:20 -04:00
2021-02-19 06:29:05 +01:00
2020-08-21 06:30:20 -04:00
2021-07-09 16:09:12 +01:00
2020-11-03 16:51:13 +01:00
2021-01-29 15:54:42 +00:00
2021-01-29 15:54:42 +00:00
2021-01-29 15:54:44 +00:00
2020-09-29 02:14:30 -04:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2020-11-04 12:00:02 -05:00
2020-10-12 11:50:49 -04:00
2020-01-12 11:42:41 +01:00
2020-10-12 11:50:50 -04:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-06-03 16:43:27 +01:00
2020-08-21 06:30:20 -04:00
2021-06-17 07:10:32 -05:00
2020-11-03 16:51:13 +01:00
2020-08-21 06:30:20 -04:00
2021-12-14 15:05:11 -06:00
2021-03-22 17:34:31 +08:00
2021-03-16 14:19:54 -04:00
2021-06-24 11:42:54 +02:00
2021-08-03 19:34:51 +02:00
2021-03-16 14:19:54 -04:00
2020-08-21 06:30:20 -04:00
2021-06-03 16:43:27 +01:00
2020-08-21 06:30:20 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2021-05-14 12:28:01 +02:00
2021-05-14 12:28:01 +02:00
2020-08-21 06:30:20 -04:00
2020-11-04 12:00:02 -05:00
2020-11-10 08:51:30 +01:00
2021-05-14 12:28:01 +02:00
2021-03-19 10:37:46 -04:00
2020-08-21 06:30:20 -04:00
2021-05-12 18:20:52 +02:00
2021-07-08 14:42:00 -05:00
2020-08-21 06:30:20 -04:00
2021-08-11 13:39:50 +02:00
2020-08-21 06:30:20 -04:00
2020-10-24 07:23:19 +02:00
2020-08-21 06:30:20 -04:00
2021-07-29 08:07:28 +02:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-01-19 15:45:14 +00:00
2021-03-30 14:05:33 +01:00
2020-10-27 11:10:32 +00:00
2021-05-14 12:28:01 +02:00
2020-12-10 11:30:44 +00:00
2021-06-17 07:10:32 -05:00
2020-11-20 13:34:22 +01:00
2020-11-20 13:35:33 +01:00
2021-07-06 08:33:51 +02:00
2021-07-26 21:09:39 +02:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-06-03 16:43:27 +01:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-01-29 10:47:28 +00:00
2020-12-15 12:51:59 -05:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-03-19 10:15:06 +01:00
2021-03-18 09:22:55 +00:00
2020-08-21 06:30:20 -04:00
2021-02-16 17:15:39 +01:00
2021-07-09 10:38:19 +10:00
2021-05-14 12:28:01 +02:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-03-08 17:20:03 +00:00
2020-08-21 06:30:20 -04:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2020-12-10 12:15:11 -05:00
2021-03-18 09:22:55 +00:00
2021-03-19 10:15:06 +01:00
2021-03-18 09:22:55 +00:00
2021-06-17 07:10:32 -05:00
2020-08-21 06:30:20 -04:00
2020-03-05 12:18:39 -05:00
2020-06-19 07:25:55 -04:00
2020-06-09 14:18:04 -04:00
2021-06-03 16:43:27 +01:00
2020-03-05 12:18:33 -05:00
2020-08-21 06:30:20 -04:00
2020-03-05 12:18:47 -05:00
2020-08-21 06:30:20 -04:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2020-03-05 12:18:39 -05:00
2021-05-14 12:28:01 +02:00
2020-03-05 12:18:39 -05:00
2020-08-21 06:30:20 -04:00
2020-06-26 06:45:29 -04:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2021-08-11 13:40:01 +02:00
2021-03-18 09:22:55 +00:00
2021-07-05 13:03:16 +02:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2021-06-04 13:47:08 +02:00
2020-01-12 11:42:41 +01:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2020-08-21 06:30:20 -04:00
2021-01-29 10:47:28 +00:00