diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-07-06 14:43:24 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-07-06 14:43:24 +0200 |
| commit | 04bd6c3d9e84645b320e888fa5c547e0b2b1be93 (patch) | |
| tree | b841cc3e24c7fbe98988948a7fdea53d2ca79a8f /tools/syz-crush | |
| parent | 8c2335a205682fbbe311fb5ad4393419fd094a99 (diff) | |
pkg/instance: pass -os to execprog/fuzzer only for akaros
Only akaros needs OS, because the rest assume host OS.
But speciying OS for all OSes breaks patch testing on syzbot
because old execprog does not have os flag.
Diffstat (limited to 'tools/syz-crush')
| -rw-r--r-- | tools/syz-crush/crush.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/syz-crush/crush.go b/tools/syz-crush/crush.go index bb07b72c3..ee020b74f 100644 --- a/tools/syz-crush/crush.go +++ b/tools/syz-crush/crush.go @@ -8,12 +8,12 @@ package main import ( "flag" - "fmt" "io/ioutil" "sync" "sync/atomic" "time" + "github.com/google/syzkaller/pkg/instance" "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/pkg/report" @@ -98,8 +98,8 @@ func runInstance(cfg *mgrconfig.Config, reporter report.Reporter, vmPool *vm.Poo return } - cmd := fmt.Sprintf("%v -executor=%v -repeat=0 -procs=%v -sandbox=%v %v", - execprogBin, executorBin, cfg.Procs, cfg.Sandbox, logFile) + cmd := instance.ExecprogCmd(execprogBin, executorBin, cfg.TargetOS, cfg.TargetArch, cfg.Sandbox, + true, true, true, cfg.Procs, -1, -1, logFile) outc, errc, err := inst.Run(time.Hour, nil, cmd) if err != nil { log.Logf(0, "failed to run execprog: %v", err) |
