aboutsummaryrefslogtreecommitdiffstats
path: root/sys/syz-sysgen
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 /sys/syz-sysgen
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 'sys/syz-sysgen')
-rw-r--r--sys/syz-sysgen/sysgen.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/syz-sysgen/sysgen.go b/sys/syz-sysgen/sysgen.go
index b30a1d060..dd64be8d4 100644
--- a/sys/syz-sysgen/sysgen.go
+++ b/sys/syz-sysgen/sysgen.go
@@ -117,8 +117,8 @@ func main() {
if OS == targets.Linux && (job.Target.Arch == targets.ARM || job.Target.Arch == targets.RiscV64) {
// Hack: KVM is not supported on ARM anymore. On riscv64 it
// is not supported yet but might be in the future.
- // Note: syz-extract also ignores this file for arm and
- // riscv64.
+ // Note: syz-extract ignores this file on all arches except
+ // i386 and amd64 (due to const extraction problems).
top = descriptions.Filter(func(n ast.Node) bool {
pos, _, _ := n.Info()
return !strings.HasSuffix(pos.File, "_kvm.txt")