From 1c2f03dc0d9fbb5ccb1c3ec28a37583ccdf0d893 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 22 Feb 2019 18:39:15 +0100 Subject: pkg/report: add few netbsd KASAN reports --- pkg/report/netbsd.go | 6 +++--- pkg/report/testdata/netbsd/report/6 | 17 +++++++++++++++++ pkg/report/testdata/netbsd/report/7 | 18 ++++++++++++++++++ 3 files changed, 38 insertions(+), 3 deletions(-) create mode 100644 pkg/report/testdata/netbsd/report/6 create mode 100644 pkg/report/testdata/netbsd/report/7 diff --git a/pkg/report/netbsd.go b/pkg/report/netbsd.go index 20d99d134..0763a50d5 100644 --- a/pkg/report/netbsd.go +++ b/pkg/report/netbsd.go @@ -67,11 +67,11 @@ var netbsdOopses = []*oops{ []*regexp.Regexp{}, }, { - []byte("kASan:"), + []byte("ASan:"), []oopsFormat{ { - title: compile("kASan:"), - fmt: "kASan bug", + title: compile("ASan:"), + fmt: "ASan bug", }, }, []*regexp.Regexp{}, diff --git a/pkg/report/testdata/netbsd/report/6 b/pkg/report/testdata/netbsd/report/6 new file mode 100644 index 000000000..17419010a --- /dev/null +++ b/pkg/report/testdata/netbsd/report/6 @@ -0,0 +1,17 @@ +TITLE: ASan bug + +login: [ 97.7755351] kASan: Unauthorized Access In 0xffffffff80a5449c: Addr 0xffffc480049666bc [4 bytes, read] +[ 97.7755351] #0 0xffffffff80a5449c in in6_print +[ 97.7856191] #1 0xffffffff80a54b21 in sin6_print +[ 97.7856191] #2 0xffffffff80f23b2f in sockaddr_checklen +[ 97.7955816] #3 0xffffffff80f23bd0 in sockaddr_alloc +[ 97.7955816] #4 0xffffffff80f23d35 in sockaddr_dup +[ 97.7955816] #5 0xffffffff81035d9a in rtcache_setdst +[ 97.8056417] #6 0xffffffff81036197 in rtcache_lookup2 +[ 97.8056417] #7 0xffffffff80a5526b in in6_selectroute +[ 97.8056417] #8 0xffffffff80a556d5 in in6_selectsrc +[ 97.8159029] #9 0xffffffff80a7cf93 in rip6_connect_wrapper +[ 97.8159029] #10 0xffffffff80f3e2eb in do_sys_connect +[ 97.8257126] #11 0xffffffff80f3e513 in sys_connect +[ 97.8257126] #12 0xffffffff80e92599 in sys___syscall +[ 97.8257126] #13 0xffffffff80263338 in syscall diff --git a/pkg/report/testdata/netbsd/report/7 b/pkg/report/testdata/netbsd/report/7 new file mode 100644 index 000000000..927ab1d1d --- /dev/null +++ b/pkg/report/testdata/netbsd/report/7 @@ -0,0 +1,18 @@ +TITLE: ASan bug + +login: [ 161.8124298] kASan: Unauthorized Access In 0xffffffff80a5449c: Addr 0xffffc9000495f6f4 [4 bytes, read] +[ 161.8223936] #0 0xffffffff80a5449c in in6_print +[ 161.8223936] #1 0xffffffff80a54b21 in sin6_print +[ 161.8324951] #2 0xffffffff80f23b2f in sockaddr_checklen +[ 161.8324951] #3 0xffffffff80f23bd0 in sockaddr_alloc +[ 161.8324951] #4 0xffffffff80f23d35 in sockaddr_dup +[ 161.8424679] #5 0xffffffff81035d9a in rtcache_setdst +[ 161.8424679] #6 0xffffffff81036197 in rtcache_lookup2 +[ 161.8525790] #7 0xffffffff80a5526b in in6_selectroute +[ 161.8525790] #8 0xffffffff80a556d5 in in6_selectsrc +[ 161.8525790] #9 0xffffffff80a7e004 in rip6_output +[ 161.8625254] #10 0xffffffff80a7ea57 in rip6_send_wrapper +[ 161.8625254] #11 0xffffffff80f34284 in sosend +[ 161.8625254] #12 0xffffffff80f3ed39 in do_sys_sendmsg_so +[ 161.8728803] #13 0xffffffff80f3f172 in do_sys_sendmsg +[ 161.8728803] #14 0xffffffff80f3f3e7 in sys_sendmsg -- cgit mrf-deployment