aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2015-12-17 17:11:08 +0100
committerDmitry Vyukov <dvyukov@google.com>2015-12-17 17:31:11 +0100
commitbbf4e353234e99f4a25ef85a8b02419b652e7401 (patch)
tree965fe1ab0b8b257bfdb2ea8000a2c1a029b609fc /tools
parentbfc05fb926e5004fbe1b7dae29c44d8e301b2b72 (diff)
executor: export syscall execution results
Errno can be used to guide fuzzing, or detect not implemented syscalls.
Diffstat (limited to 'tools')
-rw-r--r--tools/syz-execprog/execprog.go2
-rw-r--r--tools/syz-stress/stress.go2
2 files changed, 2 insertions, 2 deletions
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)
}