aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_386.h
diff options
context:
space:
mode:
authorMarios Pomonis <pomonis@google.com>2025-04-01 01:43:18 -0700
committerAlexander Potapenko <glider@google.com>2025-04-23 08:29:55 +0000
commit3b7466b943b5126cb450f32b99d54bfb536e510d (patch)
treead98a52e5befbd868768e3f0ce48c2728b46063d /executor/common_kvm_386.h
parent79edc45e0ef45be0eb57b66f8a87d69953e0abf3 (diff)
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.
Diffstat (limited to 'executor/common_kvm_386.h')
-rw-r--r--executor/common_kvm_386.h32
1 files changed, 32 insertions, 0 deletions
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