diff options
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/linux.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index fdf960015..ace1d5ac4 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1148,7 +1148,8 @@ var linuxStackParams = &stackParams{ regexp.MustCompile(`Freed:`), regexp.MustCompile(`Freed by task [0-9]+:`), // Match 'backtrace:', but exclude 'stack backtrace:' - regexp.MustCompile(`[^k] backtrace:`), + // Also match optional crc hash for KMEMLEAK reports. + regexp.MustCompile(`[^k] backtrace(?: \(crc [[:xdigit:]]*\))?:`), regexp.MustCompile(`Backtrace:`), regexp.MustCompile(`Uninit was stored to memory at`), }, @@ -1754,7 +1755,7 @@ var linuxOopses = append([]*oops{ fmt: "memory leak in %[1]v", stack: &stackFmt{ parts: []*regexp.Regexp{ - compile("backtrace:"), + compile("backtrace(?: \\(crc [[:xdigit:]]*\\))?:"), parseStackTrace, }, skip: []string{"kmemleak", "mmap", "kmem", "slab", "alloc", "create_object", |
