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: 13d, last: 13d
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 832d 925d 0/26 closed as invalid on 2022/02/08 10:34
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 1 24d 24d 0/3 upstream: reported on 2024/04/09 19:57
upstream INFO: rcu detected stall in sys_bpf (3) bpf 4 1577d 1577d 0/26 closed as invalid on 2020/01/09 08:13
linux-5.15 INFO: rcu detected stall in sys_bpf 2 148d 191d 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 1744d 1864d 0/26 auto-closed as invalid on 2019/11/23 00:18
upstream INFO: rcu detected stall in sys_bpf (2) bpf 12 1612d 1614d 0/26 closed as invalid on 2019/12/04 14:14
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 166d 166d 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 1561d 1691d 0/1 auto-closed as invalid on 2020/05/23 14:47
upstream INFO: rcu detected stall in sys_bpf (6) net 7 643d 793d 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 1530d 1569d 0/26 auto-closed as invalid on 2020/05/24 13:03
android-5-15 BUG: soft lockup in sys_bpf origin:lts C 44 21h32m 35d 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: { 0-.... } 2656 jiffies s: 11637 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: 6561 Comm: syz-executor.4 Not tainted 6.1.87-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:instrument_atomic_read include/linux/instrumented.h:72 [inline]
RIP: 0010:_test_bit include/asm-generic/bitops/instrumented-non-atomic.h:141 [inline]
RIP: 0010:hlock_class kernel/locking/lockdep.c:228 [inline]
RIP: 0010:check_wait_context kernel/locking/lockdep.c:4748 [inline]
RIP: 0010:__lock_acquire+0x782/0x1f80 kernel/locking/lockdep.c:4999
Code: e8 48 c1 e8 03 0f b6 04 10 84 c0 0f 85 2f 01 00 00 41 8b 5d 00 81 e3 ff 1f 00 00 48 89 d8 48 c1 e8 06 48 8d 3c c5 20 a2 49 90 <be> 08 00 00 00 e8 b4 96 77 00 48 0f a3 1d 9c 30 df 0e 73 1b 48 8d
RSP: 0018:ffffc90000007540 EFLAGS: 00000047
RAX: 0000000000000000 RBX: 000000000000002c RCX: 0000000000000001
RDX: dffffc0000000000 RSI: ffff88805d1d28a0 RDI: ffffffff9049a220
RBP: ffff88805d1d28c0 R08: dffffc0000000000 R09: fffffbfff2093445
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: ffff88805d1d28c0 R14: 0000000000000000 R15: 1ffff1100ba3a502
FS:  00007f343108c6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b32025000 CR3: 00000000296ac000 CR4: 00000000003506f0
DR0: 0080ffff00000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <IRQ>
 lock_acquire+0x1f8/0x5a0 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+0xdf/0x6a0 kernel/trace/bpf_trace.c:134
 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 2d 59 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:ffffc90000007ac0 EFLAGS: 00000206
RAX: c5fb51392c5c5300 RBX: 1ffff92000000f60 RCX: ffffffff91c92103
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: ffffffff8b3d4320
RBP: ffffc90000007ba0 R08: ffffffff81b624bc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8d12fb00
R13: ffff88805d1d2218 R14: ffffc90000007b00 R15: 1ffff92000000f5c
 __rcu_read_unlock+0x92/0x100 kernel/rcu/tree_plugin.h:426
 rcu_read_unlock include/linux/rcupdate.h:823 [inline]
 ieee80211_iterate_active_interfaces_atomic+0x153/0x170 net/mac80211/util.c:826
 mac80211_hwsim_beacon+0xd0/0x1e0 drivers/net/wireless/mac80211_hwsim.c:2142
 __run_hrtimer kernel/time/hrtimer.c:1686 [inline]
 __hrtimer_run_queues+0x5e5/0xe50 kernel/time/hrtimer.c:1750
 hrtimer_run_softirq+0x196/0x2c0 kernel/time/hrtimer.c:1767
 __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: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 f9 43 cb f6 e8 84 43 fe f6 fb bf 01 00 00 00 <e8> 99 b4 ff ff 43 80 7c 3d 00 00 74 08 4c 89 f7 e8 d9 f8 4e f7 48
RSP: 0018:ffffc90004936da0 EFLAGS: 00000286
RAX: c5fb51392c5c5300 RBX: 1ffff92000926dbc RCX: ffffffff91c92103
RDX: dffffc0000000000 RSI: ffffffff8aec01c0 RDI: 0000000000000001
RBP: ffffc90004936e50 R08: ffffffff81b624bc R09: ffffed1017306ad6
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff92000926db4
R13: 1ffff92000926db8 R14: ffffc90004936dc0 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:memcpy_erms+0x8/0x10 arch/x86/lib/memcpy_64.S:57
Code: ff cc eb 1e 0f 1f 00 48 89 f8 48 89 d1 48 c1 e9 03 83 e2 07 f3 48 a5 89 d1 f3 a4 c3 66 0f 1f 44 00 00 48 89 f8 48 89 d1 f3 a4 <c3> 0f 1f 80 00 00 00 00 48 89 f8 48 83 fa 20 72 7e 40 38 fe 7c 35
RSP: 0018:ffffc90004936f10 EFLAGS: 00000296
RAX: ffff8880586434a0 RBX: ffff8881436e88c0 RCX: 0000000000000000
RDX: 0000000000000008 RSI: ffff8881436e88c8 RDI: ffff8880586434a8
RBP: ffff8880586434a0 R08: 0000000000000020 R09: 0000000000000001
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88805d38d070
R13: dffffc0000000000 R14: 0000000000100cc0 R15: 0000000000000008
 __do_krealloc mm/slab_common.c:1352 [inline]
 krealloc+0x81/0xf0 mm/slab_common.c:1381
 push_jmp_history kernel/bpf/verifier.c:2542 [inline]
 is_state_visited kernel/bpf/verifier.c:12330 [inline]
 do_check kernel/bpf/verifier.c:12527 [inline]
 do_check_common+0x78bf/0xc1d0 kernel/bpf/verifier.c:15006
 do_check_main kernel/bpf/verifier.c:15069 [inline]
 bpf_check+0x1039b/0x15ea0 kernel/bpf/verifier.c:15646
 bpf_prog_load+0x12df/0x1bb0 kernel/bpf/syscall.c:2631
 __sys_bpf+0x382/0x6c0 kernel/bpf/syscall.c:5005
 __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:0x7f343027dea9
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:00007f343108c0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f34303abf80 RCX: 00007f343027dea9
RDX: 0000000000000048 RSI: 00000000200054c0 RDI: 0000000000000005
RBP: 00007f34302ca4a4 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f34303abf80 R15: 00007ffe0a2271c8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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.