syzbot


INFO: rcu detected stall in mac80211_hwsim_beacon (3)

Status: upstream: reported on 2024/09/23 12:38
Reported-by: syzbot+8aa371c9a6027a1124dc@syzkaller.appspotmail.com
First crash: 58d, last: 51d
Similar bugs (6)
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 940d 1519d 0/28 closed as invalid on 2022/10/12 18:37
linux-5.15 INFO: rcu detected stall in mac80211_hwsim_beacon 1 398d 398d 0/3 auto-obsoleted due to no activity on 2024/01/28 07:17
linux-6.1 INFO: rcu detected stall in mac80211_hwsim_beacon 3 51d 76d 0/3 upstream: reported on 2024/09/05 22:15
upstream BUG: soft lockup in mac80211_hwsim_beacon (2) wireless C error 52 5d00h 254d 0/28 upstream: reported C repro on 2024/03/11 14:28
linux-5.15 INFO: rcu detected stall in mac80211_hwsim_beacon (2) 1 274d 274d 0/3 auto-obsoleted due to no activity on 2024/05/30 17:39
upstream BUG: soft lockup in mac80211_hwsim_beacon wireless syz error unreliable 180 940d 1512d 0/28 auto-obsoleted due to no activity on 2023/01/21 14:41

Sample crash report:
rcu: INFO: rcu_preempt self-detected stall on CPU
rcu: 	0-...!: (10499 ticks this GP) idle=9df/1/0x4000000000000000 softirq=64169/64204 fqs=0 
	(t=10500 jiffies g=77665 q=340)
rcu: rcu_preempt kthread timer wakeup didn't happen for 10499 jiffies! g77665 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x402
rcu: 	Possible timer handling issue on cpu=1 timer-softirq=34050
rcu: rcu_preempt kthread starved for 10500 jiffies! g77665 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:26776 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5027 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6373
 schedule+0x11b/0x1f0 kernel/sched/core.c:6456
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1914
 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:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </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: 7456 Comm: syz.1.994 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:434 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x5ba/0xc40 kernel/locking/qspinlock.c:508
Code: 00 00 49 89 dc c6 03 00 48 8b 44 24 10 0f b6 04 10 84 c0 0f 85 48 01 00 00 48 8b 44 24 08 c6 00 01 bb 00 80 ff ff eb 06 f3 90 <ff> c3 74 5e 41 0f b6 44 15 00 84 c0 75 36 41 80 3f 00 75 ea 4c 89
RSP: 0018:ffffc90002ca6d80 EFLAGS: 00000206
RAX: 0000000000000000 RBX: 00000000fffff0e7 RCX: ffffffff81631ae8
RDX: dffffc0000000000 RSI: ffffffff8a8b2b00 RDI: ffffffff8ad904c0
RBP: ffffc90002ca6e78 R08: dffffc0000000000 R09: fffffbfff20e2419
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8880b913b114
R13: 1ffffffff193bdb4 R14: 1ffff11017220001 R15: ffffffff8c9deda0
FS:  00007f0966bf96c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0968660210 CR3: 000000005f1ef000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 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+0x23c/0x19a0 mm/vmalloc.c:1542
 __get_vm_area_node+0x16e/0x2f0 mm/vmalloc.c:2423
 __vmalloc_node_range+0xe3/0x8c0 mm/vmalloc.c:3019
 __vmalloc_node mm/vmalloc.c:3079 [inline]
 vmalloc+0x75/0x80 mm/vmalloc.c:3112
 bpf_prog_calc_tag+0xd7/0x8f0 kernel/bpf/core.c:281
 resolve_pseudo_ldimm64+0xe0/0x1240 kernel/bpf/verifier.c:11811
 bpf_check+0x4341/0x12d00 kernel/bpf/verifier.c:14101
 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651
 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4753 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f0968780ff9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f0966bf9038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f0968938f80 RCX: 00007f0968780ff9
RDX: 0000000000000048 RSI: 0000000020000200 RDI: 0000000000000005
RBP: 00007f09687f3296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0968938f80 R15: 00007ffcaadb4558
 </TASK>
NMI backtrace for cpu 0
CPU: 0 PID: 7451 Comm: syz.4.992 Not tainted 5.15.167-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
Call Trace:
 <IRQ>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e3/0x2d0 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:1818
 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:1688 [inline]
 __hrtimer_run_queues+0x55b/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1814
 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:memset_erms+0xe/0x10 arch/x86/lib/memset_64.S:66
Code: b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa 4c 89 c8 <c3> 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 48 0f af
RSP: 0018:ffffc900000075e0 EFLAGS: 00000202
RAX: ffffc900000076f0 RBX: ffffc900000076f0 RCX: 0000000000000000
RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc90000007700
RBP: ffffffff8e6afb50 R08: dffffc0000000000 R09: ffffc900000076f0
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffffffff1cd5f6a
R13: 1ffffffff1cd5f6a R14: ffffffff8e6afb4c R15: ffffc900000076a0
 unwind_next_frame+0xbc8/0x1fa0 arch/x86/kernel/unwind_orc.c:547
 arch_stack_walk+0x10d/0x140 arch/x86/kernel/stacktrace.c:25
 stack_trace_save+0x113/0x1c0 kernel/stacktrace.c:122
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track+0x4b/0x80 mm/kasan/common.c:46
 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:360
 ____kasan_slab_free+0xd8/0x120 mm/kasan/common.c:366
 kasan_slab_free include/linux/kasan.h:230 [inline]
 slab_free_hook mm/slub.c:1705 [inline]
 slab_free_freelist_hook+0xdd/0x160 mm/slub.c:1731
 slab_free mm/slub.c:3499 [inline]
 kmem_cache_free+0x91/0x1f0 mm/slub.c:3515
 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:1688 [inline]
 __hrtimer_run_queues+0x598/0xcf0 kernel/time/hrtimer.c:1752
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1769
 handle_softirqs+0x3a7/0x930 kernel/softirq.c:558
 __do_softirq kernel/softirq.c:592 [inline]
 invoke_softirq kernel/softirq.c:432 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:641
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:653
 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:lookup_page_ext+0x2/0x120 mm/page_ext.c:207
Code: 3b 4c 24 40 75 0f 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 ee 18 62 08 e8 f9 25 ae ff 0f 0b cc cc cc cc cc cc cc 41 57 <41> 56 41 54 53 49 89 fe 49 bc 00 00 00 00 00 fc ff df e8 d7 25 ae
RSP: 0018:ffffc90002e270e8 EFLAGS: 00000286
RAX: 000000ad9a3dc7e1 RBX: ffffea00018c1740 RCX: 1ffffffff1ecee00
RDX: 1ffffffff1ecee00 RSI: ffffffff8f67701c RDI: ffffea00018c1740
RBP: ffffea00018c1758 R08: ffffffff8f677000 R09: ffffffff8f677008
R10: ffffffff8f677018 R11: ffffffff8f677010 R12: 0000000000000000
R13: 0000000000000000 R14: dffffc0000000000 R15: ffffea00018c1740
 __reset_page_owner+0x32/0x180 mm/page_owner.c:136
 reset_page_owner include/linux/page_owner.h:24 [inline]
 free_pages_prepare mm/page_alloc.c:1340 [inline]
 free_pcp_prepare mm/page_alloc.c:1391 [inline]
 free_unref_page_prepare+0xc34/0xcf0 mm/page_alloc.c:3317
 free_unref_page+0x95/0x2d0 mm/page_alloc.c:3396
 kasan_depopulate_vmalloc_pte+0x66/0x80 mm/kasan/shadow.c:375
 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_ro+0xa1/0xe0 arch/x86/mm/pat/set_memory.c:1943
 bpf_jit_binary_lock_ro include/linux/filter.h:892 [inline]
 bpf_int_jit_compile+0xbf57/0xc6e0 arch/x86/net/bpf_jit_comp.c:2372
 bpf_prog_select_runtime+0x701/0x9f0 kernel/bpf/core.c:1930
 bpf_prog_load+0x131c/0x1b60 kernel/bpf/syscall.c:2357
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4651
 __do_sys_bpf kernel/bpf/syscall.c:4755 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4753 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4753
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fba179adff9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fba15e26038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fba17b65f80 RCX: 00007fba179adff9
RDX: 0000000000000048 RSI: 0000000020000080 RDI: 0000000000000005
RBP: 00007fba17a20296 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fba17b65f80 R15: 00007ffe19599228
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/30 17:16 linux-5.15.y 3a5928702e71 bbd4e0a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in mac80211_hwsim_beacon
2024/09/27 20:46 linux-5.15.y 3a5928702e71 440b26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in mac80211_hwsim_beacon
2024/09/23 12:38 linux-5.15.y 3a5928702e71 89298aad .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.