fuzz: introduce an x86 instruction emulator fuzzer

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2025-01-02 05:38:38 +00:00
committed by Wei Liu
parent fe24a7a24f
commit 7c39f37855
3 changed files with 225 additions and 7 deletions

View File

@@ -10,16 +10,20 @@ cargo-fuzz = true
[features]
igvm = []
mshv_emulator = ["hypervisor/mshv_emulator"]
pvmemcontrol = []
[dependencies]
arbitrary = "1.4.1"
block = { path = "../block" }
devices = { path = "../devices" }
epoll = "4.3.3"
hypervisor = { path = "../hypervisor", features = ["mshv_emulator"] }
libc = "0.2.155"
libfuzzer-sys = "0.4.7"
linux-loader = { version = "0.13.0", features = ["bzimage", "elf", "pe"] }
micro_http = { git = "https://github.com/firecracker-microvm/micro-http", branch = "main" }
mshv-bindings = "0.3.2"
net_util = { path = "../net_util" }
once_cell = "1.19.0"
seccompiler = "0.4.0"
@@ -131,3 +135,10 @@ doc = false
name = "watchdog"
path = "fuzz_targets/watchdog.rs"
test = false
[[bin]]
doc = false
name = "x86emul"
path = "fuzz_targets/x86emul.rs"
required-features = ["mshv_emulator"]
test = false