diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-12-12 13:29:45 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-12-12 13:29:45 +0100 |
| commit | 1b3ae9a6d0f41849f8a4c9ee7b0b244fc011d117 (patch) | |
| tree | a5918e74f1c637ce09713e97beb80206ba38c412 /pkg/report/linux.go | |
| parent | 081721ff155e6fae822c7058dc8c8d2cd293a497 (diff) | |
pkg/report: handle syzkaller binaries
syzkallerNNN binaries are coming from pkg/repro.
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 3e53488a2..a672545de 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -188,7 +188,9 @@ func (ctx *linux) Parse(output []byte) *Report { rep.Report = append(rep.Report, report...) rep.Corrupted = ctx.isCorrupted(title, report, format) // Executor PIDs are not interesting. - rep.Title = executorRe.ReplaceAllLiteralString(rep.Title, "syz-executor") + rep.Title = executorBinRe.ReplaceAllLiteralString(rep.Title, "syz-executor") + // syzkaller binaries are coming from repro. + rep.Title = syzkallerBinRe.ReplaceAllLiteralString(rep.Title, "syzkaller") // Replace that everything looks like an address with "ADDR", // addresses in descriptions can't be good regardless of the oops regexps. rep.Title = addrRe.ReplaceAllString(rep.Title, "${1}ADDR") @@ -428,7 +430,8 @@ var ( decNumRe = regexp.MustCompile(`([^a-zA-Z])[0-9]{5,}`) funcRe = regexp.MustCompile(`([a-zA-Z][a-zA-Z0-9_.]+)\+0x[0-9a-z]+/0x[0-9a-z]+`) cpuRe = regexp.MustCompile(`CPU#[0-9]+`) - executorRe = regexp.MustCompile(`syz-executor[0-9]+((/|:)[0-9]+)?`) + executorBinRe = regexp.MustCompile(`syz-executor[0-9]+((/|:)[0-9]+)?`) + syzkallerBinRe = regexp.MustCompile(`syzkaller[0-9]+((/|:)[0-9]+)?`) ) var linuxCorruptedTitles = []*regexp.Regexp{ |
