aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorAnton Lindqvist <anton@basename.se>2018-11-12 08:01:50 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-11-12 12:34:06 -0800
commitd55a06c0bf91ef78a42958dd71ffa841dae5cf9a (patch)
treefad77730a88a77c1c9c3a077027851342266cf59 /pkg
parente8722ddd8381e4f879595942c631d2a790c731fd (diff)
pkg/report: do not interpret reorder_kernel lines as a crash on OpenBSD
Sometimes the reorder_kernel error message is truncated causing the current ignore pattern to fail. Instead, simply reject all lines containing `reorder_kernel' in order to reduce noisy crash reports.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/openbsd.go2
-rw-r--r--pkg/report/testdata/openbsd/report/723
2 files changed, 24 insertions, 1 deletions
diff --git a/pkg/report/openbsd.go b/pkg/report/openbsd.go
index 2f07512b5..495ccc297 100644
--- a/pkg/report/openbsd.go
+++ b/pkg/report/openbsd.go
@@ -97,7 +97,7 @@ var openbsdOopses = []*oops{
[]byte("kernel:"),
[]oopsFormat{},
[]*regexp.Regexp{
- compile("kernel relinking failed"),
+ compile("reorder_kernel"),
},
},
}
diff --git a/pkg/report/testdata/openbsd/report/7 b/pkg/report/testdata/openbsd/report/7
new file mode 100644
index 000000000..eb5fe7f69
--- /dev/null
+++ b/pkg/report/testdata/openbsd/report/7
@@ -0,0 +1,23 @@
+
+reorder_kernel: kernel relinking fail
+OpenBSD/amd64 (syzkaller.my.domain) (tty00)
+
+login:
+
+OpenBSD/amd64 (syzkaller.my.domain) (tty00)
+
+Warning: Permanently added '100.65.68.3' (ECDSA) to the list of known hosts.
+login: trace
+Password:
+Login incorrect
+2018/11/12 04:01:30 fuzzer started
+2018/11/12 04:01:33 dialing manager at 100.65.68.2:24886
+2018/11/12 04:01:33 syscalls: 1
+2018/11/12 04:01:33 code coverage: enabled
+2018/11/12 04:01:33 comparison tracing: support is not implemented in syzkaller2018/11/12 04:01:33 setuid sandbox: support is not implemented in syzkaller
+2018/11/12 04:01:33 namespace sandbox: support is not implemented in syzkaller
+2018/11/12 04:01:33 Android sandbox: support is not implemented in syzkaller
+2018/11/12 04:01:33 fault injection: support is not implemented in syzkaller
+2018/11/12 04:01:33 leak checking: support is not implemented in syzkaller
+2018/11/12 04:01:33 net packed injection: support is not implemented in syzkaller
+2018/11/12 04:01:33 net device setup: support is not implemented in syzkaller