fuzz: Add a fuzzer for virtio-devices::Block

This is based on the block fuzzer from crosvm and ported to Cloud
Hypervisor.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-07-20 16:41:40 +01:00
committed by Samuel Ortiz
parent d922986d78
commit 191f64028a
2 changed files with 149 additions and 0 deletions

View File

@@ -13,10 +13,17 @@ cargo-fuzz = true
libc = "0.2.72"
libfuzzer-sys = "0.3"
qcow = { path = "../qcow" }
virtio-devices = { path = "../virtio-devices" }
vmm-sys-util = ">=0.3.1"
vm-virtio = { path = "../vm-virtio" }
vm-memory = "0.2.1"
[dependencies.cloud-hypervisor]
path = ".."
[patch.crates-io]
vm-memory = { git = "https://github.com/cloud-hypervisor/vm-memory", branch = "ch" }
# Prevent this from interfering with workspaces
[workspace]
members = ["."]
@@ -26,3 +33,9 @@ name = "qcow"
path = "fuzz_targets/qcow.rs"
test = false
doc = false
[[bin]]
name = "block"
path = "fuzz_targets/block.rs"
test = false
doc = false