From 026e22005acd3e0c1093dee4eb9a577d6b847197 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 13 Mar 2023 10:26:17 +0100 Subject: 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 --- pkg/report/linux.go | 7 ++++++- pkg/report/testdata/linux/report/691 | 7 +++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 pkg/report/testdata/linux/report/691 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 + -- cgit mrf-deployment