From 6972b10616d785401dea17cec890cca8916424a7 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Tue, 3 Aug 2021 11:55:10 +0000 Subject: all: use entire log to detect reports to suppress Currently syzkaller only applies its suppressions regexps to the oops message itself and a small number of its preceding bytes. A case has been reported (#2685), where it was important to analyse a bigger portion of output data. Pass the whole log and a starting position to the `Report.Parse` method separately instead of passing an already cut log there. Adjust use cases of the `Report.Parse` method to handle its new behavior. --- pkg/instance/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/instance/instance.go') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 794d4484f..92c6d1353 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -264,7 +264,7 @@ func (inst *inst) test() error { rep := inst.reporter.Parse(testErr.Output) if rep != nil && rep.Type == report.UnexpectedReboot { // Avoid detecting any boot crash as "unexpected kernel reboot". - rep = inst.reporter.Parse(testErr.Output[rep.SkipPos:]) + rep = inst.reporter.ParseFrom(testErr.Output, rep.SkipPos) } if rep == nil { rep = &report.Report{ -- cgit mrf-deployment