aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/syz-execprog/execprog.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/syz-execprog/execprog.go b/tools/syz-execprog/execprog.go
index bfc50beaf..5c26bd95a 100644
--- a/tools/syz-execprog/execprog.go
+++ b/tools/syz-execprog/execprog.go
@@ -303,6 +303,12 @@ func createConfig(target *prog.Target, entries []*prog.LogEntry,
execOpts.FaultCall = *flagFaultCall
execOpts.FaultNth = *flagFaultNth
}
+ for _, entry := range entries {
+ if entry.Fault {
+ config.Flags |= ipc.FlagEnableFault
+ break
+ }
+ }
handled := make(map[string]bool)
for _, entry := range entries {
for _, call := range entry.P.Calls {