Skip to content

Commit a35e36f

Browse files
committed
syz-cluster/workflow/fuzz-step: restart procs more frequently
This should increase the bug reproduction rate.
1 parent ad00083 commit a35e36f

File tree

1 file changed

+5
-0
lines changed
  • syz-cluster/workflow/fuzz-step

1 file changed

+5
-0
lines changed

syz-cluster/workflow/fuzz-step/main.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ func main() {
8383

8484
var errSkipFuzzing = errors.New("skip")
8585

86+
// Do more frequent proc restarts to facilitate a higher reproducation rate.
87+
const procRestartFreq = 100
88+
8689
func run(baseCtx context.Context, client *api.Client, timeout time.Duration,
8790
store *manager.DiffFuzzerStore) error {
8891
series, err := client.GetSessionSeries(baseCtx, *flagSession)
@@ -99,6 +102,8 @@ func run(baseCtx context.Context, client *api.Client, timeout time.Duration,
99102
if err != nil {
100103
return fmt.Errorf("failed to load configs: %w", err)
101104
}
105+
base.Experimental.ProcRestartFreq = procRestartFreq
106+
patched.Experimental.ProcRestartFreq = procRestartFreq
102107

103108
baseSymbols, patchedSymbols, err := readSymbolHashes()
104109
if err != nil {

0 commit comments

Comments
 (0)