syzbot


INFO: rcu detected stall in sys_bpf

Status: upstream: reported on 2024/04/20 10:27
Reported-by: syzbot+66feb346d5c375250c6e@syzkaller.appspotmail.com
First crash: 349d, last: 8d11h
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_bpf (5) bpf C unreliable 56 1168d 1261d 0/28 closed as invalid on 2022/02/08 10:34
upstream INFO: rcu detected stall in sys_bpf (9) bpf net C error 74 71d 311d 0/28 auto-obsoleted due to no activity on 2025/04/03 05:23
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 16 51d 360d 0/3 upstream: reported on 2024/04/09 19:57
upstream INFO: rcu detected stall in sys_bpf (3) bpf 4 1913d 1913d 0/28 closed as invalid on 2020/01/09 08:13
linux-5.15 INFO: rcu detected stall in sys_bpf 2 484d 526d 0/3 auto-obsoleted due to no activity on 2024/03/16 17:33
upstream INFO: rcu detected stall in sys_bpf bpf net 3 2079d 2200d 0/28 auto-closed as invalid on 2019/11/23 00:18
upstream INFO: rcu detected stall in sys_bpf (2) bpf 12 1948d 1949d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 502d 502d 0/28 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-4.19 INFO: rcu detected stall in sys_bpf 3 1897d 2026d 0/1 auto-closed as invalid on 2020/05/23 14:47
upstream INFO: rcu detected stall in sys_bpf (6) net 7 979d 1129d 0/28 auto-obsoleted due to no activity on 2022/10/28 06:32
upstream INFO: rcu detected stall in sys_bpf (4) bpf net 3 1866d 1905d 0/28 auto-closed as invalid on 2020/05/24 13:03
android-5-15 BUG: soft lockup in sys_bpf origin:upstream C error 108 204d 371d 0/2 upstream: reported C repro on 2024/03/29 12:25
android-5-10 BUG: soft lockup in sys_bpf 2 284d 288d 0/2 auto-obsoleted due to no activity on 2024/09/22 11:37

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 0-.... } 2726 jiffies s: 1585 root: 0x1/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4408 Comm: syz.0.21 Not tainted 6.1.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:mac80211_hwsim_tx_frame_no_nl+0x697/0x1af0 drivers/net/wireless/mac80211_hwsim.c:1647
Code: 48 8b 1b 48 85 db 74 44 e8 f6 7d 40 fb 48 81 c3 0c 01 00 00 48 89 d8 48 c1 e8 03 49 bd 00 00 00 00 00 fc ff df 42 0f b6 04 28 <84> c0 0f 85 08 12 00 00 44 03 3b 43 0f b6 04 2c 84 c0 0f 85 15 12
RSP: 0018:ffffc900000068e0 EFLAGS: 00000a03
RAX: 0000000000000000 RBX: ffff888054fba89c RCX: ffff88801b379dc0
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000006ab8 R08: ffffffff864a2b18 R09: ffffc900000069e0
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000000d40
R13: dffffc0000000000 R14: ffffc90000006a06 R15: 00000000ffffffce
FS:  00007f9a658016c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000000545f6000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 mac80211_hwsim_tx+0x18d7/0x2600 drivers/net/wireless/mac80211_hwsim.c:1935
 drv_tx net/mac80211/driver-ops.h:35 [inline]
 ieee80211_tx_frags+0x3d8/0x890 net/mac80211/tx.c:1766
 __ieee80211_tx+0x21b/0x4a0 net/mac80211/tx.c:1820
 ieee80211_tx+0x32d/0x460 net/mac80211/tx.c:2000
 __ieee80211_subif_start_xmit+0x10d5/0x3450 net/mac80211/tx.c:4265
 ieee80211_subif_start_xmit+0xda/0x4c0 net/mac80211/tx.c:4457
 __netdev_start_xmit include/linux/netdevice.h:4896 [inline]
 netdev_start_xmit include/linux/netdevice.h:4910 [inline]
 xmit_one net/core/dev.c:3658 [inline]
 dev_hard_start_xmit+0x261/0x8c0 net/core/dev.c:3674
 sch_direct_xmit+0x2b2/0x5e0 net/sched/sch_generic.c:342
 __dev_xmit_skb net/core/dev.c:3895 [inline]
 __dev_queue_xmit+0x1a7a/0x3d50 net/core/dev.c:4300
 dev_queue_xmit include/linux/netdevice.h:3051 [inline]
 neigh_hh_output include/net/neighbour.h:528 [inline]
 neigh_output include/net/neighbour.h:542 [inline]
 ip6_finish_output2+0xfa5/0x1700 net/ipv6/ip6_output.c:138
 __ip6_finish_output net/ipv6/ip6_output.c:205 [inline]
 ip6_finish_output+0x6a0/0xa80 net/ipv6/ip6_output.c:216
 dst_output include/net/dst.h:453 [inline]
 NF_HOOK include/linux/netfilter.h:302 [inline]
 ndisc_send_skb+0xbf6/0x15f0 net/ipv6/ndisc.c:513
 addrconf_rs_timer+0x357/0x610 net/ipv6/addrconf.c:3982
 call_timer_fn+0x1ad/0x6b0 kernel/time/timer.c:1504
 expire_timers kernel/time/timer.c:1549 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1820
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
 handle_softirqs+0x2ee/0xa40 kernel/softirq.c:578
 __do_softirq kernel/softirq.c:612 [inline]
 invoke_softirq kernel/softirq.c:452 [inline]
 __irq_exit_rcu+0x157/0x240 kernel/softirq.c:661
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:673
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1118 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1118
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:691
RIP: 0010:__phys_addr+0x0/0x170 arch/x86/mm/physaddr.c:16
Code: 24 60 75 14 b8 01 00 00 00 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 cd 96 73 09 cc cc cc cc cc cc cc cc cc cc cc cc cc <41> 57 41 56 53 49 89 fe e8 b3 be 4c 00 48 bf ff ff ff 7f ff ff ff
RSP: 0018:ffffc900044ef160 EFLAGS: 00000292
RAX: 0000000000000001 RBX: ffff8881401a77d0 RCX: 0000000000080000
RDX: ffffc900055c2000 RSI: ffffffff8b5f6f60 RDI: ffff8881401a77d0
RBP: 0000000000000000 R08: dffffc0000000000 R09: fffffbfff2e827d5
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888059001e98
R13: ffff888059001ea0 R14: ffffffff81d45a02 R15: dffffc0000000000
 virt_to_folio include/linux/mm.h:902 [inline]
 kfree+0x42/0x190 mm/slab_common.c:980
 __vunmap+0x962/0xa30 mm/vmalloc.c:2724
 bpf_check+0xef3e/0x16240 kernel/bpf/verifier.c:15690
 bpf_prog_load+0x1311/0x1bf0 kernel/bpf/syscall.c:2638
 __sys_bpf+0x382/0x6c0 kernel/bpf/syscall.c:5017
 __do_sys_bpf kernel/bpf/syscall.c:5121 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5119 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5119
 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:0x7f9a6498d169
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:00007f9a65801038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f9a64ba5fa0 RCX: 00007f9a6498d169
RDX: 0000000000000080 RSI: 0000200000000180 RDI: 0000000000000005
RBP: 00007f9a64a0e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f9a64ba5fa0 R15: 00007ffc366d4848
 </TASK>

Crashes (19):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/27 09:36 linux-6.1.y 344a09659766 20510e88 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/03/06 15:09 linux-6.1.y 3a8358583626 831e3629 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/01/30 04:08 linux-6.1.y 75cefdf153f5 afe4eff5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_bpf
2024/12/06 14:51 linux-6.1.y e4d90d63d385 946d28f0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/10/01 18:12 linux-6.1.y aa4cd140bba5 ea2b66a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/09/10 18:08 linux-6.1.y 5ca5b389fddf 86aa7bd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/05 08:06 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/05 01:35 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/04 07:01 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/04 04:28 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/04 00:38 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/03 21:55 linux-6.1.y 48d525b0e463 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/07/18 09:06 linux-6.1.y cac15753b8ce 0f902625 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_bpf
2024/06/27 10:39 linux-6.1.y eb44d83053d6 6ef39602 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/06/25 04:49 linux-6.1.y eb44d83053d6 215eef4a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_bpf
2024/05/19 08:59 linux-6.1.y 4078fa637fcd c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/05/19 05:53 linux-6.1.y 4078fa637fcd c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/04/20 10:26 linux-6.1.y 6741e066ec76 af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2024/07/31 07:20 linux-6.1.y c1cec4dad96b 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 INFO: rcu detected stall in sys_bpf
* Struck through repros no longer work on HEAD.