aboutsummaryrefslogtreecommitdiffstats
path: root/executor
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2026-02-11 11:38:16 +0000
committerAlexander Potapenko <glider@google.com>2026-02-11 13:38:00 +0000
commit88faedcb3ba747eed5b22afa9bf5f32f336afd1e (patch)
treea03ffa232f390908644995227b46a152271f11c0 /executor
parentb967ef3a5c25ed1294d52a668f0b108fde282d10 (diff)
executor: fix TestGenerate errors
These pseudo syscalls implementation was not previously tested in pkg/csource, so let's first fix the bugs before enabling tests for them.
Diffstat (limited to 'executor')
-rw-r--r--executor/common_kvm.h2
-rw-r--r--executor/common_kvm_386.h2
-rw-r--r--executor/common_test.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/executor/common_kvm.h b/executor/common_kvm.h
index 386e43267..56b7bd2f5 100644
--- a/executor/common_kvm.h
+++ b/executor/common_kvm.h
@@ -11,7 +11,7 @@
#include "common_kvm_syzos.h"
#include "kvm.h"
-#if SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu || __NR_syz_kvm_setup_cpu || __NR_syz_kvm_setup_syzos_vm || __NR_syz_kvm_assert_syzos_uexit
+#if SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu || __NR_syz_kvm_setup_cpu || __NR_syz_kvm_setup_syzos_vm || __NR_syz_kvm_assert_syzos_uexit || __NR_syz_kvm_assert_syzos_kvm_exit
extern char* __start_guest;
// executor_fn_guest_addr() is compiled into both the host and the guest code.
diff --git a/executor/common_kvm_386.h b/executor/common_kvm_386.h
index 2eba3ee18..75acc97a1 100644
--- a/executor/common_kvm_386.h
+++ b/executor/common_kvm_386.h
@@ -27,7 +27,7 @@ static long syz_kvm_assert_syzos_uexit(volatile long a0, volatile long a1, volat
}
#endif
-#if SYZ_EXECUTOR || __NR_syz_kvm_assert_syzos_uexit
+#if SYZ_EXECUTOR || __NR_syz_kvm_assert_syzos_kvm_exit
static long syz_kvm_assert_syzos_kvm_exit(volatile long a0, volatile long a1)
{
return 0;
diff --git a/executor/common_test.h b/executor/common_test.h
index 148f11f86..8e5227f59 100644
--- a/executor/common_test.h
+++ b/executor/common_test.h
@@ -45,7 +45,7 @@ static long syz_sleep_ms(volatile long ms)
}
#endif
-#if SYZ_EXECUTOR || __NR_syz_compare
+#if SYZ_EXECUTOR || __NR_syz_compare || __NR_syz_compare_zlib
#include <errno.h>
#include <string.h>