diff options
| author | Alexander Potapenko <glider@google.com> | 2024-11-26 10:11:20 +0100 |
|---|---|---|
| committer | Alexander Potapenko <glider@google.com> | 2024-11-26 11:12:47 +0000 |
| commit | 66b9eb592907501b2caa11568313a324ee7cd6b8 (patch) | |
| tree | aafe3558c4cb2322d7a72eea540d0cac0ed51850 /executor/common_linux.h | |
| parent | 4cb01fb07201474a77f03a86420f116faec956c3 (diff) | |
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.
Diffstat (limited to 'executor/common_linux.h')
| -rw-r--r-- | executor/common_linux.h | 18 |
1 files changed, 0 insertions, 18 deletions
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 |
