From 06ece2ca663d0565d9e4cd932c4c2d86767a5396 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 12 Jun 2018 14:05:02 +0200 Subject: pkg/host: rework host feature detection/setup Currently host feature detection/setup code is spread across platform-independent fuzzer code, pkg/host, pkg/ipc and executor. Move this all into pkg/host and show readable info about features on manager start. Fixes #46 --- pkg/ipc/ipc.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'pkg/ipc') diff --git a/pkg/ipc/ipc.go b/pkg/ipc/ipc.go index 695218e4f..c7dc03753 100644 --- a/pkg/ipc/ipc.go +++ b/pkg/ipc/ipc.go @@ -19,7 +19,6 @@ import ( "time" "unsafe" - "github.com/google/syzkaller/pkg/host" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/prog" "github.com/google/syzkaller/sys/targets" @@ -278,13 +277,6 @@ var enableFaultOnce sync.Once // hanged: program hanged and was killed // err0: failed to start process, or executor has detected a logical error func (env *Env) Exec(opts *ExecOpts, p *prog.Prog) (output []byte, info []CallInfo, failed, hanged bool, err0 error) { - if opts.Flags&FlagInjectFault != 0 { - enableFaultOnce.Do(func() { - if err := host.EnableFaultInjection(); err != nil { - panic(err) - } - }) - } // Copy-in serialized program. progSize, err := p.SerializeForExec(env.in) if err != nil { -- cgit mrf-deployment