pkg/report: add KUBSan netbsd reports

Just to detect them at all and have some test base.
Will need better bug identification later.
This commit is contained in:
Dmitry Vyukov 2019-02-23 11:40:34 +01:00
parent 18107ce07f
commit c28db61f53
5 changed files with 22 additions and 0 deletions

View File

@ -76,4 +76,14 @@ var netbsdOopses = []*oops{
},
[]*regexp.Regexp{},
},
{
[]byte("KUBSan:"),
[]oopsFormat{
{
title: compile("KUBSan:"),
fmt: "KUBSan: Undefined behavior",
},
},
[]*regexp.Regexp{},
},
}

3
pkg/report/testdata/netbsd/report/10 vendored Normal file
View File

@ -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

3
pkg/report/testdata/netbsd/report/11 vendored Normal file
View File

@ -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'

3
pkg/report/testdata/netbsd/report/8 vendored Normal file
View File

@ -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

3
pkg/report/testdata/netbsd/report/9 vendored Normal file
View File

@ -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