qemu-e2k/tests/qtest/fuzz
Alexander Bulekov b8b52178e2 fuzz/generic-fuzz: add a limit on DMA bytes written
As we have repplaced fork-based fuzzing, with reboots - we can no longer
use a timeout+exit() to avoid slow inputs. Libfuzzer has its own timer
that it uses to catch slow inputs, however these timeouts are usually
seconds-minutes long: more than enough to bog-down the fuzzing process.
However, I found that slow inputs often attempt to fill overly large DMA
requests. Thus, we can mitigate most timeouts by setting a cap on the
total number of DMA bytes written by an input.

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
2023-02-16 23:02:46 -05:00
..
fork_fuzz.c
fork_fuzz.h
fork_fuzz.ld fuzz: Make fork_fuzz.ld compatible with LLVM's LLD 2020-11-10 08:51:30 +01:00
fuzz.c fuzz: add fuzz_reset API 2023-02-16 22:08:37 -05:00
fuzz.h fuzz: add fuzz_reset API 2023-02-16 22:08:37 -05:00
generic_fuzz_configs.h tests/qtest: generic_fuzz: Avoid using hardcoded /tmp 2022-09-27 20:51:20 +02:00
generic_fuzz.c fuzz/generic-fuzz: add a limit on DMA bytes written 2023-02-16 23:02:46 -05:00
i440fx_fuzz.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00
meson.build configure, meson: move fuzzing configuration to Meson 2021-10-14 09:50:56 +02:00
qos_fuzz.c qapi qdev qom: Elide redundant has_FOO in generated C 2022-12-14 20:05:07 +01:00
qos_fuzz.h Remove leading underscores from QEMU defines 2021-06-21 05:49:01 +02:00
qtest_wrappers.c
virtio_blk_fuzz.c tests/qtest: virtio_blk_fuzz: Avoid using hardcoded /tmp 2022-09-27 20:51:20 +02:00
virtio_net_fuzz.c Replace fcntl(O_NONBLOCK) with g_unix_set_fd_nonblocking() 2022-05-03 15:47:38 +04:00
virtio_scsi_fuzz.c tests: move libqtest.h back under qtest/ 2022-05-03 15:16:51 +04:00