From 6bf1e337a0475b9a919243a262067008790ee6dd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 9 Aug 2017 16:29:35 +0200 Subject: Update executing_syzkaller_programs.md --- docs/executing_syzkaller_programs.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs/executing_syzkaller_programs.md') diff --git a/docs/executing_syzkaller_programs.md b/docs/executing_syzkaller_programs.md index bd1570c0e..74fd49649 100644 --- a/docs/executing_syzkaller_programs.md +++ b/docs/executing_syzkaller_programs.md @@ -45,3 +45,9 @@ Several useful `syz-execprog` flags: ``` If you pass `-threaded=0 -collide=0`, programs will be executed as a simple single-threaded sequence of syscalls. `-threaded=1` forces execution of each syscall in a separate thread, so that execution can proceed over blocking syscalls. `-collide=0` forces second round of execution of syscalls when pairs of syscalls are executed concurrently. + +If you are replaying a reproducer program that contains a header along the following lines: +``` +#{Threaded:true Collide:true Repeat:true Procs:8 Sandbox:namespace Fault:false FaultCall:-1 FaultNth:0 EnableTun:true UseTmpDir:true HandleSegv:true WaitRepeat:true Debug:false Repro:false} +``` +then you need to adjust `syz-execprog` flags based on the values in the header. Namely, `Threaded`/`Collide`/`Procs`/`Sandbox` directly relate to `-threaded`/`-collide`/`-procs`/`-sandbox` flags. If `Repeat` is set to `true`, add `-repeat=0` flag to `syz-execprog`. -- cgit mrf-deployment