diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-07-05 15:20:13 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-07-06 09:36:27 +0000 |
| commit | 645a1add5cd43a7dc04fe3487f355bcca26f646e (patch) | |
| tree | bc88a3fd5024e6a90eae969c9b366083802e2a63 /pkg | |
| parent | cc95fb5912660d27a6668f2dce4738952ac16703 (diff) | |
pkg/report: introduce crash.SyzFailure report type
It refers to SYZFAIL and SYZFATAL errors.
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/report/crash/types.go | 1 | ||||
| -rw-r--r-- | pkg/report/report.go | 4 | ||||
| -rw-r--r-- | pkg/report/testdata/all/report/5 | 1 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/601 | 1 | ||||
| -rw-r--r-- | pkg/report/testdata/linux/report/660 | 1 |
5 files changed, 6 insertions, 2 deletions
diff --git a/pkg/report/crash/types.go b/pkg/report/crash/types.go index 85a36853e..9a5be9136 100644 --- a/pkg/report/crash/types.go +++ b/pkg/report/crash/types.go @@ -18,6 +18,7 @@ const ( LockdepBug = Type("LOCKDEP") AtomicSleep = Type("ATOMIC_SLEEP") KMSAN = Type("KMSAN") + SyzFailure = Type("SYZ_FAILURE") ) func (t Type) String() string { diff --git a/pkg/report/report.go b/pkg/report/report.go index 4498945c6..bc7fc8ca3 100644 --- a/pkg/report/report.go +++ b/pkg/report/report.go @@ -763,7 +763,7 @@ var commonOopses = []*oops{ }, }, []*regexp.Regexp{}, - crash.UnknownType, + crash.SyzFailure, }, { // Errors produced by log.Fatal functions. @@ -777,7 +777,7 @@ var commonOopses = []*oops{ }, }, []*regexp.Regexp{}, - crash.UnknownType, + crash.SyzFailure, }, { []byte("panic:"), diff --git a/pkg/report/testdata/all/report/5 b/pkg/report/testdata/all/report/5 index 797dd5456..506845436 100644 --- a/pkg/report/testdata/all/report/5 +++ b/pkg/report/testdata/all/report/5 @@ -1,4 +1,5 @@ TITLE: SYZFATAL: executor NUM failed NUM times: call NUM/NUM/NUM: signal overflow: ADDR/ADDR ALT: SYZFATAL +TYPE: SYZ_FAILURE 2022/04/21 07:35:27 SYZFATAL: executor 0 failed 11 times: call 15/15/3356: signal overflow: 808464432/16776764 diff --git a/pkg/report/testdata/linux/report/601 b/pkg/report/testdata/linux/report/601 index 907585130..516d5949f 100644 --- a/pkg/report/testdata/linux/report/601 +++ b/pkg/report/testdata/linux/report/601 @@ -1,4 +1,5 @@ TITLE: SYZFAIL: negative running +TYPE: SYZ_FAILURE 2021/02/21 12:37:19 executor 5 failed 11 times: executor 5: exit status 67 diff --git a/pkg/report/testdata/linux/report/660 b/pkg/report/testdata/linux/report/660 index efa87f75e..5c4558ba3 100644 --- a/pkg/report/testdata/linux/report/660 +++ b/pkg/report/testdata/linux/report/660 @@ -1,5 +1,6 @@ TITLE: SYZFATAL: executor NUM failed NUM times: failed to create temp dir: mkdir ./syzkaller-testdirNUM: read-only file system ALT: SYZFATAL +TYPE: SYZ_FAILURE 2022/10/02 11:34:15 SYZFATAL: executor 4 failed 11 times: failed to create temp dir: mkdir ./syzkaller-testdir264563108: read-only file system |
