BUG: soft lockup in preempt_count_sub

7 views
Skip to first unread message

syzbot

unread,
Oct 5, 2021, 6:34:20 PM10/5/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c2276d585654 Linux 4.19.208
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1054b8e0b00000
kernel config: https://syzkaller.appspot.com/x/.config?x=9080caca9deef589
dashboard link: https://syzkaller.appspot.com/bug?extid=8205ff6f83a86677e671
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+8205ff...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#0 stuck for 22s! [syz-executor.2:4348]
Modules linked in:
irq event stamp: 3288165
hardirqs last enabled at (3288164): [<ffffffff81003ce4>] trace_hardirqs_on_thunk+0x1a/0x1c
hardirqs last disabled at (3288165): [<ffffffff81003d00>] trace_hardirqs_off_thunk+0x1a/0x1c
softirqs last enabled at (3258756): [<ffffffff88400678>] __do_softirq+0x678/0x980 kernel/softirq.c:318
softirqs last disabled at (3258759): [<ffffffff813927d5>] invoke_softirq kernel/softirq.c:372 [inline]
softirqs last disabled at (3258759): [<ffffffff813927d5>] irq_exit+0x215/0x260 kernel/softirq.c:412
CPU: 0 PID: 4348 Comm: syz-executor.2 Not tainted 4.19.208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:preempt_count_sub+0x1e/0x150 kernel/sched/core.c:3262
Code: 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 c7 c0 60 37 24 8d 53 89 fb 48 ba 00 00 00 00 00 fc ff df 48 89 c1 83 e0 07 48 c1 e9 03 <83> c0 03 0f b6 14 11 38 d0 7c 08 84 d2 0f 85 ef 00 00 00 8b 0d 59
RSP: 0018:ffff8880ba007cd0 EFLAGS: 00000a02 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 1ffffffff1a486ec
RDX: dffffc0000000000 RSI: ffffffff837717c1 RDI: 0000000000000001
RBP: dffffc0000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffffff89f88280
R13: ffffffff89f88280 R14: 0000000000000000 R15: 0000000000000000
FS: 00007f5a3986e700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f15f4ef9004 CR3: 000000000e2bd000 CR4: 00000000003426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
<IRQ>
rcu_lockdep_current_cpu_online kernel/rcu/tree.c:1081 [inline]
rcu_lockdep_current_cpu_online+0x12f/0x1b0 kernel/rcu/tree.c:1068
rcu_read_lock_sched_held+0xd3/0x1d0 kernel/rcu/update.c:115
trace_timer_expire_exit include/trace/events/timer.h:121 [inline]
call_timer_fn+0x617/0x700 kernel/time/timer.c:1339
expire_timers+0x243/0x4e0 kernel/time/timer.c:1375
__run_timers kernel/time/timer.c:1696 [inline]
run_timer_softirq+0x21c/0x670 kernel/time/timer.c:1709
__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:write_comp_data+0x23/0x70 kernel/kcov.c:122
Code: 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 ca 5a 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 00 00 48 8b 38 48
RSP: 0018:ffff8880229d7928 EFLAGS: 00000246 ORIG_RAX: ffffffffffffff13
RAX: 0000000000000002 RBX: 00007f5a3a670000 RCX: ffffffff81c08718
RDX: 0000000000000001 RSI: ffff8880229c2540 RDI: 0000000000000001
RBP: ffff88809a833300 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 00007f5a3a660000
R13: ffff8880b43b5840 R14: ffffea0000ee8c40 R15: dffffc0000000000
can_gather_numa_stats fs/proc/task_mmu.c:1665 [inline]
gather_pte_stats+0x5d8/0xa20 fs/proc/task_mmu.c:1724
walk_pmd_range mm/pagewalk.c:51 [inline]
walk_pud_range mm/pagewalk.c:109 [inline]
walk_p4d_range mm/pagewalk.c:135 [inline]
walk_pgd_range+0x8fe/0x1150 mm/pagewalk.c:161
__walk_page_range mm/pagewalk.c:254 [inline]
walk_page_vma+0x259/0x300 mm/pagewalk.c:357
show_numa_map+0x2bc/0xd30 fs/proc/task_mmu.c:1812
seq_read+0xc22/0x11c0 fs/seq_file.c:271
__vfs_read+0xf7/0x750 fs/read_write.c:416
vfs_read+0x194/0x3c0 fs/read_write.c:452
ksys_read+0x12b/0x2a0 fs/read_write.c:579
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f5a3c2f78d9
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:00007f5a3986e188 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f5a3c3fbf60 RCX: 00007f5a3c2f78d9
RDX: 0000000000002020 RSI: 0000000020006300 RDI: 0000000000000004
RBP: 00007f5a3c351cb4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd50bafa3f R14: 00007f5a3986e300 R15: 0000000000022000
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 9846 Comm: kworker/u4:8 Not tainted 4.19.208-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: phy51 ieee80211_iface_work
RIP: 0010:ieee80211_sta_get_rates+0x49d/0x860 net/mac80211/util.c:1699
Code: 00 00 e8 76 c7 bd f9 48 8b 04 24 80 38 00 0f 85 31 03 00 00 49 8b 46 08 4b 8d 14 64 4c 8d 24 90 48 b8 00 00 00 00 00 fc ff df <4c> 89 e2 48 c1 ea 03 0f b6 0c 02 4c 89 e2 83 e2 07 83 c2 03 38 ca
RSP: 0018:ffff88803d2e7690 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: 0000000000000009 RCX: ffffffff87a4bc9c
RDX: 000000000000001b RSI: ffffffff87a4bcaa RDI: 0000000000000006
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000009
R10: 0000000000000006 R11: 0000000000000000 R12: ffff88804da9b264
R13: 000000000000000c R14: ffff88804da9a748 R15: 000000000000003c
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e79e3fba38 CR3: 000000003d76c000 CR4: 00000000003426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ieee80211_update_sta_info net/mac80211/ibss.c:1014 [inline]
ieee80211_rx_bss_info net/mac80211/ibss.c:1123 [inline]
ieee80211_rx_mgmt_probe_beacon+0x552/0x15c0 net/mac80211/ibss.c:1607
ieee80211_ibss_rx_queued_mgmt+0xe27/0x18b0 net/mac80211/ibss.c:1634
ieee80211_iface_work+0x5c4/0x8a0 net/mac80211/iface.c:1341
process_one_work+0x864/0x1570 kernel/workqueue.c:2153
worker_thread+0x64c/0x1130 kernel/workqueue.c:2296
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
----------------
Code disassembly (best guess):
0: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
7: 00 00 00
a: 66 90 xchg %ax,%ax
c: 48 c7 c0 60 37 24 8d mov $0xffffffff8d243760,%rax
13: 53 push %rbx
14: 89 fb mov %edi,%ebx
16: 48 ba 00 00 00 00 00 movabs $0xdffffc0000000000,%rdx
1d: fc ff df
20: 48 89 c1 mov %rax,%rcx
23: 83 e0 07 and $0x7,%eax
26: 48 c1 e9 03 shr $0x3,%rcx
* 2a: 83 c0 03 add $0x3,%eax <-- trapping instruction
2d: 0f b6 14 11 movzbl (%rcx,%rdx,1),%edx
31: 38 d0 cmp %dl,%al
33: 7c 08 jl 0x3d
35: 84 d2 test %dl,%dl
37: 0f 85 ef 00 00 00 jne 0x12c
3d: 8b .byte 0x8b
3e: 0d .byte 0xd
3f: 59 pop %rcx


---
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,
Feb 22, 2022, 10:22:17 AM2/22/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