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: 494d, last: 2d00h
Similar bugs (16)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: rcu detected stall in sys_bpf (5) bpf 1 C unreliable 56 1313d 1406d 0/29 closed as invalid on 2022/02/08 10:34
upstream INFO: rcu detected stall in sys_bpf (9) net bpf 1 C error 74 217d 456d 0/29 auto-obsoleted due to no activity on 2025/04/03 05:23
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 1 33 2d07h 505d 0/3 upstream: reported on 2024/04/09 19:57
upstream INFO: rcu detected stall in sys_bpf (3) bpf 1 4 2058d 2058d 0/29 closed as invalid on 2020/01/09 08:13
linux-5.15 INFO: rcu detected stall in sys_bpf 1 2 629d 672d 0/3 auto-obsoleted due to no activity on 2024/03/16 17:33
upstream INFO: rcu detected stall in sys_bpf bpf net 1 3 2225d 2345d 0/29 auto-closed as invalid on 2019/11/23 00:18
upstream INFO: rcu detected stall in sys_bpf (2) bpf 1 12 2093d 2095d 0/29 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 1 648d 648d 0/29 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-4.19 INFO: rcu detected stall in sys_bpf 1 3 2042d 2172d 0/1 auto-closed as invalid on 2020/05/23 14:47
upstream BUG: soft lockup in sys_bpf mm 1 28 1d22h 126d 0/29 upstream: reported on 2025/04/23 05:48
upstream INFO: rcu detected stall in sys_bpf (6) net 1 7 1124d 1275d 0/29 auto-obsoleted due to no activity on 2022/10/28 06:32
upstream INFO: rcu detected stall in sys_bpf (4) bpf net 1 3 2011d 2050d 0/29 auto-closed as invalid on 2020/05/24 13:03
linux-6.6 INFO: rcu detected stall in sys_bpf origin:lts-only 1 C 21 7h12m 17d 0/2 upstream: reported C repro on 2025/08/10 11:50
android-54 BUG: soft lockup in sys_bpf 1 1 194d 194d 0/2 auto-obsoleted due to no activity on 2025/05/15 12:21
android-5-15 BUG: soft lockup in sys_bpf origin:upstream 1 C error 108 349d 516d 0/2 upstream: reported C repro on 2024/03/29 12:25
android-5-10 BUG: soft lockup in sys_bpf 1 2 429d 433d 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-.... } 2687 jiffies s: 42141 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: 9302 Comm: syz.5.1534 Not tainted 6.1.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4723 [inline]
RIP: 0010:__lock_acquire+0x53a/0x7c50 kernel/locking/lockdep.c:4999
Code: 81 e3 ff 1f 00 00 41 c1 ed 03 41 81 e5 f8 03 00 00 49 8d bd 40 e2 ad 90 be 08 00 00 00 e8 de f0 6d 00 48 0f a3 1d 86 f6 4a 0f <73> 1f 48 8d 04 5b c1 e0 06 48 8d 98 00 61 46 90 48 ba 00 00 00 00
RSP: 0018:ffffc90000007240 EFLAGS: 00000057
RAX: 0000000000000001 RBX: 000000000000002c RCX: ffffffff8162ebb2
RDX: 0000000000000000 RSI: 0000000000000008 RDI: ffffffff90ade240
RBP: ffffc90000007490 R08: dffffc0000000000 R09: fffffbfff215bc49
R10: fffffbfff215bc49 R11: 1ffffffff215bc48 R12: ffff8880562a5940
R13: 0000000000000000 R14: 0000000000000000 R15: 000000000000002c
FS:  00007f3fa835b6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000001 CR3: 000000001f2d7000 CR4: 00000000003506f0
DR0: 0000200000000300 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 lock_acquire+0x1b4/0x490 kernel/locking/lockdep.c:5662
 rcu_lock_acquire include/linux/rcupdate.h:350 [inline]
 rcu_read_lock include/linux/rcupdate.h:791 [inline]
 trace_call_bpf+0xe0/0x680 kernel/trace/bpf_trace.c:134
 perf_trace_run_bpf_submit+0x79/0x1c0 kernel/events/core.c:9997
 perf_trace_preemptirq_template+0x287/0x330 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0xd3/0x140 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x24/0x40 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:728
RIP: 0010:rcu_read_unlock_special+0x84/0x500 kernel/rcu/tree_plugin.h:682
Code: f1 f1 f1 00 f2 f2 f2 4a 89 04 2b 66 42 c7 44 2b 09 f3 f3 42 c6 44 2b 0b f3 65 44 8b 35 fd a7 96 7e 41 f7 c6 00 00 f0 00 74 45 <48> c7 44 24 40 0e 36 e0 45 4a c7 04 2b 00 00 00 00 66 42 c7 44 2b
RSP: 0018:ffffc90000007900 EFLAGS: 00000206
RAX: 20edd6fab99a1100 RBX: 1ffff92000000f28 RCX: 20edd6fab99a1100
RDX: dffffc0000000000 RSI: ffffffff8a8c0420 RDI: ffffffff8adef6a0
RBP: ffffc90000007a00 R08: dffffc0000000000 R09: fffffbfff215bc62
R10: fffffbfff215bc62 R11: 1ffffffff215bc61 R12: 0000000000000246
R13: dffffc0000000000 R14: ffff8880b8e3b900 R15: 0000000000000001
 __rcu_read_unlock+0x78/0xd0 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 aoecmd_cfg_pkts drivers/block/aoe/aoecmd.c:450 [inline]
 aoecmd_cfg+0x97e/0x9f0 drivers/block/aoe/aoecmd.c:1374
 call_timer_fn+0x1a0/0x670 kernel/time/timer.c:1504
 expire_timers kernel/time/timer.c:1549 [inline]
 __run_timers+0x525/0x7c0 kernel/time/timer.c:1820
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1833
 handle_softirqs+0x2a1/0x920 kernel/softirq.c:596
 __do_softirq kernel/softirq.c:630 [inline]
 invoke_softirq kernel/softirq.c:470 [inline]
 __irq_exit_rcu+0x12f/0x220 kernel/softirq.c:679
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:691
 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:seqcount_lockdep_reader_access+0x126/0x170 include/linux/seqlock.h:105
Code: 9f c0 ff 48 c7 44 24 20 00 00 00 00 9c 8f 44 24 20 f6 44 24 21 02 75 47 41 f7 c5 00 02 00 00 74 01 fb 48 c7 04 24 0e 36 e0 45 <4b> c7 04 27 00 00 00 00 66 43 c7 44 27 09 00 00 43 c6 44 27 0b 00
RSP: 0018:ffffc90004eb78c0 EFLAGS: 00000206
RAX: 20edd6fab99a1100 RBX: ffff88813fffa7c8 RCX: 20edd6fab99a1100
RDX: dffffc0000000000 RSI: ffffffff8a8c0420 RDI: ffffffff8adef6a0
RBP: ffffc90004eb7978 R08: dffffc0000000000 R09: ffffed10171c6af6
R10: ffffed10171c6af6 R11: 1ffff110171c6af5 R12: dffffc0000000000
R13: 0000000000000a06 R14: ffffffff81c6779a R15: 1ffff920009d6f18
 read_seqbegin include/linux/seqlock.h:893 [inline]
 zone_span_seqbegin include/linux/memory_hotplug.h:132 [inline]
 page_outside_zone_boundaries mm/page_alloc.c:627 [inline]
 bad_range+0x7a/0x2d0 mm/page_alloc.c:654
 rmqueue mm/page_alloc.c:3887 [inline]
 get_page_from_freelist+0x1a0a/0x1ac0 mm/page_alloc.c:4325
 __alloc_pages+0x1df/0x4e0 mm/page_alloc.c:5614
 __alloc_pages_node include/linux/gfp.h:237 [inline]
 alloc_pages_node include/linux/gfp.h:260 [inline]
 bpf_ringbuf_area_alloc kernel/bpf/ringbuf.c:132 [inline]
 bpf_ringbuf_alloc+0x251/0x560 kernel/bpf/ringbuf.c:169
 ringbuf_map_alloc+0x1bf/0x2f0 kernel/bpf/ringbuf.c:210
 find_and_alloc_map kernel/bpf/syscall.c:131 [inline]
 map_create+0x531/0xe30 kernel/bpf/syscall.c:1146
 __sys_bpf+0x2f3/0x6d0 kernel/bpf/syscall.c:5002
 __do_sys_bpf kernel/bpf/syscall.c:5124 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5122 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5122
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f3fa758ebe9
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:00007f3fa835b038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f3fa77b6090 RCX: 00007f3fa758ebe9
RDX: 0000000000000048 RSI: 00002000000000c0 RDI: 0000000000000000
RBP: 00007f3fa7611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f3fa77b6128 R14: 00007f3fa77b6090 R15: 00007ffcb9e8d188
 </TASK>

Crashes (27):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/26 04:33 linux-6.1.y 0bc96de781b4 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/08/19 09:27 linux-6.1.y 0bc96de781b4 523f460e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/08/16 06:08 linux-6.1.y 0bc96de781b4 1804e95e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/07/25 21:37 linux-6.1.y 3594f306da12 fb8f743d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/07/11 06:26 linux-6.1.y dfc486ec9cce 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/07/11 04:32 linux-6.1.y dfc486ec9cce 3cda49cf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/06/27 03:21 linux-6.1.y 58485ff1a74f 803ce19b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-perf INFO: rcu detected stall in sys_bpf
2025/05/02 02:01 linux-6.1.y 535ec20c5027 51b137cd .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan INFO: rcu detected stall in sys_bpf
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.