syzbot


INFO: rcu detected stall in mac80211_hwsim_beacon

Status: auto-obsoleted due to no activity on 2024/01/28 07:17
Reported-by: syzbot+4b4032baecd788a351be@syzkaller.appspotmail.com
First crash: 410d, last: 410d
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 952d 1531d 0/28 closed as invalid on 2022/10/12 18:37
linux-5.15 INFO: rcu detected stall in mac80211_hwsim_beacon (3) 3 63d 71d 0/3 upstream: reported on 2024/09/23 12:38
linux-6.1 INFO: rcu detected stall in mac80211_hwsim_beacon 3 63d 88d 0/3 upstream: reported on 2024/09/05 22:15
upstream BUG: soft lockup in mac80211_hwsim_beacon (2) wireless C error 56 3d20h 267d 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 286d 286d 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 952d 1525d 0/28 auto-obsoleted due to no activity on 2023/01/21 14:41

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-...!: (2 ticks this GP) idle=de3/1/0x4000000000000000 softirq=115774/115774 fqs=1 
rcu: 	Tasks blocked on level-0 rcu_node (CPUs 0-1): P25358/1:b..l P25869/1:b..l
	(detected by 1, t=10502 jiffies, g=187833, q=16)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 5.15.136-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
RIP: 0010:__run_hrtimer kernel/time/hrtimer.c:1683 [inline]
RIP: 0010:__hrtimer_run_queues+0x570/0xcf0 kernel/time/hrtimer.c:1749
Code: de e8 84 ef 10 00 85 db 74 10 e8 1b ed 10 00 4c 89 f7 41 ff d5 41 89 c5 eb 54 e8 0b ed 10 00 4d 89 fc 65 4c 8b 3d 70 3a 93 7e <49> 81 c7 d8 0a 00 00 4c 89 fb 48 c1 eb 03 42 0f b6 04 23 84 c0 0f
RSP: 0018:ffffc90000007d60 EFLAGS: 00000046
RAX: ffffffff816f3545 RBX: 0000000000000000 RCX: ffff88813fe21dc0
RDX: 0000000080010101 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000007eb0 R08: ffffffff816f352c R09: fffffbfff1bc7186
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffffff886a1b20 R14: ffff888078bdb340 R15: ffff88813fe21dc0
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe15342d8e5 CR3: 0000000034581000 CR4: 00000000003526f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 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+0x8c/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:__orc_find arch/x86/kernel/unwind_orc.c:52 [inline]
RIP: 0010:orc_find arch/x86/kernel/unwind_orc.c:178 [inline]
RIP: 0010:unwind_next_frame+0x532/0x1fa0 arch/x86/kernel/unwind_orc.c:448
Code: 01 c8 48 83 e0 fe 49 8d 1c 46 48 89 d8 48 c1 e8 03 0f b6 04 10 84 c0 75 27 48 63 03 48 01 d8 48 8d 4b 04 4c 39 e8 4c 0f 46 f1 <48> 8d 43 fc 48 0f 47 e8 4c 0f 46 e3 49 39 ee 76 b3 e9 31 fd ff ff
RSP: 0018:ffffc90000d373e8 EFLAGS: 00000216
RAX: ffffffff810054ba RBX: ffffffff8dee5e3c RCX: ffffffff8dee5e40
RDX: dffffc0000000000 RSI: ffffffff8e53cfc4 RDI: ffffffff8dee5dcc
RBP: ffffffff8dee5e3c R08: 0000000000000025 R09: ffffc90000d37590
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8dee5e38
R13: ffffffff810054ae R14: ffffffff8dee5e3c R15: ffffc90000d374a0
 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]
 kfree+0xf1/0x270 mm/slub.c:4559
 skb_free_head net/core/skbuff.c:655 [inline]
 skb_release_data+0x73a/0x8a0 net/core/skbuff.c:677
 skb_release_all net/core/skbuff.c:742 [inline]
 __kfree_skb net/core/skbuff.c:756 [inline]
 consume_skb+0xa3/0x140 net/core/skbuff.c:914
 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
 run_ksoftirqd+0xc1/0x120 kernel/softirq.c:921
 smpboot_thread_fn+0x51b/0x9d0 kernel/smpboot.c:164
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
task:modprobe        state:R  running task     stack:26712 pid:25869 ppid: 10568 flags:0x00004002
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6372
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6776
 irqentry_exit+0x53/0x80 kernel/entry/common.c:426
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:lock_is_held_type+0x137/0x180
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c4 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0018:ffffc9000519fa58 EFLAGS: 00000206
RAX: 4f391c5636a0bc00 RBX: 0000000000000002 RCX: 0000000080000000
RDX: dffffc0000000000 RSI: ffffffff8a8b1e00 RDI: ffffffff8ad87a40
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff1f79a21
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000246
R13: ffff888078e25940 R14: 00000000ffffffff R15: ffffffff8c91efa0
 lock_is_held include/linux/lockdep.h:287 [inline]
 rcu_read_lock_sched_held+0x89/0x130 kernel/rcu/update.c:125
 task_css include/linux/cgroup.h:496 [inline]
 mem_cgroup_from_task+0x49/0x110 mm/memcontrol.c:935
 get_obj_cgroup_from_current+0x148/0x2f0 mm/memcontrol.c:2922
 memcg_slab_pre_alloc_hook mm/slab.h:283 [inline]
 slab_pre_alloc_hook+0x87/0xc0 mm/slab.h:497
 slab_alloc_node mm/slub.c:3134 [inline]
 slab_alloc mm/slub.c:3228 [inline]
 kmem_cache_alloc+0x3f/0x280 mm/slub.c:3233
 anon_vma_chain_alloc mm/rmap.c:138 [inline]
 anon_vma_clone+0x9d/0x4e0 mm/rmap.c:284
 __split_vma+0x1a9/0x4a0 mm/mmap.c:2744
 mprotect_fixup+0x72a/0x7d0 mm/mprotect.c:483
 do_mprotect_pkey+0x75b/0xa50 mm/mprotect.c:636
 __do_sys_mprotect mm/mprotect.c:662 [inline]
 __se_sys_mprotect mm/mprotect.c:659 [inline]
 __x64_sys_mprotect+0x7c/0x90 mm/mprotect.c:659
 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:0x7fe153557bb7
RSP: 002b:00007ffd0160a938 EFLAGS: 00000206 ORIG_RAX: 000000000000000a
RAX: ffffffffffffffda RBX: 00007fe15353a0c0 RCX: 00007fe153557bb7
RDX: 0000000000000001 RSI: 0000000000003000 RDI: 00007fe153536000
RBP: 00007ffd0160aa50 R08: 00007ffd0160a8c8 R09: 00007fe15353a0c0
R10: 00007fe15347bb48 R11: 0000000000000206 R12: 00007fe15353a0c0
R13: 00007fe15355feda R14: 00007fe153538f28 R15: 00007fe1535382b8
 </TASK>
task:kworker/u4:1    state:R  running task     stack:26264 pid:25358 ppid:     2 flags:0x00004000
Workqueue: bat_events batadv_nc_worker
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6372
 preempt_schedule_irq+0xf7/0x1c0 kernel/sched/core.c:6776
 irqentry_exit+0x53/0x80 kernel/entry/common.c:426
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:debug_lockdep_rcu_enabled+0x0/0x30 kernel/rcu/update.c:279
Code: ad 21 c9 03 00 75 e7 48 c7 c7 00 0a 8b 8a 48 c7 c6 c0 2e 8b 8a e8 b0 3e 31 f7 0f 0b eb d0 cc cc cc cc cc cc cc cc cc cc cc cc <31> c0 83 3d fb ee c8 03 00 74 1d 83 3d 72 21 c9 03 00 74 14 65 48
RSP: 0018:ffffc900044b7bf0 EFLAGS: 00000296
RAX: df0ba8469b308b00 RBX: ffff88807f7c9600 RCX: 1ffff92000896efc
RDX: dffffc0000000000 RSI: ffffffff8a8b1e00 RDI: ffffffff8ad87a40
RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1f79a21
R10: 0000000000000000 R11: dffffc0000000001 R12: 00000000000002c0
R13: dffffc0000000000 R14: ffff888065764c80 R15: ffff88801c31cf40
 rcu_read_lock include/linux/rcupdate.h:697 [inline]
 batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:412 [inline]
 batadv_nc_worker+0xc6/0x5b0 net/batman-adv/network-coding.c:723
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>
rcu: rcu_preempt kthread starved for 10499 jiffies! g187833 f0x0 RCU_GP_WAIT_FQS(5) ->state=0x0 ->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:R  running task     stack:26712 pid:   15 ppid:     2 flags:0x00004000
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5026 [inline]
 __schedule+0x12c4/0x45b0 kernel/sched/core.c:6372
 schedule+0x11b/0x1f0 kernel/sched/core.c:6455
 schedule_timeout+0x1b9/0x300 kernel/time/timer.c:1884
 rcu_gp_fqs_loop+0x2af/0xf70 kernel/rcu/tree.c:1959
 rcu_gp_kthread+0xa4/0x360 kernel/rcu/tree.c:2132
 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:
NMI backtrace for cpu 1
CPU: 1 PID: 10588 Comm: kworker/1:21 Not tainted 5.15.136-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/06/2023
Workqueue: events bpf_prog_free_deferred
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_check_gp_kthread_starvation+0x1d2/0x240 kernel/rcu/tree_stall.h:481
 print_other_cpu_stall+0x137a/0x14d0 kernel/rcu/tree_stall.h:586
 check_cpu_stall kernel/rcu/tree_stall.h:729 [inline]
 rcu_pending kernel/rcu/tree.c:3911 [inline]
 rcu_sched_clock_irq+0x94f/0x1770 kernel/rcu/tree.c:2606
 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+0x8c/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:csd_lock_wait kernel/smp.c:440 [inline]
RIP: 0010:smp_call_function_many_cond+0xa93/0xd90 kernel/smp.c:969
Code: 04 03 84 c0 0f 85 84 00 00 00 45 8b 7d 00 44 89 fe 83 e6 01 31 ff e8 3c c6 0b 00 41 83 e7 01 75 07 e8 d1 c2 0b 00 eb 41 f3 90 <48> b8 00 00 00 00 00 fc ff df 0f b6 04 03 84 c0 75 11 41 f7 45 00
RSP: 0018:ffffc900044178a0 EFLAGS: 00000293
RAX: ffffffff81745fa4 RBX: 1ffff110173483c1 RCX: ffff88803d525940
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc900044179e0 R08: ffffffff81745f74 R09: fffffbfff1f79a22
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff8880b9a41e08 R14: ffff8880b9b3a780 R15: 0000000000000001
 on_each_cpu_cond_mask+0x3b/0x80 kernel/smp.c:1135
 __purge_vmap_area_lazy+0x294/0x1740 mm/vmalloc.c:1683
 _vm_unmap_aliases+0x453/0x4e0 mm/vmalloc.c:2107
 vm_remove_mappings mm/vmalloc.c:2584 [inline]
 __vunmap+0x72e/0xa20 mm/vmalloc.c:2611
 bpf_jit_binary_free kernel/bpf/core.c:910 [inline]
 bpf_jit_free+0x92/0x180 kernel/bpf/core.c:923
 process_one_work+0x8a1/0x10c0 kernel/workqueue.c:2310
 worker_thread+0xaca/0x1280 kernel/workqueue.c:2457
 kthread+0x3f6/0x4f0 kernel/kthread.c:319
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/10/20 07:16 linux-5.15.y 00c03985402e a42250d2 .config console log report info ci2-linux-5-15-kasan INFO: rcu detected stall in mac80211_hwsim_beacon
* Struck through repros no longer work on HEAD.