From 666fe1b4b5e1245111f06d056e691585b1d4d672 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 8 Mar 2024 15:51:49 +0100 Subject: tools/syz-execprog: log errors similarly to syz-fuzzer It will help syzkaller find reproducers for these kinds of problems. --- tools/syz-execprog/execprog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index 4d5e3d096..f7952b675 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -181,7 +181,7 @@ func (ctx *Context) execute(pid int, env *ipc.Env, p *prog.Prog, progIndex int) output, info, hanged, err := env.Exec(callOpts, p) if err != nil && err != prog.ErrExecBufferTooSmall { if try > 10 { - log.Fatalf("executor failed %v times: %v\n%s", try, err, output) + log.SyzFatalf("executor %d failed %d times: %v\n%s", pid, try, err, output) } // Don't print err/output in this case as it may contain "SYZFAIL" and we want to fail yet. log.Logf(1, "executor failed, retrying") -- cgit mrf-deployment