syzbot


INFO: rcu detected stall in sys_bpf (2)

Status: upstream: reported on 2024/04/09 19:57
Reported-by: syzbot+4ca114518ed3e3b28ead@syzkaller.appspotmail.com
First crash: 373d, last: 65d
Similar bugs (14)
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 1181d 1274d 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 84d 324d 0/28 auto-obsoleted due to no activity on 2025/04/03 05:23
upstream INFO: rcu detected stall in sys_bpf (3) bpf 4 1926d 1926d 0/28 closed as invalid on 2020/01/09 08:13
linux-5.15 INFO: rcu detected stall in sys_bpf 2 497d 540d 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 2092d 2213d 0/28 auto-closed as invalid on 2019/11/23 00:18
upstream INFO: rcu detected stall in sys_bpf (2) bpf 12 1961d 1963d 0/28 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 515d 515d 0/28 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-6.1 INFO: rcu detected stall in sys_bpf 19 21d 362d 0/3 upstream: reported on 2024/04/20 10:27
linux-4.19 INFO: rcu detected stall in sys_bpf 3 1910d 2040d 0/1 auto-closed as invalid on 2020/05/23 14:47
upstream INFO: rcu detected stall in sys_bpf (6) net 7 992d 1142d 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 1879d 1918d 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 217d 384d 0/2 upstream: reported C repro on 2024/03/29 12:25
upstream BUG: soft lockup in sys_bpf kernel 1 12d 8d13h 0/28 moderation: reported on 2025/04/09 10:37
android-5-10 BUG: soft lockup in sys_bpf 2 297d 301d 0/2 auto-obsoleted due to no activity on 2024/09/22 11:37

Sample crash report:
rcu: INFO: rcu_preempt detected stalls on CPUs/tasks:
rcu: 	0-....: (1 GPs behind) idle=d03/1/0x4000000000000002 softirq=32667/32668 fqs=5241 
	(detected by 1, t=10502 jiffies, g=41625, q=920)
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 10418 Comm: syz.6.1669 Not tainted 5.15.178-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:172 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0xc/0x60 kernel/kcov.c:206
Code: 89 fb e8 17 00 00 00 48 8b 3d 18 04 8a 0c 48 89 de 5b e9 47 11 49 00 cc cc cc cc cc cc cc 48 8b 04 24 65 48 8b 0d 24 ea 81 7e <65> 8b 15 25 ea 81 7e 81 e2 00 01 ff 00 74 11 81 fa 00 01 00 00 75
RSP: 0018:ffffc90000006fb8 EFLAGS: 00000046
RAX: ffffffff818ce856 RBX: 1ffff110171c7639 RCX: ffff88801c64bb80
RDX: ffff8880b8e3b350 RSI: 0000000000000000 RDI: ffff8880b8e3b1b0
RBP: ffffc900000070d8 R08: dffffc0000000000 R09: ffff8880b8e3b1b0
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff110171c766a
R13: ffff8880b8e3b1c8 R14: ffff8880b8e3b1b0 R15: 0000000000000000
FS:  00007f05b99ee6c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000002100 CR3: 00000000320b2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 irq_work_queue_on+0x16/0x240 kernel/irq_work.c:89
 rcu_read_unlock_special+0x39e/0x520 kernel/rcu/tree_plugin.h:664
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:771 [inline]
 BPF_PROG_RUN_ARRAY include/linux/bpf.h:1346 [inline]
 trace_call_bpf+0x5a1/0x660 kernel/trace/bpf_trace.c:127
 perf_trace_run_bpf_submit+0x7b/0x1d0 kernel/events/core.c:9991
 perf_trace_preemptirq_template+0x31d/0x430 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0x10e/0x190 include/trace/events/preemptirq.h:40
 trace_hardirqs_on+0x57/0x80 kernel/trace/trace_preemptirq.c:44
 asm_sysvec_irq_work+0x16/0x20 arch/x86/include/asm/idtentry.h:713
RIP: 0010:rcu_read_unlock_special+0x84/0x520 kernel/rcu/tree_plugin.h:671
Code: f1 f1 f1 00 f2 f2 f2 49 89 04 17 66 41 c7 44 17 09 f3 f3 41 c6 44 17 0b f3 65 44 8b 25 4d 82 96 7e 41 f7 c4 00 00 f0 00 74 45 <48> c7 44 24 20 0e 36 e0 45 4a c7 04 3a 00 00 00 00 66 42 c7 44 3a
RSP: 0018:ffffc90000007480 EFLAGS: 00000206
RAX: 79285f9005144a00 RBX: 1ffff92000000e98 RCX: ffffffff81633dd8
RDX: dffffc0000000000 RSI: ffffffff8aab2b80 RDI: ffffffff8af9f2c0
RBP: ffffc90000007550 R08: dffffc0000000000 R09: fffffbfff2131839
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8cb23d00
R13: ffff88801c64bfd8 R14: ffffc900000074c0 R15: 1ffff92000000e94
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:422
 rcu_read_unlock include/linux/rcupdate.h:771 [inline]
 __ip_queue_xmit+0x1360/0x1d90 net/ipv4/ip_output.c:533
 __tcp_transmit_skb+0x1f39/0x3810 net/ipv4/tcp_output.c:1404
 tcp_transmit_skb net/ipv4/tcp_output.c:1422 [inline]
 __tcp_retransmit_skb+0x9f4/0x1580 net/ipv4/tcp_output.c:3267
 tcp_retransmit_skb+0x2e/0x3a0 net/ipv4/tcp_output.c:3290
 tcp_retransmit_timer+0x14c9/0x2680 net/ipv4/tcp_timer.c:570
 tcp_write_timer_handler+0x1f7/0x970 net/ipv4/tcp_timer.c:655
 tcp_write_timer+0x12e/0x280 net/ipv4/tcp_timer.c:675
 call_timer_fn+0x16d/0x560 kernel/time/timer.c:1451
 expire_timers kernel/time/timer.c:1496 [inline]
 __run_timers+0x67c/0x890 kernel/time/timer.c:1767
 run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1780
 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
 instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
 sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
 </IRQ>
 <TASK>
 asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:unwind_next_frame+0x4b/0x1fa0 arch/x86/kernel/unwind_orc.c:424
Code: 48 48 89 d9 48 c1 e9 03 48 89 4c 24 28 80 3c 01 00 74 12 48 89 df e8 c4 c4 91 00 48 b8 00 00 00 00 00 fc ff df 48 89 5c 24 08 <4d> 8b 77 48 49 8d 6f 38 48 89 e9 48 c1 e9 03 48 89 4c 24 48 80 3c
RSP: 0018:ffffc90002ffeee8 EFLAGS: 00000246
RAX: dffffc0000000000 RBX: ffffc90002ffefe8 RCX: 1ffff920005ffdfd
RDX: dffffc0000000000 RSI: ffffffff818e8f23 RDI: ffffc90002ffefa0
RBP: ffffc90002fff030 R08: 0000000000000008 R09: ffffc90002fff090
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88801c64bb80
R13: ffffffff816e19f0 R14: ffffc90002fff080 R15: ffffc90002ffefa0
 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
 free_states kernel/bpf/verifier.c:13413 [inline]
 do_check_common+0xce1/0x1070 kernel/bpf/verifier.c:13497
 do_check_main kernel/bpf/verifier.c:13548 [inline]
 bpf_check+0xcb96/0x12d40 kernel/bpf/verifier.c:14119
 bpf_prog_load+0x12b3/0x1b60 kernel/bpf/syscall.c:2353
 __sys_bpf+0x343/0x670 kernel/bpf/syscall.c:4656
 __do_sys_bpf kernel/bpf/syscall.c:4760 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4758 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:4758
 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:0x7f05bbb84de9
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:00007f05b99ee038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f05bbd9dfa0 RCX: 00007f05bbb84de9
RDX: 0000000000000048 RSI: 0000400000000200 RDI: 0000000000000005
RBP: 00007f05bbc062a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f05bbd9dfa0 R15: 00007ffeafcfb518
 </TASK>

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/11 22:43 linux-5.15.y c16c81c81336 f2baddf5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2025/01/08 07:49 linux-5.15.y 91786f140358 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/10/21 01:03 linux-5.15.y 584a40a22cb9 cd6fc0a3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/10/07 23:10 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/10/04 09:26 linux-5.15.y 3a5928702e71 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/09/29 02:49 linux-5.15.y 3a5928702e71 ba29ff75 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/09/11 06:26 linux-5.15.y 14e468424d3e 8ab55d0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/09/03 20:34 linux-5.15.y fa93fa65db6e 326f9c5a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/09/01 03:43 linux-5.15.y fa93fa65db6e 1eda0d14 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/17 16:09 linux-5.15.y 7e89efd3ae1c dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/08/05 21:48 linux-5.15.y 7e89efd3ae1c e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-perf INFO: rcu detected stall in sys_bpf
2024/06/17 17:38 linux-5.15.y 4878aadf2d15 1f11cfd7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_bpf
2024/06/12 09:15 linux-5.15.y c61bd26ae81a 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_bpf
2024/05/28 06:04 linux-5.15.y c61bd26ae81a f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_bpf
2024/05/07 13:28 linux-5.15.y 284087d4f7d5 cb2dcc0e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_bpf
2024/04/09 19:57 linux-5.15.y 9465fef4ae35 171ec371 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan INFO: rcu detected stall in sys_bpf
* Struck through repros no longer work on HEAD.