diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-11-26 11:35:15 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-11-26 11:01:11 +0000 |
| commit | c116feb4ccc98c886779a006c9e4ed04022a289e (patch) | |
| tree | 37734fc596df450e6bc4624518a2041b1ebd914c /pkg/report/linux.go | |
| parent | 64219f1537429ca826770c4d6f3d49ee6964d16c (diff) | |
pkg/report: adapt to the new WARN format
The format has been changed recently:
https://lore.kernel.org/all/20251110114633.202485143@infradead.org/
This commit addresses the duplicates we currently see among the
linux-next bugs, but likely there are more. We'll fix it once we notice
them.
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index ace1d5ac4..e8f85cef9 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -1811,7 +1811,7 @@ var linuxOopses = append([]*oops{ []byte("WARNING:"), []oopsFormat{ { - title: compile("WARNING: .*lib/debugobjects\\.c.* (?:debug_print|debug_check)"), + title: compile("WARNING: .*lib/debugobjects\\.c.* (?:debug_print|debug_check|at)"), fmt: "WARNING: ODEBUG bug in %[1]v", // Skip all users of ODEBUG as well. stack: warningStackFmt("debug_", "rcu", "hrtimer_", "timer_", @@ -1819,22 +1819,22 @@ var linuxOopses = append([]*oops{ "vfree", "__free_", "debug_check", "kobject_"), }, { - title: compile("WARNING: .*mm/usercopy\\.c.* usercopy_warn"), + title: compile("WARNING: .*mm/usercopy\\.c.* (?:usercopy_warn|at)"), fmt: "WARNING: bad usercopy in %[1]v", stack: warningStackFmt("usercopy", "__check"), }, { - title: compile("WARNING: .*lib/kobject\\.c.* kobject_"), + title: compile("WARNING: .*lib/kobject\\.c.* (?:kobject_|at)"), fmt: "WARNING: kobject bug in %[1]v", stack: warningStackFmt("kobject_"), }, { - title: compile("WARNING: .*fs/proc/generic\\.c.* proc_register"), + title: compile("WARNING: .*fs/proc/generic\\.c.* (?:proc_register|at)"), fmt: "WARNING: proc registration bug in %[1]v", stack: warningStackFmt("proc_"), }, { - title: compile("WARNING: .*lib/refcount\\.c.* refcount_"), + title: compile("WARNING: .*lib/refcount\\.c.* (?:refcount_|at)"), fmt: "WARNING: refcount bug in %[1]v", stack: warningStackFmt("refcount", "kobject_"), }, @@ -1875,6 +1875,12 @@ var linuxOopses = append([]*oops{ stack: warningStackFmt("usb_submit_urb", "usb_start_wait_urb", "usb_bulk_msg", "usb_interrupt_msg", "usb_control_msg"), }, { + // Format introduced in https://lore.kernel.org/all/20251110114633.202485143@infradead.org/. + title: compile(`WARNING: {{SRC}} at 0x\d+, CPU#\d+`), + fmt: "WARNING in %[2]v", + stack: warningStackFmt(), + }, + { title: compile("WARNING: .* at {{SRC}} {{FUNC}}"), fmt: "WARNING in %[3]v", stack: warningStackFmt(), |
