From 66b9eb592907501b2caa11568313a324ee7cd6b8 Mon Sep 17 00:00:00 2001 From: Alexander Potapenko Date: Tue, 26 Nov 2024 10:11:20 +0100 Subject: sys/linux: move some ARM-specific descriptions to a separate file This is done to solve a particular test failure running: $ tools/syz-env go test ./prog -run TestSpecialStructs , which failed on PPC64, because prog/rand.go instanciated a call to syz_kvm_setup_syzos_vm(), which requested too much memory (1024 pages) from the allocator (PPC64 uses 64k pages, so the number of available pages is lower). On the other hand, factoring out syzos-related descriptions is probably a nice thing to do anyway. --- executor/common_linux.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'executor') diff --git a/executor/common_linux.h b/executor/common_linux.h index b6214563e..ef78a5175 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -3209,24 +3209,6 @@ static volatile long syz_kvm_setup_cpu(volatile long a0, volatile long a1, volat return 0; } #endif -#if !GOARCH_arm64 && (SYZ_EXECUTOR || __NR_syz_kvm_vgic_v3_setup) -static long syz_kvm_vgic_v3_setup(volatile long a0, volatile long a1, volatile long a2) -{ - return 0; -} -#endif -#if !GOARCH_arm64 && (SYZ_EXECUTOR || __NR_syz_kvm_add_vcpu) -static long syz_kvm_add_vcpu(volatile long a0, volatile long a1, volatile long a2, volatile long a3) -{ - return 0; -} -#endif -#if !GOARCH_arm64 && (SYZ_EXECUTOR || __NR_syz_kvm_setup_syzos_vm) -static long syz_kvm_setup_syzos_vm(volatile long a0, volatile long a1) -{ - return 0; -} -#endif #endif #endif -- cgit mrf-deployment