From 551737f1076a910f809cc27ac629c587bc84fc2d Mon Sep 17 00:00:00 2001 From: juanPabloMiceli <48705702+juanPabloMiceli@users.noreply.github.com> Date: Thu, 19 Jan 2023 15:59:14 -0500 Subject: vm/starnix: add support for fuzzing starnix (#3624) This commit adds a new VM for fuzzing starnix. The VM will boot a fuchsia image using the `ffx` tool and will connect to an adb server inside it. Fuzzing will be done using HostFuzzer mode due to some features not being implemented yet in starnix. Once this is possible, fuzzing will be performed without HostFuzzer mode. Co-authored-by: Juampi Miceli --- sys/targets/targets.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/targets') diff --git a/sys/targets/targets.go b/sys/targets/targets.go index 1e19cfe88..c891df41b 100644 --- a/sys/targets/targets.go +++ b/sys/targets/targets.go @@ -726,6 +726,12 @@ func initTarget(target *Target, OS, arch string) { } else { target.HostEndian = binary.BigEndian } + // Temporal hack. + if OS == Linux && os.Getenv("SYZ_STARNIX_HACK") != "" { + target.ExecutorUsesShmem = false + target.ExecutorUsesForkServer = false + target.HostFuzzer = true + } } func (target *Target) Timeouts(slowdown int) Timeouts { -- cgit mrf-deployment