From bbf4e353234e99f4a25ef85a8b02419b652e7401 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 17 Dec 2015 17:11:08 +0100 Subject: executor: export syscall execution results Errno can be used to guide fuzzing, or detect not implemented syscalls. --- tools/syz-execprog/execprog.go | 2 +- tools/syz-stress/stress.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go index dcb2a0b8b..a94b87878 100644 --- a/tools/syz-execprog/execprog.go +++ b/tools/syz-execprog/execprog.go @@ -103,7 +103,7 @@ func main() { return } p := progs[idx%len(progs)] - output, strace, cov, failed, hanged, err := env.Exec(p) + output, strace, cov, _, failed, hanged, err := env.Exec(p) if *flagDebug || err != nil { fmt.Printf("result: failed=%v hanged=%v err=%v\n\n%s", failed, hanged, err, output) } diff --git a/tools/syz-stress/stress.go b/tools/syz-stress/stress.go index e4f1a506c..da013507f 100644 --- a/tools/syz-stress/stress.go +++ b/tools/syz-stress/stress.go @@ -106,7 +106,7 @@ func execute(pid int, env *ipc.Env, p *prog.Prog) { outMu.Unlock() } - output, _, _, _, _, err := env.Exec(p) + output, _, _, _, _, _, err := env.Exec(p) if err != nil { fmt.Printf("failed to execute executor: %v\n", err) } -- cgit mrf-deployment