diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2019-11-14 16:59:09 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2019-11-16 09:58:54 +0100 |
| commit | b5c36524a29838b0ec9345fc1a07daeebf50c833 (patch) | |
| tree | b25f237098577e50e3c1387454da625b50280478 /pkg/ipc | |
| parent | cdac920beb540736200639a6254e6dc01422e705 (diff) | |
sys/targets: add HostFuzzer flag
Move HostFuzzer from vm/qemu.
It's needed in a number of other packages
and strictly saying is not specific to qemu
(it just happened that both fuchsia and akaros only support qemu).
Diffstat (limited to 'pkg/ipc')
| -rw-r--r-- | pkg/ipc/ipc.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index 34b4ce2d0..cd3d6b02e 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -19,6 +19,7 @@ import ( "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/pkg/signal" "github.com/google/syzkaller/prog" + "github.com/google/syzkaller/sys/targets" ) // Configuration flags for Config.Flags. @@ -264,9 +265,8 @@ func (env *Env) Exec(opts *ExecOpts, p *prog.Prog) (output []byte, info *ProgInf atomic.AddUint64(&env.StatExecs, 1) if env.cmd == nil { - switch p.Target.OS { - case "akaros", "fuchsia": - // On akaros executor is actually ssh, + if targets.Get(p.Target.OS, p.Target.Arch).HostFuzzer { + // The executor is actually ssh, // starting them too frequently leads to timeouts. <-rateLimit.C } |
