From 88faedcb3ba747eed5b22afa9bf5f32f336afd1e Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Wed, 11 Feb 2026 11:38:16 +0000 Subject: 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. --- executor/common_kvm.h | 2 +- executor/common_kvm_386.h | 2 +- executor/common_test.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'executor') 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 #include -- cgit mrf-deployment