syzbot


BUG: soft lockup in bpf_link_release

Status: premoderation: reported on 2024/11/05 21:37
Reported-by: syzbot+34d518d098b7c45dd6d0@syzkaller.appspotmail.com
First crash: 149d, last: 66d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in bpf_link_release 18 241d 361d 0/2 auto-obsoleted due to no activity on 2024/11/03 19:01
upstream INFO: rcu detected stall in bpf_link_release (3) mm 1 159d 159d 0/28 auto-obsoleted due to no activity on 2025/01/25 11:31
upstream INFO: rcu detected stall in bpf_link_release (2) kernel 1 874d 874d 0/28 auto-obsoleted due to no activity on 2023/02/13 11:46
upstream INFO: rcu detected stall in bpf_link_release kernel 1 1189d 1189d 0/28 closed as invalid on 2022/02/08 10:10

Sample crash report:
RBP: 00007f5371fa7ba0 R08: 00000000000000cc R09: 00007fff0261ac4f
R10: 00000000003ffd10 R11: 0000000000000246 R12: 000000000032a29e
R13: 00007fff0261aa60 R14: 0000000000000032 R15: ffffffffffffffff
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 246s! [syz.1.15613:21969]
Modules linked in:
CPU: 1 PID: 21969 Comm: syz.1.15613 Not tainted 6.1.121-syzkaller-00998-g11620ab958c2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:209
Code: 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 53 48 89 fb e8 13 00 00 00 48 8b 3d a4 3f 1d 06 48 89 de e8 14 be 46 00 5b 5d c3 cc <55> 48 89 e5 48 8b 45 08 65 48 8b 0d a0 db 8c 7e 65 8b 15 a1 db 8c
RSP: 0018:ffffc9000326f798 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 1ffff1103edc7a99 RCX: ffff888118e7a880
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000326f8b8 R08: ffffffff816bf9e3 R09: ffffed103ede71fb
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000800000000 R14: ffff8881f6e3d4c8 R15: dffffc0000000000
FS:  00005555709d5500(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000001 CR3: 0000000196b7a000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 on_each_cpu_cond_mask+0x40/0x80 kernel/smp.c:1166
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1334 [inline]
 text_poke_bp_batch+0x1e9/0x730 arch/x86/kernel/alternative.c:1534
 text_poke_flush arch/x86/kernel/alternative.c:1725 [inline]
 text_poke_finish+0x1a/0x30 arch/x86/kernel/alternative.c:1732
 arch_jump_label_transform_apply+0x15/0x30 arch/x86/kernel/jump_label.c:146
 __jump_label_update+0x36a/0x380 kernel/jump_label.c:451
 jump_label_update+0x3af/0x450 kernel/jump_label.c:797
 static_key_disable_cpuslocked+0xd1/0x1b0 kernel/jump_label.c:203
 static_key_disable+0x1a/0x30 kernel/jump_label.c:211
 tracepoint_remove_func kernel/tracepoint.c:417 [inline]
 tracepoint_probe_unregister+0x60a/0x900 kernel/tracepoint.c:551
 bpf_probe_unregister+0x61/0x70 kernel/trace/bpf_trace.c:2358
 bpf_raw_tp_link_release+0x63/0x90 kernel/bpf/syscall.c:3170
 bpf_link_free+0x129/0x3f0 kernel/bpf/syscall.c:2744
 bpf_link_put kernel/bpf/syscall.c:2770 [inline]
 bpf_link_release+0x170/0x180 kernel/bpf/syscall.c:2779
 __fput+0x1e5/0x870 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x24d/0x2e0 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x94/0xa0 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x26/0x130 kernel/entry/common.c:303
 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5371d8cd29
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:00007fff0261a958 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f5371fa7ba0 RCX: 00007f5371d8cd29
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f5371fa7ba0 R08: 00000000000000cc R09: 00007fff0261ac4f
R10: 00000000003ffd10 R11: 0000000000000246 R12: 000000000032a29e
R13: 00007fff0261aa60 R14: 0000000000000032 R15: ffffffffffffffff
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 21971 Comm: syz.4.15610 Not tainted 6.1.121-syzkaller-00998-g11620ab958c2 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:native_halt arch/x86/include/asm/irqflags.h:57 [inline]
RIP: 0010:halt arch/x86/include/asm/irqflags.h:98 [inline]
RIP: 0010:kvm_wait+0x117/0x180 arch/x86/kernel/kvm.c:1058
Code: 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 53 41 0f b6 45 00 44 38 f0 0f 85 63 ff ff ff 66 90 0f 00 2d 5a e2 50 04 f4 <e9> 54 ff ff ff fa 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b
RSP: 0018:ffffc900048072c0 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92000900e5c RCX: ffffffff8522564c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff888110d51140
RBP: ffffc90004807370 R08: dffffc0000000000 R09: ffffed10221aa229
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888110d51140 R14: 0000000000000003 R15: 1ffff92000900e60
FS:  00007fe6a95ff6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000100000001 CR3: 0000000138916000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6de/0xda0 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
 _raw_spin_lock_irqsave+0x1a0/0x210 kernel/locking/spinlock.c:162
 queue_stack_map_push_elem+0x17a/0x570 kernel/bpf/queue_stack_maps.c:214
 bpf_prog_216c997a1f42e404+0x37/0x3b
 bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:2282 [inline]
 bpf_trace_run2+0x133/0x290 kernel/trace/bpf_trace.c:2321
 __bpf_trace_contention_end+0xb/0x10 include/trace/events/lock.h:122
 trace_contention_end include/trace/events/lock.h:122 [inline]
 __pv_queued_spin_lock_slowpath+0xd59/0xda0 kernel/locking/qspinlock.c:560
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:111 [inline]
 _raw_spin_lock_irqsave+0x1a0/0x210 kernel/locking/spinlock.c:162
 queue_stack_map_push_elem+0x17a/0x570 kernel/bpf/queue_stack_maps.c:214
 bpf_prog_216c997a1f42e404+0x37/0x3b
 bpf_dispatcher_nop_func include/linux/bpf.h:987 [inline]
 __bpf_prog_run include/linux/filter.h:603 [inline]
 bpf_prog_run include/linux/filter.h:610 [inline]
 bpf_prog_run_pin_on_cpu include/linux/filter.h:627 [inline]
 bpf_flow_dissect+0x12b/0x3e0 net/core/flow_dissector.c:913
 bpf_prog_test_run_flow_dissector+0x465/0x7e0 net/bpf/test_run.c:1487
 bpf_prog_test_run+0x3b0/0x630 kernel/bpf/syscall.c:3665
 __sys_bpf+0x59f/0x7f0 kernel/bpf/syscall.c:5020
 __do_sys_bpf kernel/bpf/syscall.c:5106 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:5104 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:5104
 x64_sys_call+0x87f/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322
 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:0x7fe6a978cd29
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:00007fe6a95ff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007fe6a99a5fa0 RCX: 00007fe6a978cd29
RDX: 0000000000000050 RSI: 0000000020000000 RDI: 000000000000000a
RBP: 00007fe6a980e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe6a99a5fa0 R15: 00007ffe47355e58
 </TASK>

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/28 01:24 android14-6.1 11620ab958c2 18070896 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in bpf_link_release
2024/11/05 21:37 android14-6.1 976b055754d7 da38b4c9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in bpf_link_release
* Struck through repros no longer work on HEAD.