From 6e0b5a7b21511f4ad998e5ba8e583fbb190fe47b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 11 Oct 2021 14:56:16 +0200 Subject: pkg/host: log executor setup output Executor prints what's failed during setup command. Log this output so that it's visible in syz-execprog/fuzzer output. --- pkg/host/features.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/host/features.go b/pkg/host/features.go index 8be2d4a22..f3f4af30c 100644 --- a/pkg/host/features.go +++ b/pkg/host/features.go @@ -9,6 +9,7 @@ import ( "time" "github.com/google/syzkaller/pkg/csource" + "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/prog" "github.com/google/syzkaller/sys/targets" @@ -120,7 +121,8 @@ func Setup(target *prog.Target, features *Features, featureFlags csource.Feature if featureFlags["ieee802154"].Enabled && features[Feature802154Emulation].Enabled { args = append(args, "802154") } - _, err := osutil.RunCmd(5*time.Minute, "", executor, args...) + output, err := osutil.RunCmd(5*time.Minute, "", executor, args...) + log.Logf(1, "executor %v\n%s", args, output) return err } -- cgit mrf-deployment