mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-27 08:05:19 +00:00
b02df13af9
Replacing QCOW mentions with other viable options. There is still docs/custom-image.md which talks about creating QCOW, however it might be more convenient to be touched when the actual changes are indeed there. Related to #1985. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
36 lines
656 B
Markdown
36 lines
656 B
Markdown
# Fuzzing in Cloud Hypervisor
|
|
|
|
Cloud Hypervisor uses [cargo-fuzz](https://github.com/rust-fuzz/cargo-fuzz) for fuzzing individual components.
|
|
|
|
The fuzzers are are in the `fuzz/fuzz_targets` directory
|
|
|
|
## Preparation
|
|
|
|
Switch to nightly:
|
|
|
|
````
|
|
rustup override set nightly
|
|
````
|
|
|
|
Install `cargo fuzz`:
|
|
|
|
```
|
|
cargo install cargo-fuzz
|
|
```
|
|
|
|
## Running the fuzzers
|
|
|
|
e.g. To run the `block` fuzzer using all available CPUs:
|
|
|
|
```
|
|
cargo fuzz run block -j `nproc`
|
|
```
|
|
|
|
## Adding a new fuzzer
|
|
|
|
```
|
|
cargo fuzz add <new_fuzzer>
|
|
```
|
|
|
|
Inspiration for fuzzers can be found in [crosvm](https://chromium.googlesource.com/chromiumos/platform/crosvm/+/refs/heads/master/fuzz/)
|