aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-02-23 11:40:34 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-02-23 11:41:44 +0100
commitc28db61f537215158de40cdec7d21f13d8814afd (patch)
tree06239659061832db8fb5aac9e493e73d1c481445 /pkg
parent18107ce07fa018a31936624088bc0bf37fdd432c (diff)
pkg/report: add KUBSan netbsd reports
Just to detect them at all and have some test base. Will need better bug identification later.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/netbsd.go10
-rw-r--r--pkg/report/testdata/netbsd/report/103
-rw-r--r--pkg/report/testdata/netbsd/report/113
-rw-r--r--pkg/report/testdata/netbsd/report/83
-rw-r--r--pkg/report/testdata/netbsd/report/93
5 files changed, 22 insertions, 0 deletions
diff --git a/pkg/report/netbsd.go b/pkg/report/netbsd.go
index 0763a50d5..c3df170d0 100644
--- a/pkg/report/netbsd.go
+++ b/pkg/report/netbsd.go
@@ -76,4 +76,14 @@ var netbsdOopses = []*oops{
},
[]*regexp.Regexp{},
},
+ {
+ []byte("KUBSan:"),
+ []oopsFormat{
+ {
+ title: compile("KUBSan:"),
+ fmt: "KUBSan: Undefined behavior",
+ },
+ },
+ []*regexp.Regexp{},
+ },
}
diff --git a/pkg/report/testdata/netbsd/report/10 b/pkg/report/testdata/netbsd/report/10
new file mode 100644
index 000000000..821b24a42
--- /dev/null
+++ b/pkg/report/testdata/netbsd/report/10
@@ -0,0 +1,3 @@
+TITLE: KUBSan: Undefined behavior
+
+[ 3.379785] KUBSan: Undefined behavior in /usr/src/sys/dev/usb/xhci.c:413:2, member access within misaligned address 0xffffe4013a4b4008 for type 'const struct xhci_softc' which requires 16 byte alignment
diff --git a/pkg/report/testdata/netbsd/report/11 b/pkg/report/testdata/netbsd/report/11
new file mode 100644
index 000000000..16daa1c77
--- /dev/null
+++ b/pkg/report/testdata/netbsd/report/11
@@ -0,0 +1,3 @@
+TITLE: KUBSan: Undefined behavior
+
+[ 3.389788] KUBSan: Undefined behavior in /usr/src/sys/dev/ic/ahcisata_core.c:558:16, left shift of 1 by 31 places cannot be represented in type 'int'
diff --git a/pkg/report/testdata/netbsd/report/8 b/pkg/report/testdata/netbsd/report/8
new file mode 100644
index 000000000..be67ee6e4
--- /dev/null
+++ b/pkg/report/testdata/netbsd/report/8
@@ -0,0 +1,3 @@
+TITLE: KUBSan: Undefined behavior
+
+[ 6.580814] KUBSan: Undefined behavior in /usr/src/sys/arch/amd64/amd64/kobj_machdep.c:118:10, store to misaligned address 0xffffffff855d1239 for type 'Elf64_Addr' which requires 8 byte alignment
diff --git a/pkg/report/testdata/netbsd/report/9 b/pkg/report/testdata/netbsd/report/9
new file mode 100644
index 000000000..6074d9c53
--- /dev/null
+++ b/pkg/report/testdata/netbsd/report/9
@@ -0,0 +1,3 @@
+TITLE: KUBSan: Undefined behavior
+
+[ 92.248325] KUBSan: Undefined behavior in /usr/src/sys/netinet/tcp_input.c:1362:18, load of misaligned address 0xffffe40815d3c03e for type 'u_int32_t' which requires 4 byte alignment