From 3b7466b943b5126cb450f32b99d54bfb536e510d Mon Sep 17 00:00:00 2001 From: Marios Pomonis Date: Tue, 1 Apr 2025 01:43:18 -0700 Subject: executor/kvm: add x86-64 SYZOS fuzzer This commit adds the actual SyzOS fuzzer for x86-64 and a small test. It also updates some necessary parts of the ARM version and adds some glue for i386. --- executor/common_kvm_386.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 executor/common_kvm_386.h (limited to 'executor/common_kvm_386.h') diff --git a/executor/common_kvm_386.h b/executor/common_kvm_386.h new file mode 100644 index 000000000..77ca4ce0e --- /dev/null +++ b/executor/common_kvm_386.h @@ -0,0 +1,32 @@ +// Copyright 2025 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +// This file is shared between executor and csource package. + +#if SYZ_EXECUTOR || __NR_syz_kvm_setup_syzos_vm +static long syz_kvm_setup_syzos_vm(volatile long a0, volatile long a1) +{ + return 0; +} +#endif + +#if SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu +static long syz_kvm_add_vcpu(volatile long a0, volatile long a1) +{ + return 0; +} +#endif + +#if SYZ_EXECUTOR || __NR_syz_kvm_assert_syzos_uexit +static long syz_kvm_assert_syzos_uexit(volatile long a0, volatile long a1) +{ + return 0; +} +#endif + +#if SYZ_EXECUTOR || __NR_syz_kvm_setup_cpu +static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volatile long a2, volatile long a3, volatile long a4, volatile long a5, volatile long a6, volatile long a7) +{ + return 0; +} +#endif -- cgit mrf-deployment