BUG: soft lockup in corrupted

19 views
Skip to first unread message

syzbot

unread,
Dec 26, 2021, 3:46:20 PM12/26/21
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=11e5790db00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=f5eb7dfea68ab16bc032
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10bd94edb00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12e9cc95b00000

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

Code: 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 74 48 83 e0 f0 <66> 0f 74 00 66 0f 74 48 10 66 0f 74 50 20 66 0f 74 58 30 66 0f d7
Code: 66 0f ef c0 66 0f ef c9 66 0f ef d2 66 0f ef db 48 89 f8 48 89 f9 48 81 e1 ff 0f 00 00 48 81 f9 cf 0f 00 00 77 74 48 83 e0 f0 <66> 0f 74 00 66 0f 74 48 10 66 0f 74 50 20 66 0f 74 58 30 66 0f d7
watchdog: BUG: soft lockup - CPU#0 stuck for 23s! [syz-executor030:9136]
watchdog: BUG: soft lockup - CPU#1 stuck for 23s! [syz-executor030:9132]
Modules linked in:
irq event stamp: 3171331
Modules linked in:
hardirqs last enabled at (3171330): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
irq event stamp: 3128033
hardirqs last disabled at (3171331): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
hardirqs last enabled at (3128032): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
softirqs last enabled at (3162846): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
hardirqs last disabled at (3128033): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last disabled at (3162849): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (3162849): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
softirqs last enabled at (3116612): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
CPU: 0 PID: 9136 Comm: syz-executor030 Not tainted 4.19.211-syzkaller #0
softirqs last disabled at (3127551): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (3127551): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
CPU: 1 PID: 9132 Comm: syz-executor030 Not tainted 4.19.211-syzkaller #0
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
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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
RIP: 0010:on_stack arch/x86/include/asm/stacktrace.h:45 [inline]
RIP: 0010:stack_access_ok arch/x86/kernel/unwind_orc.c:321 [inline]
RIP: 0010:deref_stack_reg+0xc8/0x1d0 arch/x86/kernel/unwind_orc.c:331
RSP: 0018:ffff8880ba007b30 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
Code: 85 00 01 00 00 49 8d 7c 24 10 4d 8b 74 24 08 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 c7 00 00 00 <49> 39 ee 49 8b 44 24 10 77 13 48 39 e8 76 0e 48 8d 55 08 48 39 d0
RAX: 0000000000000001 RBX: 0000000000000000 RCX: 1ffffffff1b9c080
RDX: 0000000000000001 RSI: ffffffff8dce0401 RDI: ffffffff8dce0402
RSP: 0018:ffff8880ba1076c0 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RBP: ffffffff8dce0400 R08: 0000000000000001 R09: fffffbfff1b9c080
RAX: dffffc0000000000 RBX: 1ffff11017420ed9 RCX: 0000000000000000
R10: ffffffff8dce0403 R11: ffffffff8c66501b R12: 0000000000007f74
RDX: 1ffff11017420f13 RSI: ffff8880ba107e68 RDI: ffff8880ba107898
R13: fffffbfff1b9c080 R14: 0000000000000001 R15: ffff8880ba02be00
FS: 00007fb6b8b54700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
RBP: ffff8880ba107e68 R08: ffffffff8c0925a8 R09: ffffffff8c092574
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
R10: ffff8880ba1078e7 R11: 0000000000074071 R12: ffff8880ba107888
CR2: 0000000020000108 CR3: 000000009a3b9000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
R13: ffff8880ba1078d0 R14: ffff8880ba100000 R15: ffffffff8c0925a4
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
FS: 00007fb6b8b54700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
Call Trace:
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
<IRQ>
CR2: 00007fb6b8c11e63 CR3: 000000009b1b3000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
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
Call Trace:
spin_lock include/linux/spinlock.h:329 [inline]
mac80211_hwsim_tx_frame_no_nl.isra.0+0x6f6/0x1330 drivers/net/wireless/mac80211_hwsim.c:1304
<IRQ>
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
unwind_next_frame+0x9fc/0x1400 arch/x86/kernel/unwind_orc.c:502
__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
__save_stack_trace+0x9f/0x190 arch/x86/kernel/stacktrace.c:44
__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
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
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
</IRQ>
RIP: 0010:s_show mm/vmalloc.c:2742 [inline]
RIP: 0010:s_show+0x585/0x840 mm/vmalloc.c:2704
Code: ef e8 0f f4 1a 00 48 89 ea 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 80 3c 02 00 0f 85 ac 02 00 00 4c 8b 73 18 e9 2d fd ff ff <e8> b6 dd d1 ff 48 c7 c6 c0 df 72 88 4c 89 ef e8 d7 f3 1a 00 48 89
RSP: 0018:ffff88808b9cf488 EFLAGS: 00000202 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: ffff8880b0723e80 RCX: ffffffff8190a4ba
RDX: 0000000000000002 RSI: ffff8880979703c0 RDI: 0000000000000007
RBP: ffff8880b0723e98 R08: 0000000000000010 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000000 R12: ffff8880b0723ea8
R13: ffff8880b29c8900 R14: 0000000000000002 R15: 0000000000000002
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
kmem_cache_alloc_node+0x146/0x3b0 mm/slab.c:3649
do_splice_direct+0x1a7/0x270 fs/splice.c:1068
__alloc_skb+0x71/0x560 net/core/skbuff.c:193
skb_copy+0x139/0x2f0 net/core/skbuff.c:1358
do_sendfile+0x550/0xc30 fs/read_write.c:1447
mac80211_hwsim_tx_frame_no_nl.isra.0+0xb8a/0x1330 drivers/net/wireless/mac80211_hwsim.c:1353
__do_sys_sendfile64 fs/read_write.c:1508 [inline]
__se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
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
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
ieee80211_iterate_active_interfaces_atomic+0x8d/0x170 net/mac80211/util.c:650
RIP: 0033:0x7fb6b8ba8f09
mac80211_hwsim_beacon+0xc9/0x190 drivers/net/wireless/mac80211_hwsim.c:1615
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 b8 ff ff ff f7 d8 64 89 01 48
__tasklet_hrtimer_trampoline+0x29/0xa0 kernel/softirq.c:601
RSP: 002b:00007fb6b8b54318 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
tasklet_action_common.constprop.0+0x265/0x360 kernel/softirq.c:522
RAX: ffffffffffffffda RBX: 00007fb6b8c2d4c8 RCX: 00007fb6b8ba8f09
__do_softirq+0x265/0x980 kernel/softirq.c:292
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
invoke_softirq kernel/softirq.c:372 [inline]
irq_exit+0x215/0x260 kernel/softirq.c:412
RBP: 00007fb6b8c2d4c0 R08: 0000000000000000 R09: 0000000000000000
exiting_irq arch/x86/include/asm/apic.h:536 [inline]
smp_apic_timer_interrupt+0x136/0x550 arch/x86/kernel/apic/apic.c:1098
R10: 4000000000010046 R11: 0000000000000246 R12: 00007fb6b8bfa1a8
apic_timer_interrupt+0xf/0x20 arch/x86/entry/entry_64.S:894
R13: 00007ffd62d9a18f R14: 00007fb6b8b54400 R15: 0000000000022000
----------------
Code disassembly (best guess):
0: 66 0f ef c0 pxor %xmm0,%xmm0
4: 66 0f ef c9 pxor %xmm1,%xmm1
8: 66 0f ef d2 pxor %xmm2,%xmm2
c: 66 0f ef db pxor %xmm3,%xmm3
10: 48 89 f8 mov %rdi,%rax
13: 48 89 f9 mov %rdi,%rcx
16: 48 81 e1 ff 0f 00 00 and $0xfff,%rcx
1d: 48 81 f9 cf 0f 00 00 cmp $0xfcf,%rcx
24: 77 74 ja 0x9a
26: 48 83 e0 f0 and $0xfffffffffffffff0,%rax
* 2a: 66 0f 74 00 pcmpeqb (%rax),%xmm0 <-- trapping instruction
2e: 66 0f 74 48 10 pcmpeqb 0x10(%rax),%xmm1
33: 66 0f 74 50 20 pcmpeqb 0x20(%rax),%xmm2
38: 66 0f 74 58 30 pcmpeqb 0x30(%rax),%xmm3
3d: 66 data16
3e: 0f .byte 0xf
3f: d7 xlat %ds:(%rbx)


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages