aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/report/linux.go
diff options
context:
space:
mode:
authorAleksandr Nogikh <nogikh@google.com>2025-07-18 17:58:49 +0200
committerAleksandr Nogikh <nogikh@google.com>2025-07-21 09:37:44 +0000
commit56d87229fad9ebee9698d3e78d5cd6a9b6f12fe9 (patch)
treeffcf4a3198a6d8e9cbf7eb1721f92f3f511ed55f /pkg/report/linux.go
parent9545b98ac5c86170484e1128153d7d51b8e1f214 (diff)
pkg/report: exclude crc implementations from guilty files
If these happen to be in the stack frames, in almost all cases it will be due to a bug in the calling code. See the discussion in #5784.
Diffstat (limited to 'pkg/report/linux.go')
-rw-r--r--pkg/report/linux.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index c67274ac8..c97e31bc4 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -110,6 +110,8 @@ func ctorLinux(cfg *config) (reporterImpl, []string, error) {
regexp.MustCompile(`^fs/proc/generic.c`),
regexp.MustCompile(`^trusty/`), // Trusty sources are not in linux kernel tree.
regexp.MustCompile(`^drivers/usb/core/urb.c`), // WARNING in urb.c usually means a bug in a driver
+ // Crashes in these files are almost always caused by the calling code.
+ regexp.MustCompile(`^arch/.*/lib/crc.*`),
}
ctx.guiltyLineIgnore = regexp.MustCompile(`(hardirqs|softirqs)\s+last\s+(enabled|disabled)|^Register r\d+ information`)
// These pattern do _not_ start a new report, i.e. can be in a middle of another report.