mirror of
https://github.com/reactos/syzkaller.git
synced 2025-02-17 10:10:08 +00:00
pkg/report: generalize general protection fault pattern
An upcoming patch for Linux will change the error reporting pattern for general protection faults such that the colon doesn't necessarily come immediately after the string "general protection fault" (see https://lore.kernel.org/lkml/20191118142144.GC6363@zn.tnic/). Change the pattern in syzkaller before that happens. Note that this is not necessarily the final format; in particular, the ordering of the KASAN note and the "general protection fault" line might swap.
This commit is contained in:
parent
5bc702124e
commit
432c7650d5
@ -19,6 +19,7 @@ Google Inc.
|
||||
Dan Austin
|
||||
Victor Hsieh
|
||||
Michael A. Specter
|
||||
Jann Horn
|
||||
Baozeng Ding
|
||||
Lorenzo Stoakes
|
||||
Jeremy Huang
|
||||
|
@ -1341,10 +1341,10 @@ var linuxOopses = append([]*oops{
|
||||
[]*regexp.Regexp{},
|
||||
},
|
||||
{
|
||||
[]byte("general protection fault:"),
|
||||
[]byte("general protection fault"),
|
||||
[]oopsFormat{
|
||||
{
|
||||
title: compile("general protection fault:"),
|
||||
title: compile("general protection fault.*:"),
|
||||
fmt: "general protection fault in %[1]v",
|
||||
stack: &stackFmt{
|
||||
parts: []*regexp.Regexp{
|
||||
|
54
pkg/report/testdata/linux/report/451
vendored
Normal file
54
pkg/report/testdata/linux/report/451
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
TITLE: general protection fault in deliberately_dereference_bad_address
|
||||
|
||||
[ 32.082291] general protection fault for non-canonical address 0xe017577ddf75b7dd: 0000 [#1] PREEMPT SMP KASAN PTI
|
||||
[ 32.084238] KASAN: maybe wild-memory-access in range [0x00badbeefbadbee8-0x00badbeefbadbeef]
|
||||
[ 32.085589] CPU: 0 PID: 1857 Comm: ioctl Not tainted 5.4.0-rc7+ #567
|
||||
[ 32.086640] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
|
||||
[ 32.088213] RIP: 0010:deliberately_dereference_bad_address+0x33/0x60
|
||||
[ 32.089260] Code: 00 00 68 37 13 37 13 9c 68 ef be 00 00 68 37 13 37 13 48 cf 5b c3 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 89 fb 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 04 8b
|
||||
[ 32.094929] RSP: 0018:ffff8880a689fd20 EFLAGS: 00010207
|
||||
[ 32.097796] RAX: dffffc0000000000 RBX: 00badbeefbadbeef RCX: dffffc0000000000
|
||||
[ 32.100195] RDX: 00175b7ddf75b7dd RSI: 0000000013371337 RDI: 00badbeefbadbeef
|
||||
[ 32.101784] RBP: 1ffff11014d13fab R08: fffffbfff082dbf9 R09: 0000000000000000
|
||||
[ 32.103039] R10: ffff8880a689fea0 R11: ffffffff8416dfc7 R12: 0000000000000000
|
||||
[ 32.104277] R13: ffff8880b4e2dfc8 R14: 00badbeefbadbeef R15: 0000000000000000
|
||||
[ 32.105426] FS: 00007fed2c0a6500(0000) GS:ffff8880bb200000(0000) knlGS:0000000000000000
|
||||
[ 32.106712] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
|
||||
[ 32.107771] CR2: 00007fed2c04fc68 CR3: 00000000b5c60000 CR4: 00000000000006b0
|
||||
[ 32.109010] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
|
||||
[ 32.110155] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
|
||||
[ 32.111295] Call Trace:
|
||||
[ 32.111720] do_vfs_ioctl+0x48e/0x1040
|
||||
[ 32.112361] ? deliberately_dereference_bad_address+0x60/0x60
|
||||
[ 32.113322] ? selinux_capable+0x20/0x20
|
||||
[ 32.114015] ? up_read+0x1a3/0x730
|
||||
[ 32.114549] ? down_write_trylock+0x2e0/0x2e0
|
||||
[ 32.115288] ? __rwlock_init+0x140/0x140
|
||||
[ 32.115920] ? security_file_ioctl+0x44/0x80
|
||||
[ 32.116646] ksys_ioctl+0x5b/0x90
|
||||
[ 32.117238] __x64_sys_ioctl+0x6a/0xb0
|
||||
[ 32.117824] ? lockdep_hardirqs_on+0x388/0x570
|
||||
[ 32.118572] do_syscall_64+0x12b/0x700
|
||||
[ 32.119160] entry_SYSCALL_64_after_hwframe+0x49/0xbe
|
||||
[ 32.120016] RIP: 0033:0x7fed2bfd4427
|
||||
[ 32.120640] Code: 00 00 90 48 8b 05 69 aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 39 aa 0c 00 f7 d8 64 89 01 48
|
||||
[ 32.127603] RSP: 002b:00007ffe6fe28858 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
|
||||
[ 32.129225] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fed2bfd4427
|
||||
[ 32.130851] RDX: 00badbeefbadbeef RSI: 0000000013371337 RDI: 0000000000000000
|
||||
[ 32.132422] RBP: 00007ffe6fe28880 R08: 00007ffe6fe28e1c R09: 0000000000000000
|
||||
[ 32.133988] R10: fffffffffffff45a R11: 0000000000000202 R12: 0000562a50a71070
|
||||
[ 32.135128] R13: 00007ffe6fe28960 R14: 0000000000000000 R15: 0000000000000000
|
||||
[ 32.138289] ---[ end trace aa3be20c0f335b32 ]---
|
||||
[ 32.143398] RIP: 0010:deliberately_dereference_bad_address+0x33/0x60
|
||||
[ 32.145150] Code: 00 00 68 37 13 37 13 9c 68 ef be 00 00 68 37 13 37 13 48 cf 5b c3 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 89 fb 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 04 8b
|
||||
[ 32.149959] RSP: 0018:ffff8880a689fd20 EFLAGS: 00010207
|
||||
[ 32.152272] RAX: dffffc0000000000 RBX: 00badbeefbadbeef RCX: dffffc0000000000
|
||||
[ 32.154700] RDX: 00175b7ddf75b7dd RSI: 0000000013371337 RDI: 00badbeefbadbeef
|
||||
[ 32.160923] RBP: 1ffff11014d13fab R08: fffffbfff082dbf9 R09: 0000000000000000
|
||||
[ 32.163460] R10: ffff8880a689fea0 R11: ffffffff8416dfc7 R12: 0000000000000000
|
||||
[ 32.165952] R13: ffff8880b4e2dfc8 R14: 00badbeefbadbeef R15: 0000000000000000
|
||||
[ 32.168382] FS: 00007fed2c0a6500(0000) GS:ffff8880bb200000(0000) knlGS:0000000000000000
|
||||
[ 32.170847] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
|
||||
[ 32.173270] CR2: 00007fe9d6b9e010 CR3: 00000000b5c60000 CR4: 00000000000006b0
|
||||
[ 32.175942] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
|
||||
[ 32.179005] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
|
53
pkg/report/testdata/linux/report/452
vendored
Normal file
53
pkg/report/testdata/linux/report/452
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
TITLE: general protection fault in deliberately_dereference_bad_address
|
||||
|
||||
[ 37.352047] segment-related general protection fault: beec [#2] PREEMPT SMP KASAN PTI
|
||||
[ 37.354009] CPU: 0 PID: 1858 Comm: ioctl Tainted: G D 5.4.0-rc7+ #567
|
||||
[ 37.355967] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
|
||||
[ 37.358038] RIP: 0010:deliberately_dereference_bad_address+0x1b/0x60
|
||||
[ 37.359634] Code: b5 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 53 48 85 ff 75 19 68 ef be 00 00 68 37 13 37 13 9c 68 ef be 00 00 68 37 13 37 13 <48> cf 5b c3 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 89 fb 48 c1
|
||||
[ 37.364658] RSP: 0018:ffff8880af777cf8 EFLAGS: 00010246
|
||||
[ 37.365527] RAX: 1ffff110166d5004 RBX: ffff8880b36a8000 RCX: dffffc0000000000
|
||||
[ 37.368085] RDX: ffffed1015eeefab RSI: 0000000013371337 RDI: 0000000000000000
|
||||
[ 37.369214] RBP: 1ffff11015eeefab R08: fffffbfff082dbf9 R09: 0000000000000000
|
||||
[ 37.370403] R10: ffff8880af777ea0 R11: ffffffff8416dfc7 R12: 0000000000000000
|
||||
[ 37.371570] R13: ffff8880b4e2dfc8 R14: 0000000000000000 R15: 0000000000000000
|
||||
[ 37.372726] FS: 00007f350da04500(0000) GS:ffff8880bb200000(0000) knlGS:0000000000000000
|
||||
[ 37.376759] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
|
||||
[ 37.380320] CR2: 00007f350d9ae441 CR3: 00000000ac758000 CR4: 00000000000006b0
|
||||
[ 37.384124] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
|
||||
[ 37.388181] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
|
||||
[ 37.393983] Call Trace:
|
||||
[ 37.399724] do_vfs_ioctl+0x48e/0x1040
|
||||
[ 37.402961] ? deliberately_dereference_bad_address+0x60/0x60
|
||||
[ 37.406493] ? selinux_capable+0x20/0x20
|
||||
[ 37.409675] ? up_read+0x1a3/0x730
|
||||
[ 37.412733] ? down_write_trylock+0x2e0/0x2e0
|
||||
[ 37.415895] ? vmacache_find+0x1c9/0x2b0
|
||||
[ 37.418959] ? __rwlock_init+0x140/0x140
|
||||
[ 37.422009] ? security_file_ioctl+0x44/0x80
|
||||
[ 37.425056] ksys_ioctl+0x5b/0x90
|
||||
[ 37.427950] __x64_sys_ioctl+0x6a/0xb0
|
||||
[ 37.432320] do_syscall_64+0x12b/0x700
|
||||
[ 37.435228] entry_SYSCALL_64_after_hwframe+0x49/0xbe
|
||||
[ 37.438328] RIP: 0033:0x7f350d932427
|
||||
[ 37.441197] Code: 00 00 90 48 8b 05 69 aa 0c 00 64 c7 00 26 00 00 00 48 c7 c0 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 39 aa 0c 00 f7 d8 64 89 01 48
|
||||
[ 37.446801] RSP: 002b:00007ffea0d2a198 EFLAGS: 00000202 ORIG_RAX: 0000000000000010
|
||||
[ 37.450387] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f350d932427
|
||||
[ 37.453927] RDX: 0000000000000000 RSI: 0000000013371337 RDI: 0000000000000000
|
||||
[ 37.457476] RBP: 00007ffea0d2a1c0 R08: 00007ffea0d2be1c R09: 0000000000000000
|
||||
[ 37.464500] R10: fffffffffffff45a R11: 0000000000000202 R12: 0000556c1cda8070
|
||||
[ 37.468024] R13: 00007ffea0d2a2a0 R14: 0000000000000000 R15: 0000000000000000
|
||||
[ 37.477032] ---[ end trace aa3be20c0f335b33 ]---
|
||||
[ 37.483633] RIP: 0010:deliberately_dereference_bad_address+0x33/0x60
|
||||
[ 37.488626] Code: 00 00 68 37 13 37 13 9c 68 ef be 00 00 68 37 13 37 13 48 cf 5b c3 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 89 fb 48 c1 ea 03 <0f> b6 14 02 48 89 f8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 04 8b
|
||||
[ 37.500426] RSP: 0018:ffff8880a689fd20 EFLAGS: 00010207
|
||||
[ 37.507016] RAX: dffffc0000000000 RBX: 00badbeefbadbeef RCX: dffffc0000000000
|
||||
[ 37.516013] RDX: 00175b7ddf75b7dd RSI: 0000000013371337 RDI: 00badbeefbadbeef
|
||||
[ 37.521160] RBP: 1ffff11014d13fab R08: fffffbfff082dbf9 R09: 0000000000000000
|
||||
[ 37.530405] R10: ffff8880a689fea0 R11: ffffffff8416dfc7 R12: 0000000000000000
|
||||
[ 37.538457] R13: ffff8880b4e2dfc8 R14: 00badbeefbadbeef R15: 0000000000000000
|
||||
[ 37.545145] FS: 00007f350da04500(0000) GS:ffff8880bb200000(0000) knlGS:0000000000000000
|
||||
[ 37.551852] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
|
||||
[ 37.560327] CR2: 00007f350d9ae441 CR3: 00000000ac758000 CR4: 00000000000006b0
|
||||
[ 37.566068] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
|
||||
[ 37.573967] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
|
Loading…
x
Reference in New Issue
Block a user