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: 30d, last: 1d18h
Similar bugs (11)
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 849d 942d 0/26 closed as invalid on 2022/02/08 10:34
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 2 13d 41d 0/3 upstream: reported on 2024/04/09 19:57
upstream INFO: rcu detected stall in sys_bpf (3) bpf 4 1594d 1594d 0/26 closed as invalid on 2020/01/09 08:13
linux-5.15 INFO: rcu detected stall in sys_bpf 2 165d 208d 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 1761d 1881d 0/26 auto-closed as invalid on 2019/11/23 00:18
upstream INFO: rcu detected stall in sys_bpf (2) bpf 12 1629d 1631d 0/26 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 184d 184d 0/26 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-4.19 INFO: rcu detected stall in sys_bpf 3 1578d 1708d 0/1 auto-closed as invalid on 2020/05/23 14:47
upstream INFO: rcu detected stall in sys_bpf (6) net 7 660d 810d 0/26 auto-obsoleted due to no activity on 2022/10/28 06:32
upstream INFO: rcu detected stall in sys_bpf (4) bpf net 3 1547d 1586d 0/26 auto-closed as invalid on 2020/05/24 13:03
android-5-15 BUG: soft lockup in sys_bpf origin:lts C 67 19h47m 52d 0/2 upstream: reported C repro on 2024/03/29 12:25

Sample crash report:
rcu: INFO: rcu_preempt detected expedited stalls on CPUs/tasks: { 1-.... } 2675 jiffies s: 1845 root: 0x2/.
rcu: blocking rcu_node structures (internal RCU debug):
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3822 Comm: syz-executor.4 Not tainted 6.1.91-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:lock_release+0x5ad/0xa20
Code: 4c 89 fa 49 bf 00 00 00 00 00 fc ff df 4d 85 e4 0f 85 e4 fc ff ff 48 8b 7c 24 10 48 8b 74 24 18 48 8b 54 24 48 e8 03 84 00 00 <4c> 8b 64 24 08 4c 8b 6c 24 20 4c 8d b4 24 90 00 00 00 48 c7 c7 40
RSP: 0018:ffffc900001e0300 EFLAGS: 00000046
RAX: 1ffff11004553c82 RBX: ffff888022a9e410 RCX: ffffc900001e0303
RDX: 0000000000000007 RSI: ffff888022a9e418 RDI: ffff888022a9e538
RBP: ffffc900001e0430 R08: dffffc0000000000 R09: fffffbfff1ce710e
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff888022a9e538
R13: 0000000000000007 R14: 3c1faf250e2e9dab R15: dffffc0000000000
FS:  00007fe169df66c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b33b21000 CR3: 0000000023b88000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 rcu_lock_release include/linux/rcupdate.h:355 [inline]
 rcu_read_unlock include/linux/rcupdate.h:824 [inline]
 trace_call_bpf+0x5cd/0x6a0 kernel/trace/bpf_trace.c:137
 perf_trace_run_bpf_submit+0x7b/0x1d0 kernel/events/core.c:9924
 perf_trace_preemptirq_template+0x2d1/0x3d0 include/trace/events/preemptirq.h:14
 trace_irq_enable_rcuidle+0xd5/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:679
RIP: 0010:rcu_read_unlock_special+0x84/0x540 kernel/rcu/tree_plugin.h:682
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 3d 5b 8e 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:ffffc900001e0780 EFLAGS: 00000206
RAX: a1e331d622b8db00 RBX: 1ffff9200003c0f8 RCX: ffffffff816acf0a
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffffffff8b3d4560
RBP: ffffc900001e0858 R08: dffffc0000000000 R09: fffffbfff2093863
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d12fb00
R13: ffff888022a9dd98 R14: ffffc900001e07c0 R15: 1ffff9200003c0f4
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 ndisc_send_skb+0xd68/0x14e0 net/ipv6/ndisc.c:517
 addrconf_rs_timer+0x357/0x610 net/ipv6/addrconf.c:3962
 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
 __do_softirq+0x2e9/0xa4c kernel/softirq.c:571
 invoke_softirq kernel/softirq.c:445 [inline]
 __irq_exit_rcu+0x155/0x240 kernel/softirq.c:650
 irq_exit_rcu+0x5/0x20 kernel/softirq.c:662
 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:__text_poke+0x7f9/0x9a0 arch/x86/kernel/alternative.c:1216
Code: 4c 89 f7 e8 e9 53 b0 00 f6 84 24 21 01 00 00 02 0f 85 9b 00 00 00 41 f7 c7 00 02 00 00 48 8b 5c 24 48 74 01 fb 48 8b 44 24 70 <42> 80 3c 20 00 74 0d 48 8d bc 24 60 01 00 00 e8 b3 53 b0 00 48 8b
RSP: 0018:ffffc90004837a00 EFLAGS: 00000206
RAX: 1ffff92000906f6c RBX: ffffffff8195119f RCX: ffffffff816acf0a
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffffffff8b3d4560
RBP: ffffc90004837bd0 R08: dffffc0000000000 R09: fffffbfff2093845
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000906f50 R14: ffffc90004837b20 R15: 0000000000000246
 text_poke arch/x86/kernel/alternative.c:1240 [inline]
 text_poke_bp_batch+0x153/0x940 arch/x86/kernel/alternative.c:1531
 text_poke_flush arch/x86/kernel/alternative.c:1725 [inline]
 text_poke_finish+0x16/0x30 arch/x86/kernel/alternative.c:1732
 arch_jump_label_transform_apply+0x13/0x20 arch/x86/kernel/jump_label.c:146
 static_key_slow_inc_cpuslocked+0x12a/0x220 kernel/jump_label.c:144
 static_key_slow_inc+0x16/0x20 kernel/jump_label.c:159
 bpf_enable_runtime_stats kernel/bpf/syscall.c:4840 [inline]
 bpf_enable_stats+0xfe/0x140 kernel/bpf/syscall.c:4859
 __sys_bpf+0x60a/0x6c0 kernel/bpf/syscall.c:5088
 __do_sys_bpf kernel/bpf/syscall.c:5109 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5107 [inline]
 __x64_sys_bpf+0x78/0x90 kernel/bpf/syscall.c:5107
 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:0x7fe16b27cee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe169df60c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fe16b3abf80 RCX: 00007fe16b27cee9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000020
RBP: 00007fe16b2c949e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fe16b3abf80 R15: 00007ffd0c78c5c8
 </TASK>

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
* Struck through repros no longer work on HEAD.