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 --- executor/executor_linux.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'executor/executor_linux.h') diff --git a/executor/executor_linux.h b/executor/executor_linux.h index 54246bda9..630ceb81f 100644 --- a/executor/executor_linux.h +++ b/executor/executor_linux.h @@ -95,9 +95,11 @@ static void cover_protect(cover_t* cov) { } +#if SYZ_EXECUTOR_USES_SHMEM static void cover_unprotect(cover_t* cov) { } +#endif static void cover_mmap(cover_t* cov) { @@ -158,6 +160,7 @@ static void cover_collect(cover_t* cov) cov->size = *(uint32*)cov->data; } +#if SYZ_EXECUTOR_USES_SHMEM static bool use_cover_edges(uint32 pc) { return true; @@ -176,6 +179,7 @@ static bool use_cover_edges(uint64 pc) #endif return true; } +#endif static bool detect_kernel_bitness() { -- cgit mrf-deployment