aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_kvm_ppc64.h
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2021-09-13 13:30:11 +0000
committerAleksandr Nogikh <wp32pw@gmail.com>2021-09-13 18:50:12 +0200
commit58d094047fb1e61df8402ef854bd3bfb97826d6f (patch)
tree9ec3896b15f66f9d12d9bdbe20966f9d40bcb41f /executor/common_kvm_ppc64.h
parent3ce60af85b4644bd7f2d2ef01a7d2b9a41545b76 (diff)
sys: skip kvm const extraction for non i386/amd64
It is impossible to compile a number of definitions in include/uapi/linux/kvm.h for other platforms, which leads to syz-extract failing to update constants. Skip processing of this file for all arches except i386 and amd64. This is a hacky and (hopefully) temporary solution until #2754 is implemented.
Diffstat (limited to 'executor/common_kvm_ppc64.h')
-rw-r--r--executor/common_kvm_ppc64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/executor/common_kvm_ppc64.h b/executor/common_kvm_ppc64.h
index 287d7a7b3..283824b43 100644
--- a/executor/common_kvm_ppc64.h
+++ b/executor/common_kvm_ppc64.h
@@ -147,7 +147,7 @@ static void dump_text(const char* mem, unsigned start, unsigned cw, uint32 debug
#define KVM_SETUP_PPC64_PID1 (1 << 4) // Set PID=1 i.e. not kernel's PID
// syz_kvm_setup_cpu(fd fd_kvmvm, cpufd fd_kvmcpu, usermem vma[24], text ptr[in, array[kvm_text, 1]], ntext len[text], flags flags[kvm_setup_flags_ppc64], opts ptr[in, array[kvm_setup_opt, 0:2]], nopt len[opts])
-static 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)
+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)
{
const int vmfd = a0;
const int cpufd = a1;