From b5c36524a29838b0ec9345fc1a07daeebf50c833 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 14 Nov 2019 16:59:09 +0100 Subject: 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). --- pkg/ipc/ipc.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkg/ipc') 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 } -- cgit mrf-deployment