diff options
| author | Sabyrzhan Tasbolatov <snovitoll@gmail.com> | 2024-09-10 22:01:03 +0500 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-09-10 19:45:15 +0000 |
| commit | 8ab55d0eede313b6ecc94ec419a490bbe92d27de (patch) | |
| tree | 0a3d14382d619cc9f4dcb2c6cb5704162a3ee7ed /pkg/report/linux.go | |
| parent | 79eef296040b4029aa0f4ae6dcf30de19f46698b (diff) | |
pkg/report: filter out false reboot reports
Strict regexp rules to avoid false reboot reports as
"Booting the kernel." should always start from the start and at the end
of line.
Also addressed in unit test the previous fix in
https://github.com/google/syzkaller/commit/026e2200.
Fixes: https://github.com/google/syzkaller/issues/3955
Diffstat (limited to 'pkg/report/linux.go')
| -rw-r--r-- | pkg/report/linux.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go index 1ac1b8ee9..8a6cc7573 100644 --- a/pkg/report/linux.go +++ b/pkg/report/linux.go @@ -2387,7 +2387,7 @@ var linuxOopses = append([]*oops{ []byte("Booting the kernel."), []oopsFormat{ { - title: compile("Booting the kernel."), + title: compile("^Booting the kernel"), fmt: "unexpected kernel reboot", noStackTrace: true, reportType: crash.UnexpectedReboot, @@ -2397,7 +2397,7 @@ var linuxOopses = append([]*oops{ // These may appear on the same line when the fuzzer reads from the console the existing // boot message and then pass it as mount option, kernel then prints it back // as an invalid mount option and we detect false reboot. - compile("Parsing ELF|Decompressing Linux"), + compile("Parsing ELF|Decompressing Linux|Unknown parameter '"), }, crash.UnknownType, }, |
