From bacaf5fa2c2671b5763d7464cd9824ab68a70758 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 11 Aug 2020 08:33:51 +0200 Subject: pkg/report: fix parsing of kernel-usb-infoleak It used to use warningStackFmt, it is wrong, this is not a WARNING. As the result it previously parsed as: KMSAN: kernel-usb-infoleak in __kmalloc --- pkg/report/linux.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pkg/report/linux.go') diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 85b62a89b..526ce6bca 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -952,7 +952,13 @@ var linuxOopses = append([]*oops{ title: compile("BUG: KMSAN: kernel-usb-infoleak"), report: compile("BUG: KMSAN: kernel-usb-infoleak in {{FUNC}}"), fmt: "KMSAN: kernel-usb-infoleak in %[2]v", - stack: warningStackFmt("usb_submit_urb", "usb_start_wait_urb", "usb_bulk_msg", "usb_interrupt_msg", "usb_control_msg"), + stack: &stackFmt{ + parts: []*regexp.Regexp{ + compile("Call Trace:"), + parseStackTrace, + }, + skip: []string{"usb_submit_urb", "usb_start_wait_urb", "usb_bulk_msg", "usb_interrupt_msg", "usb_control_msg"}, + }, }, { title: compile("BUG: KMSAN:"), -- cgit mrf-deployment