From a2c64463a2d64431bfb2da6fa157bfd6deb61010 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Tue, 7 Nov 2017 15:52:28 +0100 Subject: execprog: correctly handle fault injections syz-execprog doesn't utilize info about fault injections from a prog log. Since syz-execprog is used by the repro package to reproduce crashes, crashes caused by fault injections might not reproduce. --- pkg/repro/repro.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg') diff --git a/pkg/repro/repro.go b/pkg/repro/repro.go index 51b055640..492e4673a 100644 --- a/pkg/repro/repro.go +++ b/pkg/repro/repro.go @@ -354,9 +354,9 @@ func (ctx *context) extractProgBisect(entries []*prog.LogEntry, baseDuration tim for _, entry := range entries { prog.Calls = append(prog.Calls, entry.P.Calls...) } + dur := duration(len(entries)) * 3 / 2 // Execute the program without fault injection. - dur := duration(len(entries)) * 3 / 2 crashed, err := ctx.testProg(prog, dur, opts) if err != nil { return nil, err -- cgit mrf-deployment