aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-extract
diff options
context:
space:
mode:
Diffstat (limited to 'sys/syz-extract')
-rw-r--r--sys/syz-extract/linux.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/syz-extract/linux.go b/sys/syz-extract/linux.go
index 8b365a206..ae3892efe 100644
--- a/sys/syz-extract/linux.go
+++ b/sys/syz-extract/linux.go
@@ -61,6 +61,11 @@ func (*linux) prepareArch(arch *Arch) error {
#define va_copy __builtin_va_copy
#define __va_copy __builtin_va_copy
`,
+ "asm/kvm.h": `
+struct kvm_debug_exit_arch {};
+struct kvm_guest_debug_arch {};
+struct kvm_sync_regs {};
+`,
"asm/a.out.h": "",
"asm/prctl.h": "",
"asm/mce.h": "",
@@ -134,6 +139,7 @@ func (*linux) processFile(arch *Arch, info *compiler.ConstInfo) (map[string]uint
"-I.",
"-D__KERNEL__",
"-DKBUILD_MODNAME=\"-\"",
+ "-DKBUILD_MODFILE=\"-\"",
"-I" + sourceDir + "/arch/" + headerArch + "/include",
"-I" + buildDir + "/arch/" + headerArch + "/include/generated/uapi",
"-I" + buildDir + "/arch/" + headerArch + "/include/generated",