aboutsummaryrefslogtreecommitdiffstats
path: root/pkg
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2023-03-13 10:26:17 +0100
committerDmitry Vyukov <dvyukov@google.com>2023-03-13 12:43:29 +0100
commit026e22005acd3e0c1093dee4eb9a577d6b847197 (patch)
treee48a2928ffd5a201b75d11fb374d2ffde46220ae /pkg
parentc72cff6c5e280ee7bfbdb8772bce6a1953ef81fa (diff)
pkg/report: fix false positive reboot reports
For context see: https://lore.kernel.org/all/CACT4Y+ZMXN=smH-0FN4Ui0zm6P-c=eEwG6fNJ9deTnc0M099UQ@mail.gmail.com/T/#t
Diffstat (limited to 'pkg')
-rw-r--r--pkg/report/linux.go7
-rw-r--r--pkg/report/testdata/linux/report/6917
2 files changed, 13 insertions, 1 deletions
diff --git a/pkg/report/linux.go b/pkg/report/linux.go
index e2b5ffabf..9dba87c9e 100644
--- a/pkg/report/linux.go
+++ b/pkg/report/linux.go
@@ -2230,7 +2230,12 @@ var linuxOopses = append([]*oops{
noStackTrace: true,
},
},
- []*regexp.Regexp{},
+ []*regexp.Regexp{
+ // 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"),
+ },
},
{
[]byte("unregister_netdevice: waiting for"),
diff --git a/pkg/report/testdata/linux/report/691 b/pkg/report/testdata/linux/report/691
new file mode 100644
index 000000000..6500cf53e
--- /dev/null
+++ b/pkg/report/testdata/linux/report/691
@@ -0,0 +1,7 @@
+
+[ 56.037524][ T5250] fuseblk: Unknown parameter ' Decompressing Linux... Parsing ELF... done. Booting the kernel. Decompressing Linux... Parsing ELF... done. Booting the kernel.
+[ 56.053354][ T5253] fuseblk: Bad value for 'fd'
+[ 284.407339][ T6873] loop2: detected capacity change from 0 to 4096
+[ 284.434887][ T6873] ntfs3: Unknown parameter 'Decompressing Linux... Parsing ELF... done. Booting the kernel. '
+[ 284.473552][ T6832] BTRFS info (device loop0): using xxhash64 (xxhash64-generic) checksum algorithm
+