From 349a68c4b056a06438a1e75e9b8a3a583b06d511 Mon Sep 17 00:00:00 2001 From: Laura Peskin Date: Mon, 16 Sep 2024 17:03:51 -0700 Subject: tools/syz-execprog: pass the VM type to execprog This makes it possible to skip certain machine checks depending on the VM type, as syz-manager already does. --- pkg/instance/instance.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pkg/instance/instance.go') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 4c877a229..ef8860330 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -442,8 +442,9 @@ func (inst *inst) csourceOptions() (csource.Options, error) { return opts, nil } -func ExecprogCmd(execprog, executor, OS, arch, sandbox string, sandboxArg int, repeat, threaded, collide bool, - procs, faultCall, faultNth int, optionalFlags bool, slowdown int, progFile string) string { +func ExecprogCmd(execprog, executor, OS, arch, vmType, sandbox string, sandboxArg int, repeat, + threaded, collide bool, procs, faultCall, faultNth int, optionalFlags bool, slowdown int, + progFile string) string { repeatCount := 1 if repeat { repeatCount = 0 @@ -463,6 +464,7 @@ func ExecprogCmd(execprog, executor, OS, arch, sandbox string, sandboxArg int, r optionalArg += " " + tool.OptionalFlags([]tool.Flag{ {Name: "slowdown", Value: fmt.Sprint(slowdown)}, {Name: "sandboxArg", Value: fmt.Sprint(sandboxArg)}, + {Name: "type", Value: fmt.Sprint(vmType)}, }) } -- cgit mrf-deployment