Skip to content

Commit

Permalink
pkg/report: repair parsing of "stack guard page was hit" crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvyukov committed Dec 6, 2021
1 parent a617004 commit 7b14e14
Show file tree
Hide file tree
Showing 3 changed files with 433 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/report/linux.go
Expand Up @@ -1494,7 +1494,7 @@ var linuxOopses = append([]*oops{
},
},
{
title: compile("BUG: stack guard page was hit at"),
title: compile("BUG: .*stack guard page was hit at"),
fmt: "BUG: stack guard page was hit in %[1]v",
stack: &stackFmt{
parts: []*regexp.Regexp{
Expand Down
240 changes: 240 additions & 0 deletions pkg/report/testdata/linux/report/629
@@ -0,0 +1,240 @@
TITLE: BUG: stack guard page was hit in rtnl_newlink

[ 2374.042591][ C0] BUG: TASK stack guard page was hit at ffffc9000e4aff58 (stack is ffffc9000e4b0000..ffffc9000e4b8000)
[ 2374.042624][ C0] stack guard page: 0000 [#1] PREEMPT SMP KASAN
[ 2374.042648][ C0] CPU: 0 PID: 21674 Comm: syz-executor.5 Not tainted 5.16.0-rc3-syzkaller #0
[ 2374.042675][ C0] Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
[ 2374.042687][ C0] RIP: 0010:mark_lock+0x23/0x17b0
[ 2374.042719][ C0] Code: 84 00 00 00 00 00 90 41 57 41 56 41 55 41 54 41 89 d4 48 ba 00 00 00 00 00 fc ff df 55 53 48 81 ec 18 01 00 00 48 8d 5c 24 38 <48> 89 3c 24 48 c7 44 24 38 b3 8a b5 41 48 c1 eb 03 48 c7 44 24 40
[ 2374.042744][ C0] RSP: 0018:ffffc9000e4aff68 EFLAGS: 00010092
[ 2374.042763][ C0] RAX: 000000000000000c RBX: ffffc9000e4affa0 RCX: ffffffff815c625c
[ 2374.042778][ C0] RDX: dffffc0000000000 RSI: ffff88809e938ab0 RDI: ffff88809e938000
[ 2374.042792][ C0] RBP: ffff88809e938ad2 R08: 0000000000000000 R09: ffffffff8ff72a17
[ 2374.042808][ C0] R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000008
[ 2374.042822][ C0] R13: ffff88809e938000 R14: 0000000000040000 R15: 0000000000000000
[ 2374.042836][ C0] FS: 00007eff4e447700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
[ 2374.042858][ C0] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2374.042872][ C0] CR2: ffffc9000e4aff58 CR3: 0000000089f5e000 CR4: 00000000003506f0
[ 2374.042886][ C0] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 2374.042898][ C0] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 2374.042910][ C0] Call Trace:
[ 2374.042916][ C0] <TASK>
[ 2374.042957][ C0] __lock_acquire+0x8a7/0x54a0
[ 2374.043015][ C0] lock_acquire+0x1ab/0x510
[ 2374.043175][ C0] psi_group_change+0x135/0xc20
[ 2374.043272][ C0] psi_task_switch+0x35a/0x490
[ 2374.043372][ C0] __schedule+0x1b8d/0x4940
[ 2374.043544][ C0] preempt_schedule_irq+0x4e/0x90
[ 2374.043568][ C0] irqentry_exit+0x31/0x80
[ 2374.043591][ C0] asm_sysvec_apic_timer_interrupt+0x12/0x20
[ 2374.043619][ C0] RIP: 0010:preempt_count_sub+0x5f/0x150
[ 2374.043678][ C0] Code: fc 0e 85 c9 75 1b 65 8b 05 9e 72 b2 7e 89 c2 81 e2 ff ff ff 7f 39 da 7c 13 81 fb fe 00 00 00 76 63 f7 db 65 01 1d 81 72 b2 7e <5b> c3 e8 9a cf 87 02 85 c0 74 f5 48 c7 c0 48 62 91 8d 48 ba 00 00
[ 2374.043697][ C0] RSP: 0018:ffffc9000e4b0640 EFLAGS: 00000297
[ 2374.043714][ C0] RAX: 0000000080000001 RBX: 00000000ffffffff RCX: 0000000000000000
[ 2374.043727][ C0] RDX: 0000000000000001 RSI: ffffc9000e4b0800 RDI: 0000000000000001
[ 2374.043740][ C0] RBP: ffffc9000e4b0810 R08: ffffffff8e0b1b18 R09: 0000000000000001
[ 2374.043752][ C0] R10: fffff52001c960fa R11: 000000000008808a R12: ffffc9000e4b0000
[ 2374.043765][ C0] R13: ffffc9000e4b07ad R14: ffffc9000e4b0778 R15: ffffc9000e4b07ac
[ 2374.043787][ C0] unwind_next_frame+0xee1/0x1ce0
[ 2374.043882][ C0] __unwind_start+0x51b/0x800
[ 2374.043932][ C0] arch_stack_walk+0x5c/0xe0
[ 2374.043983][ C0] stack_trace_save+0x8c/0xc0
[ 2374.044026][ C0] kasan_save_stack+0x1e/0x50
[ 2374.044370][ C0] __kasan_kmalloc+0xa9/0xd0
[ 2374.044395][ C0] ethnl_default_notify+0x103/0x630
[ 2374.044432][ C0] ethtool_notify+0xbd/0x1f0
[ 2374.044450][ C0] ethnl_netdev_event+0x56/0x70
[ 2374.044467][ C0] notifier_call_chain+0xb5/0x200
[ 2374.044489][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.044513][ C0] __netdev_update_features+0x986/0x1840
[ 2374.044607][ C0] netdev_change_features+0x61/0xb0
[ 2374.044718][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.044748][ C0] bond_netdev_event+0x755/0xae0
[ 2374.044764][ C0] notifier_call_chain+0xb5/0x200
[ 2374.044777][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.044793][ C0] __netdev_update_features+0x986/0x1840
[ 2374.044853][ C0] netdev_change_features+0x61/0xb0
[ 2374.044944][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.044975][ C0] bond_netdev_event+0x755/0xae0
[ 2374.044990][ C0] notifier_call_chain+0xb5/0x200
[ 2374.045003][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.045019][ C0] __netdev_update_features+0x986/0x1840
[ 2374.045079][ C0] netdev_change_features+0x61/0xb0
[ 2374.045164][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.045194][ C0] bond_netdev_event+0x755/0xae0
[ 2374.045216][ C0] notifier_call_chain+0xb5/0x200
[ 2374.045229][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.045245][ C0] __netdev_update_features+0x986/0x1840
[ 2374.045305][ C0] netdev_change_features+0x61/0xb0
[ 2374.045391][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.045421][ C0] bond_netdev_event+0x755/0xae0
[ 2374.045436][ C0] notifier_call_chain+0xb5/0x200
[ 2374.045450][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.045466][ C0] __netdev_update_features+0x986/0x1840
[ 2374.045526][ C0] netdev_change_features+0x61/0xb0
[ 2374.045611][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.045642][ C0] bond_netdev_event+0x755/0xae0
[ 2374.045657][ C0] notifier_call_chain+0xb5/0x200
[ 2374.045671][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.045686][ C0] __netdev_update_features+0x986/0x1840
[ 2374.045746][ C0] netdev_change_features+0x61/0xb0
[ 2374.045832][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.045862][ C0] bond_netdev_event+0x755/0xae0
[ 2374.045877][ C0] notifier_call_chain+0xb5/0x200
[ 2374.045891][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.045907][ C0] __netdev_update_features+0x986/0x1840
[ 2374.045966][ C0] netdev_change_features+0x61/0xb0
[ 2374.046051][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.046082][ C0] bond_netdev_event+0x755/0xae0
[ 2374.046097][ C0] notifier_call_chain+0xb5/0x200
[ 2374.046110][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.046126][ C0] __netdev_update_features+0x986/0x1840
[ 2374.046186][ C0] netdev_change_features+0x61/0xb0
[ 2374.046274][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.046305][ C0] bond_netdev_event+0x755/0xae0
[ 2374.046320][ C0] notifier_call_chain+0xb5/0x200
[ 2374.046333][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.046349][ C0] __netdev_update_features+0x986/0x1840
[ 2374.046409][ C0] netdev_change_features+0x61/0xb0
[ 2374.046495][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.046525][ C0] bond_netdev_event+0x755/0xae0
[ 2374.046540][ C0] notifier_call_chain+0xb5/0x200
[ 2374.046554][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.046570][ C0] __netdev_update_features+0x986/0x1840
[ 2374.046630][ C0] netdev_change_features+0x61/0xb0
[ 2374.046715][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.046746][ C0] bond_netdev_event+0x755/0xae0
[ 2374.046761][ C0] notifier_call_chain+0xb5/0x200
[ 2374.046774][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.046790][ C0] __netdev_update_features+0x986/0x1840
[ 2374.046850][ C0] netdev_change_features+0x61/0xb0
[ 2374.046936][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.046966][ C0] bond_netdev_event+0x755/0xae0
[ 2374.046981][ C0] notifier_call_chain+0xb5/0x200
[ 2374.046995][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.047010][ C0] __netdev_update_features+0x986/0x1840
[ 2374.047070][ C0] netdev_change_features+0x61/0xb0
[ 2374.047155][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.047186][ C0] bond_netdev_event+0x755/0xae0
[ 2374.047204][ C0] notifier_call_chain+0xb5/0x200
[ 2374.047218][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.047233][ C0] __netdev_update_features+0x986/0x1840
[ 2374.047293][ C0] netdev_change_features+0x61/0xb0
[ 2374.047377][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.047407][ C0] bond_netdev_event+0x755/0xae0
[ 2374.047423][ C0] notifier_call_chain+0xb5/0x200
[ 2374.047436][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.047451][ C0] __netdev_update_features+0x986/0x1840
[ 2374.047511][ C0] netdev_change_features+0x61/0xb0
[ 2374.047595][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.047625][ C0] bond_netdev_event+0x755/0xae0
[ 2374.047641][ C0] notifier_call_chain+0xb5/0x200
[ 2374.047654][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.047670][ C0] __netdev_update_features+0x986/0x1840
[ 2374.047729][ C0] netdev_change_features+0x61/0xb0
[ 2374.047813][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.047843][ C0] bond_netdev_event+0x755/0xae0
[ 2374.047859][ C0] notifier_call_chain+0xb5/0x200
[ 2374.047872][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.047888][ C0] __netdev_update_features+0x986/0x1840
[ 2374.047947][ C0] netdev_change_features+0x61/0xb0
[ 2374.048032][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.048062][ C0] bond_netdev_event+0x755/0xae0
[ 2374.048078][ C0] notifier_call_chain+0xb5/0x200
[ 2374.048091][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.048107][ C0] __netdev_update_features+0x986/0x1840
[ 2374.048166][ C0] netdev_change_features+0x61/0xb0
[ 2374.048254][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.048285][ C0] bond_netdev_event+0x755/0xae0
[ 2374.048300][ C0] notifier_call_chain+0xb5/0x200
[ 2374.048313][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.048329][ C0] __netdev_update_features+0x986/0x1840
[ 2374.048388][ C0] netdev_change_features+0x61/0xb0
[ 2374.048473][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.048504][ C0] bond_netdev_event+0x755/0xae0
[ 2374.048519][ C0] notifier_call_chain+0xb5/0x200
[ 2374.048533][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.048549][ C0] __netdev_update_features+0x986/0x1840
[ 2374.048608][ C0] netdev_change_features+0x61/0xb0
[ 2374.048693][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.048723][ C0] bond_netdev_event+0x755/0xae0
[ 2374.048738][ C0] notifier_call_chain+0xb5/0x200
[ 2374.048751][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.048767][ C0] __netdev_update_features+0x986/0x1840
[ 2374.048826][ C0] netdev_change_features+0x61/0xb0
[ 2374.048911][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.048941][ C0] bond_netdev_event+0x755/0xae0
[ 2374.048956][ C0] notifier_call_chain+0xb5/0x200
[ 2374.048970][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.048985][ C0] __netdev_update_features+0x986/0x1840
[ 2374.049045][ C0] netdev_change_features+0x61/0xb0
[ 2374.049130][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.049161][ C0] bond_netdev_event+0x755/0xae0
[ 2374.049176][ C0] notifier_call_chain+0xb5/0x200
[ 2374.049189][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.049208][ C0] __netdev_update_features+0x986/0x1840
[ 2374.049268][ C0] netdev_change_features+0x61/0xb0
[ 2374.049353][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.049384][ C0] bond_netdev_event+0x755/0xae0
[ 2374.049399][ C0] notifier_call_chain+0xb5/0x200
[ 2374.049412][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.049428][ C0] __netdev_update_features+0x986/0x1840
[ 2374.049488][ C0] netdev_change_features+0x61/0xb0
[ 2374.049573][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.049603][ C0] bond_netdev_event+0x755/0xae0
[ 2374.049618][ C0] notifier_call_chain+0xb5/0x200
[ 2374.049632][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.049647][ C0] __netdev_update_features+0x986/0x1840
[ 2374.049707][ C0] netdev_change_features+0x61/0xb0
[ 2374.049792][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.049822][ C0] bond_netdev_event+0x755/0xae0
[ 2374.049837][ C0] notifier_call_chain+0xb5/0x200
[ 2374.049850][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.049866][ C0] __netdev_update_features+0x986/0x1840
[ 2374.049926][ C0] netdev_change_features+0x61/0xb0
[ 2374.050011][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.050041][ C0] bond_netdev_event+0x755/0xae0
[ 2374.050056][ C0] notifier_call_chain+0xb5/0x200
[ 2374.050069][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.050085][ C0] __netdev_update_features+0x986/0x1840
[ 2374.050145][ C0] netdev_change_features+0x61/0xb0
[ 2374.050237][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.050267][ C0] bond_netdev_event+0x755/0xae0
[ 2374.050282][ C0] notifier_call_chain+0xb5/0x200
[ 2374.050295][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.050311][ C0] __netdev_update_features+0x986/0x1840
[ 2374.050370][ C0] netdev_change_features+0x61/0xb0
[ 2374.050456][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.050486][ C0] bond_netdev_event+0x755/0xae0
[ 2374.050501][ C0] notifier_call_chain+0xb5/0x200
[ 2374.050515][ C0] call_netdevice_notifiers_info+0xb5/0x130
[ 2374.050531][ C0] __netdev_update_features+0x986/0x1840
[ 2374.050614][ C0] netdev_change_features+0x61/0xb0
[ 2374.050687][ C0] bond_compute_features+0x56c/0xaa0
[ 2374.050732][ C0] bond_enslave+0x31f3/0x53e0
[ 2374.050796][ C0] do_set_master+0x1c8/0x220
[ 2374.050829][ C0] do_setlink+0x9f3/0x3970
[ 2374.051018][ C0] __rtnl_newlink+0xde6/0x1750
[ 2374.051285][ C0] rtnl_newlink+0x64/0xa0
[ 2374.051311][ C0] rtnetlink_rcv_msg+0x413/0xb80
[ 2374.051355][ C0] netlink_rcv_skb+0x153/0x420
[ 2374.051421][ C0] netlink_unicast+0x533/0x7d0
[ 2374.051520][ C0] netlink_sendmsg+0x904/0xdf0
[ 2374.051575][ C0] sock_sendmsg+0xcf/0x120
[ 2374.051591][ C0] ____sys_sendmsg+0x6e8/0x810
[ 2374.051684][ C0] ___sys_sendmsg+0xf3/0x170
[ 2374.051783][ C0] __sys_sendmsg+0xe5/0x1b0
[ 2374.051823][ C0] do_syscall_64+0x35/0xb0
[ 2374.051838][ C0] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 2374.051852][ C0] RIP: 0033:0x7eff4f4f2ae9
[ 2374.051864][ C0] Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
[ 2374.051876][ C0] RSP: 002b:00007eff4e447188 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
[ 2374.051889][ C0] RAX: ffffffffffffffda RBX: 00007eff4f606028 RCX: 00007eff4f4f2ae9
[ 2374.051898][ C0] RDX: 0000000000000000 RSI: 0000000020000080 RDI: 0000000000000012
[ 2374.051906][ C0] RBP: 00007eff4f54cff7 R08: 0000000000000000 R09: 0000000000000000
[ 2374.051914][ C0] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
[ 2374.051921][ C0] R13: 00007ffee429228f R14: 00007eff4e447300 R15: 0000000000022000
[ 2374.051933][ C0] </TASK>
[ 2374.051937][ C0] Modules linked in:
[ 2377.224496][ C0] ---[ end trace 1403f3a72cf0d7da ]---

0 comments on commit 7b14e14

Please sign in to comment.