cloud-hypervisor/fuzz
Rob Bradford a00d29867c fuzz, vmm: Avoid infinite loop in CMOS fuzzer
With the addition of the spinning waiting for the exit event to be
received in the CMOS device a regression was introduced into the CMOS
fuzzer. Since there is nothing to receive the event in the fuzzer and
there is nothing to update the bit the that the device is looping on;
introducing an infinite loop.

Use an Option<> type so that when running the device in the fuzzer no
Arc<AtomicBool> is provided effectively disabling the spinning logic.

Fixes: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=61165

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
2023-08-07 08:04:55 +08:00
..
fuzz_targets fuzz, vmm: Avoid infinite loop in CMOS fuzzer 2023-08-07 08:04:55 +08:00
.gitignore fuzz: Add fuzzing infrastructure and QCOW fuzzer 2020-07-17 08:49:35 +02:00
Cargo.lock build: Bump serde_with from 3.0.0 to 3.2.0 in /fuzz 2023-08-04 23:36:40 +00:00
Cargo.toml block: merge qcow, vhdx and block_util into block crate 2023-07-19 13:52:43 +01:00