syzbot


INFO: rcu detected stall in mac80211_hwsim_beacon

Status: upstream: reported on 2024/09/05 22:15
Reported-by: syzbot+b59423cdeaa295bec305@syzkaller.appspotmail.com
First crash: 22d, last: 18d
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 886d 1465d 0/28 closed as invalid on 2022/10/12 18:37
linux-5.15 INFO: rcu detected stall in mac80211_hwsim_beacon 1 344d 344d 0/3 auto-obsoleted due to no activity on 2024/01/28 07:17
linux-5.15 INFO: rcu detected stall in mac80211_hwsim_beacon (3) 2 15h25m 4d23h 0/3 upstream: reported on 2024/09/23 12:38
upstream BUG: soft lockup in mac80211_hwsim_beacon (2) wireless C error 49 3d05h 200d 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 220d 220d 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 886d 1458d 0/28 auto-obsoleted due to no activity on 2023/01/21 14:41

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { P3092 0-.... } 6430 jiffies s: 1725 root: 0x1/T
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 3816 Comm: syz.3.33 Not tainted 6.1.109-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:get_current arch/x86/include/asm/current.h:15 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:244 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp1+0x4/0x80 kernel/kcov.c:299
Code: 49 ff c2 4c 89 12 48 c7 44 11 08 06 00 00 00 48 89 7c 11 10 48 89 74 11 18 4c 89 44 11 20 c3 0f 1f 80 00 00 00 00 4c 8b 04 24 <65> 48 8b 15 64 be 77 7e 65 8b 05 65 be 77 7e 25 00 01 ff 00 74 10
RSP: 0018:ffffc90000006f70 EFLAGS: 00000047
RAX: 0000000000000001 RBX: 0000000000000001 RCX: ffffffff817a0ec2
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000002
RBP: 0000000000000001 R08: ffffffff817a0edf R09: fffffbfff1d33b6e
R10: 0000000000000000 R11: dffffc0000000001 R12: 000000223b60cbb6
R13: ffff8880b8e2a540 R14: ffff8880b8e2a4c0 R15: dffffc0000000000
FS:  00007f0ed00336c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe797a1090 CR3: 000000005a0bf000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 variable_test_bit arch/x86/include/asm/bitops.h:228 [inline]
 arch_test_bit arch/x86/include/asm/bitops.h:240 [inline]
 _test_bit include/asm-generic/bitops/instrumented-non-atomic.h:142 [inline]
 cpumask_test_cpu include/linux/cpumask.h:444 [inline]
 cpu_online include/linux/cpumask.h:1030 [inline]
 trace_hrtimer_cancel include/trace/events/timer.h:297 [inline]
 debug_deactivate+0x9f/0x280 kernel/time/hrtimer.c:483
 __run_hrtimer kernel/time/hrtimer.c:1657 [inline]
 __hrtimer_run_queues+0x334/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_interrupt+0x392/0x980 kernel/time/hrtimer.c:1815
 local_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1095 [inline]
 __sysvec_apic_timer_interrupt+0x156/0x580 arch/x86/kernel/apic/apic.c:1112
 sysvec_apic_timer_interrupt+0x3e/0xb0 arch/x86/kernel/apic/apic.c:1106
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:user_mode arch/x86/include/asm/ptrace.h:136 [inline]
RIP: 0010:unwind_next_frame+0xff/0x2220 arch/x86/kernel/unwind_orc.c:436
Code: 00 48 89 5c 24 20 48 8b 1b 48 85 db 74 2f 48 81 c3 88 00 00 00 48 89 d8 48 c1 e8 03 48 b9 00 00 00 00 00 fc ff df 80 3c 08 00 <74> 08 48 89 df e8 47 79 a5 00 f6 03 03 0f 85 fe 0f 00 00 48 8b 04
RSP: 0018:ffffc90000007300 EFLAGS: 00000246
RAX: 1ffff920008b4edc RBX: ffffc900045a76e0 RCX: dffffc0000000000
RDX: dffffc0000000000 RSI: ffffffff8aaf50d2 RDI: 0000000000000001
RBP: 1ffff92000000e7c R08: 0000000000000012 R09: ffffc900000074d0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88802a4c8000
R13: ffffffff81786b70 R14: dffffc0000000000 R15: ffffffff8aaf50d2
 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:45 [inline]
 kasan_set_track+0x4b/0x70 mm/kasan/common.c:52
 ____kasan_kmalloc mm/kasan/common.c:374 [inline]
 __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:383
 kasan_kmalloc include/linux/kasan.h:211 [inline]
 __do_kmalloc_node mm/slab_common.c:936 [inline]
 __kmalloc_node_track_caller+0xb1/0x220 mm/slab_common.c:956
 kmalloc_reserve net/core/skbuff.c:446 [inline]
 __alloc_skb+0x135/0x670 net/core/skbuff.c:515
 skb_copy+0x127/0x820 net/core/skbuff.c:1732
 mac80211_hwsim_tx_frame_no_nl+0x10f4/0x1a70 drivers/net/wireless/mac80211_hwsim.c:1724
 mac80211_hwsim_tx_frame+0x1cc/0x220 drivers/net/wireless/mac80211_hwsim.c:2053
 mac80211_hwsim_beacon_tx+0x5f8/0xaa0 drivers/net/wireless/mac80211_hwsim.c:2116
 __iterate_interfaces+0x21e/0x4b0 net/mac80211/util.c:788
 ieee80211_iterate_active_interfaces_atomic+0xd4/0x170 net/mac80211/util.c:824
 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
 __run_hrtimer kernel/time/hrtimer.c:1689 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1753
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1770
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:571
 __do_softirq kernel/softirq.c:605 [inline]
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:654
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:666
 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1106
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:653
RIP: 0010:preempt_schedule_irq+0xf2/0x1c0 kernel/sched/core.c:6870
Code: 89 f5 49 c1 ed 03 eb 0d 48 f7 03 08 00 00 00 0f 84 97 00 00 00 bf 01 00 00 00 e8 49 24 af f6 e8 64 20 e2 f6 fb bf 01 00 00 00 <e8> 79 b4 ff ff 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 69 de 32 f7 48
RSP: 0018:ffffc900045a7700 EFLAGS: 00000286
RAX: 3992b986e28b7400 RBX: 1ffff920008b4ee8 RCX: ffffffff97332103
RDX: dffffc0000000000 RSI: ffffffff8b0c0260 RDI: 0000000000000001
RBP: ffffc900045a77c0 R08: ffffffff81b6577c R09: ffffed10171c6ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920008b4ee0
R13: 1ffff920008b4ee4 R14: ffffc900045a7720 R15: dffffc0000000000
 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:dup_mm kernel/fork.c:1545 [inline]
RIP: 0010:copy_mm+0x159c/0x1990 kernel/fork.c:1589
Code: 2a bb 8f 00 49 89 1e 48 8b 84 24 98 00 00 00 42 80 3c 38 00 74 0d 48 8b bc 24 90 00 00 00 e8 8b ba 8f 00 4d 8b b5 a0 01 00 00 <49> 8d bd 98 01 00 00 48 89 f8 48 c1 e8 03 42 80 3c 38 00 4c 8b 6c
RSP: 0018:ffffc900045a7880 EFLAGS: 00000246
RAX: 1ffff1100f72f5d4 RBX: 0000000000000ec0 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffff88807b97b138
RBP: ffffc900045a7a90 R08: dffffc0000000000 R09: ffffed100f72f628
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807ba35a00
R13: ffff88807b97ad00 R14: 0000000000005f08 R15: dffffc0000000000
 copy_process+0x19d5/0x4060 kernel/fork.c:2267
 kernel_clone+0x222/0x920 kernel/fork.c:2682
 __do_sys_clone kernel/fork.c:2823 [inline]
 __se_sys_clone kernel/fork.c:2807 [inline]
 __x64_sys_clone+0x231/0x280 kernel/fork.c:2807
 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:0x7f0ecf17cef9
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:00007f0ed0032fe8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: ffffffffffffffda RBX: 00007f0ecf336058 RCX: 00007f0ecf17cef9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040020000
RBP: 00007f0ecf1ef046 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0ecf336058 R15: 00007ffe797a0d48
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/09 16:01 linux-6.1.y 5ca5b389fddf 073f8be2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in mac80211_hwsim_beacon
2024/09/05 22:15 linux-6.1.y 699506173494 464ac2ed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: rcu detected stall in mac80211_hwsim_beacon
* Struck through repros no longer work on HEAD.