rust-vmm / vm-virtio

virtio implementation
Apache License 2.0
364 stars 87 forks source link

Add `virtio-blk` fuzzing target #246

Closed 00xc closed 10 months ago

00xc commented 1 year ago

Summary of the PR

Add a new cargo-fuzz target to test virtio-blk request parsing. Add as well a simple test.

This new target mimics the existing virtio-vsock one in a much simpler way, as the virtio-blk interface is smaller.

Requirements

00xc commented 1 year ago

Increased coverage by using the backend-stdio feature of the crate with a backing memfd file. Also rebased from main.

Crashes in the CI still happen, will be fixed with #253.

00xc commented 11 months ago

Rebased on main and simplified the harness removing useless functionality.

00xc commented 10 months ago

Rebased on main

00xc commented 10 months ago

@andreeaflorescu thanks for your review, I addressed all your comments I believe.