syzbot


INFO: rcu detected stall in mac80211_hwsim_beacon (2)

Status: upstream: reported on 2024/02/20 17:39
Reported-by: syzbot+73bd7ceddc60205d0a97@syzkaller.appspotmail.com
First crash: 73d, last: 73d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in mac80211_hwsim_beacon kernel C error inconclusive 1904 738d 1318d 0/26 closed as invalid on 2022/10/12 18:37
linux-5.15 INFO: rcu detected stall in mac80211_hwsim_beacon 1 196d 196d 0/3 auto-obsoleted due to no activity on 2024/01/28 07:17
upstream BUG: soft lockup in mac80211_hwsim_beacon wireless syz error unreliable 180 738d 1311d 0/26 auto-obsoleted due to no activity on 2023/01/21 14:41
upstream BUG: soft lockup in mac80211_hwsim_beacon (2) wireless 1 54d 53d 0/26 upstream: reported on 2024/03/11 14:28

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10481 ticks this GP) idle=b9b/1/0x4000000000000000 softirq=176982/177342 fqs=16 
	(t=10502 jiffies g=310897 q=774)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10138 jiffies! g310897 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=245798
rcu: rcu_preempt kthread starved for 10141 jiffies! g310897 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402 ->cpu=1
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:I stack:26528 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5030 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6376
 schedule+0x11b/0x1f0 kernel/sched/core.c:6459
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2bf/0x1080 kernel/rcu/tree.c:1972
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2145
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: Stack dump where RCU GP kthread last ran:
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3526 Comm: syz-fuzzer Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x1b4/0x200 arch/x86/kernel/kvm.c:918
Code: e0 48 c1 e8 03 42 0f b6 04 28 84 c0 75 42 45 0f b6 34 24 e8 be c7 4e 00 44 3a 74 24 1c 75 10 66 90 0f 00 2d fe 86 50 09 fb f4 <e9> c8 fe ff ff fb e9 c2 fe ff ff 44 89 e1 80 e1 07 38 c1 0f 8c 54
RSP: 0018:ffffc90002d374c0 EFLAGS: 00000246
RAX: 6fadef31e13d7600 RBX: 1ffff920005a6e9c RCX: ffffffff8162ee28
RDX: dffffc0000000000 RSI: ffffffff8a8b0f80 RDI: ffffffff8ad87e40
RBP: ffffc90002d37590 R08: dffffc0000000000 R09: fffffbfff1f7a019
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8c9de4a0
R13: dffffc0000000000 R14: 0000000000000003 R15: ffffc90002d37500
FS:  000000c0165ea490(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0007d93a0 CR3: 0000000074834000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath+0x42/0x50 arch/x86/include/asm/qspinlock.h:51
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock+0x269/0x370 kernel/locking/spinlock_debug.c:115
 spin_lock include/linux/spinlock.h:363 [inline]
 preload_this_cpu_lock mm/vmalloc.c:1500 [inline]
 alloc_vmap_area+0x654/0x19a0 mm/vmalloc.c:1542
 __get_vm_area_node+0x16e/0x2f0 mm/vmalloc.c:2423
 __vmalloc_node_range+0xe3/0x8c0 mm/vmalloc.c:3019
 alloc_thread_stack_node kernel/fork.c:245 [inline]
 dup_task_struct+0x428/0xb60 kernel/fork.c:898
 copy_process+0x5eb/0x3ef0 kernel/fork.c:2038
 kernel_clone+0x210/0x960 kernel/fork.c:2604
 __do_sys_clone kernel/fork.c:2721 [inline]
 __se_sys_clone kernel/fork.c:2705 [inline]
 __x64_sys_clone+0x23f/0x290 kernel/fork.c:2705
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x4c192f
Code: 48 8b 74 24 18 48 c7 c2 00 00 00 00 49 c7 c2 00 00 00 00 49 c7 c0 00 00 00 00 49 c7 c1 00 00 00 00 48 8b 44 24 08 41 5c 0f 05 <41> 54 48 3d 01 f0 ff ff 76 12 48 c7 44 24 20 ff ff ff ff 48 f7 d8
RSP: 002b:000000c0007d91d8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000004c192f
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000004111
RBP: 000000c0007d94e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 00000000004b8265
R13: 000000c0165ea400 R14: 000000c00008d040 R15: 0000000000000055
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 24600 Comm: syz-executor.4 Not tainted 5.15.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
 trigger_single_cpu_backtrace include/linux/nmi.h:166 [inline]
 rcu_dump_cpu_stacks+0x223/0x390 kernel/rcu/tree_stall.h:349
 print_cpu_stall+0x320/0x600 kernel/rcu/tree_stall.h:633
 check_cpu_stall kernel/rcu/tree_stall.h:727 [inline]
 rcu_pending kernel/rcu/tree.c:3932 [inline]
 rcu_sched_clock_irq+0x8d9/0x1150 kernel/rcu/tree.c:2619
 update_process_times+0x196/0x200 kernel/time/timer.c:1788
 tick_sched_handle kernel/time/tick-sched.c:254 [inline]
 tick_sched_timer+0x386/0x550 kernel/time/tick-sched.c:1473
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1811
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1085 [inline]
 __sysvec_apic_timer_interrupt+0x139/0x470 arch/x86/kernel/apic/apic.c:1102
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1096
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:mac80211_hwsim_tx_frame_no_nl+0x838/0x1840 drivers/net/wireless/mac80211_hwsim.c:1531
Code: ac 24 80 00 00 00 0f 84 84 00 00 00 49 8d 9d ac 3c 00 00 48 89 d8 48 c1 e8 03 42 0f b6 04 20 84 c0 0f 85 f4 09 00 00 0f b6 1b <31> ff 89 de e8 ef dd 92 fb 85 db 74 63 49 8d 9d ad 3c 00 00 48 89
RSP: 0018:ffffc90000007960 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff8880ac2fbb80
RDX: 0000000000000104 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007b08 R08: ffffffff85ed5231 R09: ffffffff85ed52d3
R10: 0000000000000002 R11: ffff8880ac2fbb80 R12: dffffc0000000000
R13: ffff888083fe32e0 R14: ffffc90000007aa8 R15: 1ffff92000000f55
 mac80211_hwsim_tx_frame+0x1cc/0x220 drivers/net/wireless/mac80211_hwsim.c:1788
 mac80211_hwsim_beacon_tx+0x48f/0x8a0 drivers/net/wireless/mac80211_hwsim.c:1842
 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:793
 ieee80211_iterate_active_interfaces_atomic+0xaf/0x140 net/mac80211/util.c:829
 mac80211_hwsim_beacon+0xa7/0x180 drivers/net/wireless/mac80211_hwsim.c:1865
 __run_hrtimer kernel/time/hrtimer.c:1685 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1749
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1766
 __do_softirq+0x3b3/0x93a kernel/softirq.c:558
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:637
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1096
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs kernel/rcu/tree.c:331 [inline]
RIP: 0010:rcu_is_watching+0x2d/0xa0 kernel/rcu/tree.c:1123
Code: 56 53 65 ff 05 cc 84 97 7e e8 5f b1 b1 08 89 c3 83 f8 08 73 72 49 bf 00 00 00 00 00 fc ff df 4c 8d 34 dd f0 d7 34 8c 4c 89 f0 <48> c1 e8 03 42 80 3c 38 00 74 08 4c 89 f7 e8 e0 f8 5e 00 48 c7 c3
RSP: 0018:ffffc900052a7120 EFLAGS: 00000293
RAX: ffffffff8c34d7f0 RBX: 0000000000000000 RCX: ffffffff8162a758
RDX: 0000000000000000 RSI: ffffffff8ad87e20 RDI: ffffffff8ad87de0
RBP: ffffc900052a7278 R08: dffffc0000000000 R09: fffffbfff1bc73d6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000a54e34
R13: ffffffff81c9eac2 R14: ffffffff8c34d7f0 R15: dffffc0000000000
 trace_lock_release include/trace/events/lock.h:58 [inline]
 lock_release+0xb9/0x9a0 kernel/locking/lockdep.c:5634
 __raw_spin_unlock include/linux/spinlock_api_smp.h:150 [inline]
 _raw_spin_unlock+0x12/0x40 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:403 [inline]
 kasan_depopulate_vmalloc_pte+0x72/0x80 mm/kasan/shadow.c:377
 apply_to_pte_range mm/memory.c:2545 [inline]
 apply_to_pmd_range mm/memory.c:2589 [inline]
 apply_to_pud_range mm/memory.c:2625 [inline]
 apply_to_p4d_range mm/memory.c:2661 [inline]
 __apply_to_page_range+0x9bf/0xcc0 mm/memory.c:2695
 kasan_release_vmalloc+0x96/0xb0 mm/kasan/shadow.c:485
 __purge_vmap_area_lazy+0x15ae/0x1740 mm/vmalloc.c:1704
 _vm_unmap_aliases+0x453/0x4e0 mm/vmalloc.c:2107
 change_page_attr_set_clr+0x308/0x1050 arch/x86/mm/pat/set_memory.c:1740
 change_page_attr_clear arch/x86/mm/pat/set_memory.c:1797 [inline]
 set_memory_x+0xee/0x130 arch/x86/mm/pat/set_memory.c:1930
 bpf_jit_binary_lock_ro include/linux/filter.h:889 [inline]
 bpf_int_jit_compile+0xbf6f/0xc6e0 arch/x86/net/bpf_jit_comp.c:2372
 bpf_prog_select_runtime+0x6e2/0x9b0 kernel/bpf/core.c:1930
 bpf_prog_load+0x131c/0x1b60 kernel/bpf/syscall.c:2329
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4623
 __do_sys_bpf kernel/bpf/syscall.c:4727 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4725 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4725
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fdd484c4da9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fdd46a450c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fdd485f2f80 RCX: 00007fdd484c4da9
RDX: 0000000000000048 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 00007fdd4851147a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fdd485f2f80 R15: 00007ffd99651608
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/02/20 17:38 linux-5.15.y 6139f2a02fe0 3af7dd65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in mac80211_hwsim_beacon
* Struck through repros no longer work on HEAD.