syzbot


INFO: rcu detected stall in ieee80211_iface_work

Status: upstream: reported on 2024/08/09 01:20
Reported-by: syzbot+3ced243d0bc525e3531b@syzkaller.appspotmail.com
First crash: 104d, last: 19d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in ieee80211_iface_work (3) wireless 1 726d 726d 0/28 auto-obsoleted due to no activity on 2023/02/25 18:08
upstream INFO: rcu detected stall in ieee80211_iface_work (4) wireless 3 512d 619d 0/28 auto-obsoleted due to no activity on 2023/09/25 23:55
upstream INFO: rcu detected stall in ieee80211_iface_work wireless 2 1179d 1187d 0/28 auto-closed as invalid on 2021/10/29 13:44
linux-5.15 INFO: rcu detected stall in ieee80211_iface_work 1 163d 163d 0/3 auto-obsoleted due to no activity on 2024/09/18 22:31
upstream INFO: rcu detected stall in ieee80211_iface_work (2) iomap 1 940d 940d 0/28 auto-closed as invalid on 2022/06/25 02:47

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P11/1:b..l
	(detected by 1, t=10502 jiffies, g=76437, q=210 ncpus=2)
task:kworker/u4:1    state:R  running task     stack:21944 pid:11    ppid:2      flags:0x00004000
Workqueue: phy30 ieee80211_iface_work
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6870
 irqentry_exit+0x53/0x80 kernel/entry/common.c:439
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:212
Code: e8 25 00 00 00 0f 0b 0f 1f 00 53 48 89 fb e8 17 00 00 00 48 8b 3d 98 72 0f 0d 48 89 de 5b e9 07 ac 56 00 cc cc cc cc cc cc cc <48> 8b 04 24 65 48 8b 0d e4 db 77 7e 65 8b 15 e5 db 77 7e 81 e2 00
RSP: 0018:ffffc900001076d8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 0000000000000001 RCX: 0000000080000000
RDX: ffff888017f53b80 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900001078f0 R08: ffffffff8a217321 R09: fffffbfff224604d
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802b1b9cc8
R13: ffffffff8a21723d R14: ffffc90000107840 R15: 0000000000000000
 ieee80211_bss_info_update+0x4ee/0xf00 net/mac80211/scan.c:178
 ieee80211_rx_bss_info net/mac80211/ibss.c:1120 [inline]
 ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1609 [inline]
 ieee80211_ibss_rx_queued_mgmt+0x1962/0x2dd0 net/mac80211/ibss.c:1638
 ieee80211_iface_process_skb net/mac80211/iface.c:1668 [inline]
 ieee80211_iface_work+0x7aa/0xce0 net/mac80211/iface.c:1722
 process_one_work+0x8a9/0x11d0 kernel/workqueue.c:2292
 worker_thread+0xa47/0x1200 kernel/workqueue.c:2439
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: rcu_preempt kthread starved for 10533 jiffies! g76437 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->cpu=0
rcu: 	Unless rcu_preempt kthread gets sufficient CPU time, OOM is now expected behavior.
rcu: RCU grace-period kthread stack dump:
task:rcu_preempt     state:R  running task     stack:26712 pid:16    ppid:2      flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5241 [inline]
 __schedule+0x143f/0x4570 kernel/sched/core.c:6558
 schedule+0xbf/0x180 kernel/sched/core.c:6634
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1965
 rcu_gp_fqs_loop+0x2d2/0x1150 kernel/rcu/tree.c:1706
 rcu_gp_kthread+0xa3/0x3b0 kernel/rcu/tree.c:1905
 kthread+0x28d/0x320 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 14517 Comm: syz.5.2775 Not tainted 6.1.115-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:arch_static_branch arch/x86/include/asm/jump_label.h:27 [inline]
RIP: 0010:static_key_false include/linux/jump_label.h:207 [inline]
RIP: 0010:native_write_msr arch/x86/include/asm/msr.h:147 [inline]
RIP: 0010:wrmsr arch/x86/include/asm/msr.h:254 [inline]
RIP: 0010:native_apic_msr_write+0x35/0x50 arch/x86/include/asm/apic.h:206
Code: 74 2a 83 ff 30 74 25 eb 10 81 ff d0 00 00 00 74 1b 81 ff e0 00 00 00 74 13 c1 ef 04 81 c7 00 08 00 00 89 f9 89 f0 31 d2 0f 30 <66> 90 c3 89 f6 31 d2 e9 bf f9 29 03 66 2e 0f 1f 84 00 00 00 00 00
RSP: 0018:ffffc900054df820 EFLAGS: 00000046
RAX: 000000000000003e RBX: ffffffff8cd8ea30 RCX: 0000000000000838
RDX: 0000000000000000 RSI: 000000000000003e RDI: 0000000000000838
RBP: 0000000000000020 R08: ffffffff817cdae8 R09: fffffbfff1d34076
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000000000003e
R13: dffffc0000000000 R14: 000000000000003e R15: dffffc0000000000
FS:  00007fc159fa16c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc159f7ff98 CR3: 0000000057676000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 apic_write arch/x86/include/asm/apic.h:394 [inline]
 lapic_next_event+0x5b/0x70 arch/x86/kernel/apic/apic.c:478
 clockevents_program_min_delta+0x1ae/0x410 kernel/time/clockevents.c:248
 hrtimer_start_range_ns+0xada/0xc80 kernel/time/hrtimer.c:1303
 posixtimer_rearm+0x1ad/0x3f0 kernel/time/posix-timers.c:328
 dequeue_signal+0x245/0x590 kernel/signal.c:703
 get_signal+0x5f2/0x17d0 kernel/signal.c:2750
 arch_do_signal_or_restart+0xb0/0x1a10 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x6a/0x100 kernel/entry/common.c:174
 exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x60/0x270 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fc15917e717
Code: ff ff 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 a8 ff ff ff f7 d8 64 89
RSP: 002b:00007fc159fa1038 EFLAGS: 00000246
RAX: 0000000000000013 RBX: 00007fc159335f80 RCX: 00007fc15917e719
RDX: 0000000000000001 RSI: 0000000020000000 RDI: 0000000000000005
RBP: 00007fc1591f132e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fc159335f80 R15: 00007ffdbff08dc8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/11/02 05:27 linux-6.1.y 7c15117f9468 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in ieee80211_iface_work
2024/08/12 20:36 linux-6.1.y 36790ef5e00b 842184b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in ieee80211_iface_work
2024/08/09 01:20 linux-6.1.y 48d525b0e463 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in ieee80211_iface_work
* Struck through repros no longer work on HEAD.