aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-02-22 18:39:15 +0100
committerDmitry Vyukov <dvyukov@google.com>2019-02-22 18:39:15 +0100
commit1c2f03dc0d9fbb5ccb1c3ec28a37583ccdf0d893 (patch)
tree094fce212c78395c3e7e80d81f46bdd2f46f4509 /pkg
parent7fa29a58950476516166f4cd66d66036fb182be2 (diff)
pkg/report: add few netbsd KASAN reports
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/netbsd.go6
-rw-r--r--pkg/report/testdata/netbsd/report/617
-rw-r--r--pkg/report/testdata/netbsd/report/718
3 files changed, 38 insertions, 3 deletions
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 <netbsd>
+[ 97.7856191] #1 0xffffffff80a54b21 in sin6_print <netbsd>
+[ 97.7856191] #2 0xffffffff80f23b2f in sockaddr_checklen <netbsd>
+[ 97.7955816] #3 0xffffffff80f23bd0 in sockaddr_alloc <netbsd>
+[ 97.7955816] #4 0xffffffff80f23d35 in sockaddr_dup <netbsd>
+[ 97.7955816] #5 0xffffffff81035d9a in rtcache_setdst <netbsd>
+[ 97.8056417] #6 0xffffffff81036197 in rtcache_lookup2 <netbsd>
+[ 97.8056417] #7 0xffffffff80a5526b in in6_selectroute <netbsd>
+[ 97.8056417] #8 0xffffffff80a556d5 in in6_selectsrc <netbsd>
+[ 97.8159029] #9 0xffffffff80a7cf93 in rip6_connect_wrapper <netbsd>
+[ 97.8159029] #10 0xffffffff80f3e2eb in do_sys_connect <netbsd>
+[ 97.8257126] #11 0xffffffff80f3e513 in sys_connect <netbsd>
+[ 97.8257126] #12 0xffffffff80e92599 in sys___syscall <netbsd>
+[ 97.8257126] #13 0xffffffff80263338 in syscall <netbsd>
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 <netbsd>
+[ 161.8223936] #1 0xffffffff80a54b21 in sin6_print <netbsd>
+[ 161.8324951] #2 0xffffffff80f23b2f in sockaddr_checklen <netbsd>
+[ 161.8324951] #3 0xffffffff80f23bd0 in sockaddr_alloc <netbsd>
+[ 161.8324951] #4 0xffffffff80f23d35 in sockaddr_dup <netbsd>
+[ 161.8424679] #5 0xffffffff81035d9a in rtcache_setdst <netbsd>
+[ 161.8424679] #6 0xffffffff81036197 in rtcache_lookup2 <netbsd>
+[ 161.8525790] #7 0xffffffff80a5526b in in6_selectroute <netbsd>
+[ 161.8525790] #8 0xffffffff80a556d5 in in6_selectsrc <netbsd>
+[ 161.8525790] #9 0xffffffff80a7e004 in rip6_output <netbsd>
+[ 161.8625254] #10 0xffffffff80a7ea57 in rip6_send_wrapper <netbsd>
+[ 161.8625254] #11 0xffffffff80f34284 in sosend <netbsd>
+[ 161.8625254] #12 0xffffffff80f3ed39 in do_sys_sendmsg_so <netbsd>
+[ 161.8728803] #13 0xffffffff80f3f172 in do_sys_sendmsg <netbsd>
+[ 161.8728803] #14 0xffffffff80f3f3e7 in sys_sendmsg <netbsd>