diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-03-08 15:51:49 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-03-08 16:03:33 +0000 |
| commit | 666fe1b4b5e1245111f06d056e691585b1d4d672 (patch) | |
| tree | 9a58bfa2e879f2017e60aae641da00288e5581ba | |
| parent | 8e75c913b6f9b09cab2ad31fd7d66ea0d1703de8 (diff) | |
tools/syz-execprog: log errors similarly to syz-fuzzer
It will help syzkaller find reproducers for these kinds of problems.
| -rw-r--r-- | tools/syz-execprog/execprog.go | 2 |
1 files changed, 1 insertions, 1 deletions
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") |
