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: 50d, last: 46d
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 672d 672d 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 458d 565d 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 1124d 1132d 0/28 auto-closed as invalid on 2021/10/29 13:44
linux-5.15 INFO: rcu detected stall in ieee80211_iface_work 1 109d 109d 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 886d 886d 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): P4059/1:b..l P5297/1:b..l
	(detected by 0, t=10502 jiffies, g=18297, q=54 ncpus=2)
task:syz.2.427       state:R  running task     stack:25000 pid:5297  ppid:4888   flags:0x00004000
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_reschedule_ipi+0x16/0x20 arch/x86/include/asm/idtentry.h:658
RIP: 0010:mas_validate_gaps lib/maple_tree.c:7008 [inline]
RIP: 0010:mt_validate+0x3831/0x5ad0 lib/maple_tree.c:7240
Code: 74 5e e8 02 7d ee f6 45 31 ff 49 be 00 00 00 00 00 fc ff df 48 8b 44 24 58 42 80 3c 30 00 74 0a 48 8b 7c 24 40 e8 0f f8 45 f7 <4c> 3b ac 24 68 01 00 00 0f 83 bb 05 00 00 e8 cc 7c ee f6 49 ff c5
RSP: 0018:ffffc90004b27540 EFLAGS: 00000246
RAX: 1ffff92000964ed5 RBX: 00007fb2e81f9000 RCX: ffff888027351dc0
RDX: 0000000000000000 RSI: 00007fb2e81f9000 RDI: 0000553a2981a000
RBP: ffffc90004b27730 R08: ffffffff8a9c2139 R09: ffffffff8a9c1f56
R10: 0000000000000003 R11: ffff888027351dc0 R12: 0000000000000000
R13: 00007fb2e81f8fff R14: dffffc0000000000 R15: 0000553a2981a000
 validate_mm_mt+0x165/0x670 mm/mmap.c:295
 validate_mm+0x16e/0x380 mm/mmap.c:332
 __vma_adjust+0x1d41/0x1f40 mm/mmap.c:871
 __split_vma+0x36e/0x530
 mprotect_fixup+0x6a2/0x840 mm/mprotect.c:617
 do_mprotect_pkey+0x8b6/0xbe0 mm/mprotect.c:792
 __do_sys_mprotect mm/mprotect.c:819 [inline]
 __se_sys_mprotect mm/mprotect.c:816 [inline]
 __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:816
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fb2e9779ab7
RSP: 002b:00007ffdf1ec3ce8 EFLAGS: 00000206 ORIG_RAX: 000000000000000a
RAX: ffffffffffffffda RBX: 00007fb2ea5016c0 RCX: 00007fb2e9779ab7
RDX: 0000000000000003 RSI: 0000000000020000 RDI: 00007fb2ea4e2000
RBP: 0000000000000000 R08: 00000000ffffffff R09: 0000000000000000
R10: 0000000000021000 R11: 0000000000000206 R12: 00007ffdf1ec3e40
R13: ffffffffffffffc0 R14: 0000000000001000 R15: 0000000000000000
 </TASK>
task:kworker/u4:13   state:R  running task     stack:19640 pid:4059  ppid:2      flags:0x00004000
Workqueue: phy6 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:653
RIP: 0010:lock_acquire+0x26f/0x5a0 kernel/locking/lockdep.c:5666
Code: 2b 00 74 08 4c 89 f7 e8 0f a7 77 00 f6 44 24 61 02 0f 85 84 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25
RSP: 0018:ffffc9000582f580 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000b05ebc RCX: 1ffff92000b05e5c
RDX: dffffc0000000000 RSI: ffffffff8b0c13e0 RDI: ffffffff8b5d5e20
RBP: ffffc9000582f6c8 R08: dffffc0000000000 R09: fffffbfff20e7445
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000b05eb8
R13: dffffc0000000000 R14: ffffc9000582f5e0 R15: 0000000000000246
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 ieee80211_bss_info_update+0x41a/0xf00 net/mac80211/scan.c:177
 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:1632 [inline]
 ieee80211_iface_work+0x7aa/0xce0 net/mac80211/iface.c:1686
 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 10568 jiffies! g18297 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:25016 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:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.104-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [inline]
RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline]
RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline]
RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:112 [inline]
RIP: 0010:acpi_idle_do_entry+0x10f/0x340 drivers/acpi/processor_idle.c:567
Code: 20 db f6 48 83 e3 08 0f 85 0b 01 00 00 4c 8d 74 24 20 e8 04 df e1 f6 0f 1f 44 00 00 e8 0a 1c db f6 0f 00 2d 23 ff b7 00 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 3b 00 74 08 4c 89 f7 e8 9b 97 32 f7
RSP: 0018:ffffffff8d007b20 EFLAGS: 000002d3
RAX: ffffffff8aaf83f6 RBX: 0000000000000000 RCX: ffffffff8d0bd800
RDX: 0000000000000000 RSI: ffffffff8b0c0260 RDI: ffffffff8b5d5e20
RBP: ffffffff8d007bb0 R08: ffffffff8aaf83d8 R09: fffffbfff1a17b01
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1a00f64
R13: ffff88801393f804 R14: ffffffff8d007b40 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002003a000 CR3: 0000000055748000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 acpi_idle_enter+0x352/0x4f0 drivers/acpi/processor_idle.c:704
 cpuidle_enter_state+0x516/0xf80 drivers/cpuidle/cpuidle.c:239
 cpuidle_enter+0x59/0x90 drivers/cpuidle/cpuidle.c:356
 call_cpuidle kernel/sched/idle.c:155 [inline]
 cpuidle_idle_call kernel/sched/idle.c:236 [inline]
 do_idle+0x3ce/0x680 kernel/sched/idle.c:303
 cpu_startup_entry+0x3d/0x60 kernel/sched/idle.c:401
 rest_init+0x2da/0x300 init/main.c:733
 arch_call_rest_init+0xa/0xa init/main.c:893
 start_kernel+0x496/0x53f init/main.c:1140
 secondary_startup_64_no_verify+0xcf/0xdb
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.