cloud-hypervisor/fuzz/fuzz_targets
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
..
balloon.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
block.rs block: merge qcow, vhdx and block_util into block crate 2023-07-19 13:52:43 +01:00
cmos.rs fuzz, vmm: Avoid infinite loop in CMOS fuzzer 2023-08-07 08:04:55 +08:00
console.rs fuzz: Add fuzzer for virtio-console 2022-11-03 09:10:41 -07:00
http_api.rs vmm: api: Use 'BTreeMap' for 'HttpRoutes' 2022-08-03 10:18:24 +01:00
iommu.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
linux_loader_cmdline.rs fuzz: Add fuzzer for 'linux loader' cmdline 2022-12-12 13:50:28 +00:00
linux_loader.rs fuzz: Add fuzzer for 'linux loader' 2022-12-12 13:50:28 +00:00
mem.rs vmm: Make Transparent Huge Pages controllable (default on) 2022-11-09 16:51:21 +00:00
net.rs vmm: add configuration for network offloading features 2023-01-12 09:05:45 +00:00
pmem.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
qcow.rs block: merge qcow, vhdx and block_util into block crate 2023-07-19 13:52:43 +01:00
rng.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00
serial.rs vm-device: support batch update interrupt source group GSI 2023-08-03 15:58:36 +01:00
vhdx.rs block: merge qcow, vhdx and block_util into block crate 2023-07-19 13:52:43 +01:00
watchdog.rs vmm: virtio-devices: Restore every VirtioDevice upon creation 2022-10-24 14:17:08 +02:00