diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2021-08-03 11:55:10 +0000 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2021-08-06 15:34:58 +0200 |
| commit | 6972b10616d785401dea17cec890cca8916424a7 (patch) | |
| tree | 1767bc6cebaeac9cb0fe11c2bb99f4b8afc94a3b /pkg/instance/instance.go | |
| parent | de040344f89656862b5bbd306b8a9c143dae3dea (diff) | |
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.
Diffstat (limited to 'pkg/instance/instance.go')
| -rw-r--r-- | pkg/instance/instance.go | 2 |
1 files changed, 1 insertions, 1 deletions
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{ |
