aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-07-01 14:26:04 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-07-01 13:21:29 +0000
commit1f0ee43044bc8fc00bc1eccc85a93bf2b9972dd1 (patch)
tree5cfc8db10998ff99b5c68376106c0fc0d9c4e5d2 /pkg
parent76838be540c998a66392d0267d7c9ee3b4a27a46 (diff)
pkg/report: suppress executor SIGBUS
SIGBUS means OOM on Linux. Most of the crashes that happen during fuzzing are SIGBUS, so separate them from SIGSEGV and suppress.
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/linux.go1
-rw-r--r--pkg/report/testdata/linux/report/7165
-rw-r--r--pkg/report/testdata/linux/report/7176
3 files changed, 12 insertions, 0 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index 26cb5461f..596c834ce 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -126,6 +126,7 @@ func ctorLinux(cfg *config) (reporterImpl, []string, error) {
"panic: failed to create temp dir",
"fatal error: unexpected signal during runtime execution", // presubmably OOM turned into SIGBUS
"signal SIGBUS: bus error", // presubmably OOM turned into SIGBUS
+ "SYZFAIL: SIGBUS",
"Out of memory: Kill process .* \\(syz-executor\\)",
"Out of memory: Kill process .* \\(sshd\\)",
"Killed process .* \\(syz-executor\\)",
diff --git a/pkg/report/testdata/linux/report/716 b/pkg/report/testdata/linux/report/716
new file mode 100644
index 000000000..cb22fb914
--- /dev/null
+++ b/pkg/report/testdata/linux/report/716
@@ -0,0 +1,5 @@
+TITLE: SYZFAIL: SIGSEGV
+TYPE: SYZ_FAILURE
+
+SYZFAIL: SIGSEGV
+handler:0x123 pc:0x7f88b7e4e673 addr:0x7f88b11ffffc (errno 9: Bad file descriptor)
diff --git a/pkg/report/testdata/linux/report/717 b/pkg/report/testdata/linux/report/717
new file mode 100644
index 000000000..a746e167c
--- /dev/null
+++ b/pkg/report/testdata/linux/report/717
@@ -0,0 +1,6 @@
+TITLE: SYZFAIL: SIGBUS
+TYPE: SYZ_FAILURE
+SUPPRESSED: Y
+
+SYZFAIL: SIGBUS
+handler:0x123 pc:0x7f88b7e4e673 addr:0x7f88b11ffffc (errno 9: Bad file descriptor)