BUG: soft lockup in sys_bind

7 views
Skip to first unread message

syzbot

unread,
Jan 12, 2022, 10:23:30 AM1/12/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14f0af27b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=f07991461ef65abf9c9b
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f07991...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.4:15852]
Modules linked in:
irq event stamp: 3116456
hardirqs last enabled at (3116455): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (3116456): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (99344): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (98511): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (98511): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 15852 Comm: syz-executor.4 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x3a6/0xae0 kernel/locking/qspinlock.c:474
Code: eb c6 45 01 01 41 bc 00 80 00 00 48 c1 e9 03 83 e3 07 41 be 01 00 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8d 2c 01 eb 0c f3 90 <41> 83 ec 01 0f 84 38 04 00 00 41 0f b6 45 00 38 d8 7f 08 84 c0 0f
RSP: 0018:ffff8880187afbc0 EFLAGS: 00000206 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000003 RBX: 0000000000000000 RCX: 1ffffffff15e0ef0
RDX: 0000000000000001 RSI: ffffffff8167a995 RDI: 0000000000000286
RBP: ffffffff8af07780 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000003ae4
R13: fffffbfff15e0ef0 R14: 0000000000000001 R15: ffff8880ba02be00
FS: 00007f0117ae1700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020003000 CR3: 000000001ca68000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:679 [inline]
queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:53 [inline]
queued_spin_lock include/asm-generic/qspinlock.h:88 [inline]
do_raw_spin_lock+0x189/0x220 kernel/locking/spinlock_debug.c:113
spin_lock include/linux/spinlock.h:329 [inline]
unix_bind+0x802/0xa40 net/unix/af_unix.c:1093
__sys_bind+0x1e9/0x250 net/socket.c:1594
__do_sys_bind net/socket.c:1605 [inline]
__se_sys_bind net/socket.c:1603 [inline]
__x64_sys_bind+0x6f/0xb0 net/socket.c:1603
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f011916beb9
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
RSP: 002b:00007f0117ae1168 EFLAGS: 00000246 ORIG_RAX: 0000000000000031
RAX: ffffffffffffffda RBX: 00007f011927ef60 RCX: 00007f011916beb9
RDX: 0000000000000008 RSI: 0000000020003000 RDI: 0000000000000005
RBP: 00007f01191c608d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffc406bee4f R14: 00007f0117ae1300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 15850 Comm: syz-executor.0 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__sanitizer_cov_trace_const_cmp8+0x4/0x20 kernel/kcov.c:194
Code: 00 00 00 00 00 90 48 8b 0c 24 89 f2 89 fe bf 05 00 00 00 e9 ce fe ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 48 8b 0c 24 <48> 89 f2 48 89 fe bf 07 00 00 00 e9 ac fe ff ff 66 66 2e 0f 1f 84
RSP: 0018:ffff8880ba107458 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffff8880a2179a40 RCX: ffffffff87eff89c
RDX: 1ffff110174249b0 RSI: ffff8880a2179a40 RDI: 0000000000000000
RBP: ffff8880ba124d80 R08: 0000000000000000 R09: ffff8880ba1255e0
R10: 0000000000000006 R11: ffffffff8c66505b R12: ffff8880ba1255e0
R13: ffff888094cb0718 R14: ffff8880ba124d40 R15: dffffc0000000000
FS: 00007f7852bfa700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000008d1a1000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
timerqueue_del+0x8c/0xd0 lib/timerqueue.c:83
__remove_hrtimer kernel/time/hrtimer.c:1004 [inline]
__run_hrtimer kernel/time/hrtimer.c:1447 [inline]
__hrtimer_run_queues+0x2ea/0xe60 kernel/time/hrtimer.c:1527
hrtimer_interrupt+0x326/0x9e0 kernel/time/hrtimer.c:1585
local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1071 [inline]
smp_apic_timer_interrupt+0x10c/0x550 arch/x86/kernel/apic/apic.c:1096
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
RIP: 0010:unwind_next_frame+0xaf4/0x1400 arch/x86/kernel/unwind_orc.c:548
Code: 16 4c 89 c6 83 e6 07 40 38 f0 40 0f 9e c6 84 c0 0f 95 c0 40 84 c6 0f 85 13 07 00 00 48 89 c8 83 e0 07 38 c2 40 0f 9e c6 84 d2 <0f> 95 c0 40 84 c6 0f 85 f9 06 00 00 41 0f b6 47 04 c0 e8 04 3c 01
RSP: 0018:ffff8880ba107730 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000005 RBX: 1ffff11017420eef RCX: ffffffff8bd26435
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880ba1078b8
RBP: 0000000000000002 R08: ffffffff8bd26434 R09: ffffffff8bd26430
R10: ffff8880ba1078bf R11: 0000000000074071 R12: ffff8880ba107e18
R13: ffff8880ba107895 R14: ffff8880ba107860 R15: ffffffff8bd26430
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
save_stack mm/kasan/kasan.c:448 [inline]
set_track mm/kasan/kasan.c:460 [inline]
kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:553
slab_post_alloc_hook mm/slab.h:445 [inline]
slab_alloc_node mm/slab.c:3340 [inline]
kmem_cache_alloc_node_trace+0x13c/0x3b0 mm/slab.c:3666
__do_kmalloc_node mm/slab.c:3688 [inline]
__kmalloc_node_track_caller+0x38/0x70 mm/slab.c:3703
__kmalloc_reserve net/core/skbuff.c:137 [inline]
__alloc_skb+0xae/0x560 net/core/skbuff.c:205
skb_copy+0x139/0x2f0 net/core/skbuff.c:1358
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
mac80211_hwsim_tx_frame+0x12b/0x210 drivers/net/wireless/mac80211_hwsim.c:1556
mac80211_hwsim_beacon_tx+0x3f8/0x680 drivers/net/wireless/mac80211_hwsim.c:1595
__iterate_interfaces+0x2e1/0x4a0 net/mac80211/util.c:614
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
__do_softirq+0x265/0x980 kernel/softirq.c:292
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:__read_once_size include/linux/compiler.h:263 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:69 [inline]
RIP: 0010:write_comp_data+0x1d/0x70 kernel/kcov.c:122
Code: d1 48 89 11 c3 0f 1f 84 00 00 00 00 00 49 89 f1 49 89 fa 65 48 8b 34 25 c0 df 01 00 65 8b 05 7a 59 9f 7e a9 00 01 1f 00 75 4f <8b> 86 60 13 00 00 83 f8 03 75 44 48 8b 86 68 13 00 00 8b b6 64 13
RSP: 0018:ffff888043f4f260 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000002 RBX: 0000000000000007 RCX: ffffffff87f0addd
RDX: 0000000000000000 RSI: ffff8880a1262480 RDI: 0000000000000001
RBP: ffffffff89716040 R08: 0000000000000000 R09: 0000000000000006
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000008 R14: 0000000000000000 R15: ffff888043f4f3a8
__sanitizer_cov_trace_switch+0x4b/0x80 kernel/kcov.c:224
vsnprintf+0x17d/0x14f0 lib/vsprintf.c:2275
seq_vprintf fs/seq_file.c:394 [inline]
seq_printf+0x195/0x240 fs/seq_file.c:409
unix_seq_show+0x1b1/0x4d0 net/unix/af_unix.c:2868
seq_read+0xc22/0x11c0 fs/seq_file.c:271
proc_reg_read+0x1bd/0x2d0 fs/proc/inode.c:231
do_loop_readv_writev fs/read_write.c:701 [inline]
do_loop_readv_writev fs/read_write.c:688 [inline]
do_iter_read+0x471/0x630 fs/read_write.c:925
vfs_readv+0xe5/0x150 fs/read_write.c:987
kernel_readv fs/splice.c:362 [inline]
default_file_splice_read+0x457/0xa00 fs/splice.c:417
do_splice_to+0x10e/0x160 fs/splice.c:881
splice_direct_to_actor+0x2b9/0x8d0 fs/splice.c:959
do_splice_direct+0x1a7/0x270 fs/splice.c:1068
do_sendfile+0x550/0xc30 fs/read_write.c:1447
__do_sys_sendfile64 fs/read_write.c:1508 [inline]
__se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f7854284eb9
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
RSP: 002b:00007f7852bfa168 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f7854397f60 RCX: 00007f7854284eb9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000003
RBP: 00007f78542df08d R08: 0000000000000000 R09: 0000000000000000
R10: 00000000800000bf R11: 0000000000000246 R12: 0000000000000000
R13: 00007fffa410007f R14: 00007f7852bfa300 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: eb c6 jmp 0xffffffc8
2: 45 01 01 add %r8d,(%r9)
5: 41 bc 00 80 00 00 mov $0x8000,%r12d
b: 48 c1 e9 03 shr $0x3,%rcx
f: 83 e3 07 and $0x7,%ebx
12: 41 be 01 00 00 00 mov $0x1,%r14d
18: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
1f: fc ff df
22: 4c 8d 2c 01 lea (%rcx,%rax,1),%r13
26: eb 0c jmp 0x34
28: f3 90 pause
* 2a: 41 83 ec 01 sub $0x1,%r12d <-- trapping instruction
2e: 0f 84 38 04 00 00 je 0x46c
34: 41 0f b6 45 00 movzbl 0x0(%r13),%eax
39: 38 d8 cmp %bl,%al
3b: 7f 08 jg 0x45
3d: 84 c0 test %al,%al
3f: 0f .byte 0xf


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
May 12, 2022, 11:23:17 AM5/12/22
to syzkaller...@googlegroups.com
Auto-closing this bug as obsolete.
Crashes did not happen for a while, no reproducer and no activity.
Reply all
Reply to author
Forward
0 new messages