Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion pkg/report/report_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ func (test *ParseTest) Equal(other *ParseTest) bool {

func (test *ParseTest) Headers() []byte {
buf := new(bytes.Buffer)
fmt.Fprintf(buf, "TITLE: %v\n", test.Title)
if test.Title != "" {
fmt.Fprintf(buf, "TITLE: %v\n", test.Title)
}
for _, t := range test.AltTitles {
fmt.Fprintf(buf, "ALT: %v\n", t)
}
Expand Down Expand Up @@ -293,6 +295,10 @@ func checkReport(t *testing.T, reporter *Reporter, rep *Report, test *ParseTest)

func updateReportTest(t *testing.T, test, parsed *ParseTest) {
buf := new(bytes.Buffer)
if test.Frame == "" {
// Don't create "FRAME:" record, only update existing.
parsed.Frame = ""
}
buf.Write(parsed.Headers())
fmt.Fprintf(buf, "\n%s", test.Log)
if test.HasReport {
Expand Down
2 changes: 1 addition & 1 deletion pkg/report/testdata/darwin/report/6
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ Backtrace (CPU 1), Frame : Return Address
0xffffffb04918fda0 : 0xffffff8006eb2882 com.apple.filesystems.apfs : _obj_cache_flush_write + 0xe4
0xffffffb04918fe10 : 0xffffff8006ecd22d com.apple.filesystems.apfs : _tx_flush + 0x3be
0xffffffb04918ff20 : 0xffffff8006eccc4c com.apple.filesystems.apfs : _tx_flush_thread + 0x18b
0xffffffb04918ffa0 : 0xffffff800290881e mach_kernel : _call_continuation + 0x2e
0xffffffb04918ffa0 : 0xffffff800290881e mach_kernel : _call_continuation + 0x2e
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/129
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TITLE: INFO: corrupted
CORRUPTED: Y

INFO:
INFO:
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/262
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

DEBUG: #15 pc 000000000045c4a0 /system/lib64/libart.so (art::InvokeWithVarArgs(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+424)
audio_aio_open[fffffff9cf4f9280]:SIO interface not supported
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/337
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Output with CONFIG_PRINTK_CALLER=y
TITLE: kernel panic: sysrq triggered crash
TYPE: DoS

Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/420
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

[ 600.004493] EXT4-fs (loop1): feature flags set on rev 0 fs, running e2fsck is recommended
[ 600.013573] EXT4-fs (loop1): ext4_check_descriptors: Block bitmap for group 0 overlaps superblock
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/617
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
TITLE: kernel panic: VFS: Unable to mount root fs on unknown-block(NUM,NUM)
CORRUPTED: N
TYPE: DoS


Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/618
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

[ 49.650190][ T126] wlan1: Created IBSS using preconfigured BSSID 50:50:50:50:50:50
[ 49.658919][ T126] wlan1: Creating new IBSS network, BSSID 50:50:50:50:50:50
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/619
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

[ 144.247612][T11794] IPv6: ADDRCONF(NETDEV_CHANGE): lo: link becomes ready
[ 144.274089][T11803] =======================================================
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/647
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:


[ 1.229302][ T0] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/649
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

Warning: Permanently added '10.128.0.132' (ECDSA) to the list of known hosts.
syzkaller login: [ 36.852785][ T3615] traps: syz-executor229[3615] general protection fault ip:7feb96eb56a1 sp:20000fd0 error:0 in syz-executor2295634012[7feb96e75000+84000]
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/654
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:



Expand Down
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/687
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,4 @@ TYPE: HANG
[ 1947.084170][ T5091] Bluetooth: hci1: command 0x0406 tx timeout
[ 1947.090224][ T5091] Bluetooth: hci3: command 0x0406 tx timeout
[ 1947.097842][T28905] Bluetooth: hci5: command 0x0406 tx timeout
[ 1952.190632][T28905] Bluetooth: hci9: unexpected cc 0x0c03 length: 249 > 1
[ 1952.190632][T28905] Bluetooth: hci9: unexpected cc 0x0c03 length: 249 > 1
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/692
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ Call Trace:
smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164
kthread+0x2e4/0x3a0 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>
</TASK>
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/706
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ Sep 23 02:31[ 69.295771][ T2742] ALSA: seq fatal error: cannot create timer (-
rn.err kernel: [[ 69.311910][ T2742] ALSA: seq fatal error: cannot create timer (-22)
68.938106][ T[ 69.319571][ T2742] ALSA: seq fatal error: cannot create timer (-22)
2742] ALSA: seq [ 69.327618][ T2742] ALSA: seq fatal error: cannot create timer (-22)
fatal error: cannot create timer (-22)
fatal error: cannot create timer (-22)
3 changes: 1 addition & 2 deletions pkg/report/testdata/linux/report/710
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:


Spectre V2 : User space: Mitigation: STIBP always-on protection
Expand All @@ -25,4 +24,4 @@ Inode-cache hash table entries: 524288 (order: 10, 4194304 bytes, vmalloc hugepa
Mount-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc)
Mountpoint-cache hash table entries: 16384 (order: 5, 131072 bytes, vmalloc)
Running RCU synchronous self tests
Running RCU synchronous self tests
Running RCU synchronous self tests
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/711
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@ TYPE: WARNING
[ 1176.224189][T23686] ret_from_fork_asm+0x1b/0x30
[ 1176.228957][T23686] </TASK>
[ 1176.232148][T23686] Kernel Offset: disabled
[ 1176.236672][T23686] Rebooting in 86400 seconds..
[ 1176.236672][T23686] Rebooting in 86400 seconds..
3 changes: 1 addition & 2 deletions pkg/report/testdata/linux/report/712
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

[ 33.603917][ T3329] ======================================================
[ 33.603917][ T3329] WARNING: the mand mount option is being deprecat
[ 33.603917][ T3329] WARNING: the mand mount option is being deprecat
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/714
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ TYPE: WARNING
[ 86.973314][ T3004] 9fe0: 7e98ac70 7e98ac60 00010764 0002e8c0
[ 86.973550][ T3004] r10:00000036 r9:836e6c00 r8:8020029c r7:00000036 r6:0008e060 r5:00000000
[ 86.973802][ T3004] r4:00000000
[ 86.975662][ T3004] Rebooting in 86400 seconds..
[ 86.975662][ T3004] Rebooting in 86400 seconds..
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/715
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ TYPE: WARNING
[ 555.471176][T11919] R13: 00007f4b107b405c R14: 0000000000000032 R15: 00007f4b107b5980
[ 555.479151][T11919] </TASK>
[ 555.482636][T11919] Kernel Offset: disabled
[ 555.486958][T11919] Rebooting in 86400 seconds..
[ 555.486958][T11919] Rebooting in 86400 seconds..
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/725
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ TITLE: BUG: Bad page state in __get_metapage
[ 65.998722][ T5098] RBP: 00007f7b4ec00000 R08: 0000000000005dd3 R09: 0000000000005dcf
[ 66.006680][ T5098] R10: 0000000000000774 R11: 0000000000000202 R12: 00007fffc1930710
[ 66.014645][ T5098] R13: 00007fffc19305b0 R14: 0000000000000003 R15: 0000000001000000
[ 66.022611][ T5098] </TASK>
[ 66.022611][ T5098] </TASK>
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/726
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ fd=3 want=4 recv=0 n=0 (errno 9: Bad file descriptor)
[ 361.156015][ T8978] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 361.164079][ T8978] R13: 0000000000000000 R14: 00007f90d9536058 R15: 00007fff89b68ce8
[ 361.172081][ T8978] </TASK>
[ 361.175540][ T8978] Disabling lock debugging due to kernel taint
[ 361.175540][ T8978] Disabling lock debugging due to kernel taint
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/727
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ CORRUPTED: Y
[ 36.039718][ T6018] el0_svc+0x58/0x16c
[ 36.040787][ T6018] el0t_64_sync_handler+0x84/0xfc
[ 36.042086][ T6018] el0t_64_sync+0x190/0x194
[ 36.045588][ T6018] Disabling lock debugging due to kernel taint
[ 36.045588][ T6018] Disabling lock debugging due to kernel taint
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/728
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:


EXT4-fs: Warning: mounting with an experimental mount option 'dioread_nolock' for blocksize < PAGE_SIZE
Expand Down
2 changes: 1 addition & 1 deletion pkg/report/testdata/linux/report/730
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,4 @@ FRAME: udf_rmdir
[ 62.778850][ T5830] R13: 00007ffd4fd5f8b8 R14: 431bde82d7b634db R15: 00007fc98d13503b
[ 62.786841][ T5830] </TASK>
[ 62.790114][ T5830] Kernel Offset: disabled
[ 62.794489][ T5830] Rebooting in 86400 seconds..
[ 62.794489][ T5830] Rebooting in 86400 seconds..
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/731
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

DEC 4 15:56:11 SYZKALLER KERN.WARN KERNEL: [ 62.262385][ T6753] NETLINK: 'SYZ.2.235': ATTRIBUTE TYPE 2 HAS AN INVALID LENGTH.
[ 63.031771][ T62] usb 6-1: USB disconnect, device number 4
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/732
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

DEC 4 17:33:13 SYZKALLER DAEMON.ERR DHCPCD[5651]: LIBUDEV: RECEIVED NULL DEVICE
DEC 4 17:33:13 SYZKALLER DAEMON.ERR DHCPCD[5651]: LIBUDEV: RECEIVED NULL DEVICE
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/735
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:

executing program
syzkaller login: [ 460.963095][ T3167] [U]
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/739
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
TITLE:


[ 131.553111][ T62] team0 (unregistering): Port device team_slave_0 removed
Expand Down
1 change: 0 additions & 1 deletion pkg/report/testdata/linux/report/752
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
TITLE: memory leak in lookup_or_create_module_kobject
TYPE: LEAK
CORRUPTED: N

BUG: memory leak
unreferenced object 0xffff8882d78c9ea0 (size 96):
Expand Down
2 changes: 1 addition & 1 deletion pkg/report/testdata/openbsd/report/38
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ TITLE: panic: vop_generic_bclient_loop: send disconnect: Broken pipe
TYPE: DoS
SUPPRESSED: Y

panic: vop_generic_bclient_loop: send disconnect: Broken pipe
panic: vop_generic_bclient_loop: send disconnect: Broken pipe
Loading