syzbot


BUG: soft lockup in bpf_link_release (2)

Status: premoderation: reported on 2025/07/14 11:10
Reported-by: syzbot+d35be2124ddd007d6456@syzkaller.appspotmail.com
First crash: 22h08m, last: 22h08m
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in bpf_link_release 1 18 343d 463d 0/2 auto-obsoleted due to no activity on 2024/11/03 19:01
android-6-1 BUG: soft lockup in bpf_link_release 1 2 168d 251d 0/2 auto-obsoleted due to no activity on 2025/04/28 01:32
upstream INFO: rcu detected stall in bpf_link_release (3) mm 1 1 260d 260d 0/29 auto-obsoleted due to no activity on 2025/01/25 11:31
upstream INFO: rcu detected stall in bpf_link_release (2) kernel 1 1 976d 976d 0/29 auto-obsoleted due to no activity on 2023/02/13 11:46
upstream INFO: rcu detected stall in bpf_link_release kernel 1 1 1291d 1291d 0/29 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 226s! [syz.0.28:381]
Modules linked in:
CPU: 0 PID: 381 Comm: syz.0.28 Not tainted 6.1.141-syzkaller-00038-ge2deb0b42a3a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:209
Code: 89 fb e8 23 00 00 00 48 8b 3d 4c 2a 02 06 48 89 de e8 d4 9f 43 00 5b 5d c3 00 90 90 90 90 90 90 90 90 90 90 90 b8 0c 67 40 a5 <55> 48 89 e5 48 8b 45 08 65 48 8b 0d 40 76 92 7e 65 8b 15 41 76 92
RSP: 0018:ffffc9000dc9f5f8 EFLAGS: 00000202
RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffff888118338000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000
RBP: ffffc9000dc9f738 R08: dffffc0000000000 R09: ffffed103ee07213
R10: 0000000000000000 R11: ffffffff81341b30 R12: 1ffff1103ee07210
R13: 1ffff1103ee2789d R14: 0000000000000001 R15: ffff8881f713c4e8
FS:  000055555f365500(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555595392000 CR3: 0000000132617000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 on_each_cpu_cond_mask+0x43/0x80 kernel/smp.c:1166
 on_each_cpu include/linux/smp.h:71 [inline]
 text_poke_sync arch/x86/kernel/alternative.c:1574 [inline]
 text_poke_bp_batch+0x1cc/0x580 arch/x86/kernel/alternative.c:1774
 text_poke_bp+0xc8/0x140 arch/x86/kernel/alternative.c:2011
 __static_call_transform+0x318/0x500 arch/x86/kernel/static_call.c:109
 arch_static_call_transform+0xd3/0x280 arch/x86/kernel/static_call.c:161
 __static_call_update+0xef/0x5c0 kernel/static_call_inline.c:136
 tracepoint_update_call kernel/tracepoint.c:317 [inline]
 tracepoint_remove_func kernel/tracepoint.c:441 [inline]
 tracepoint_probe_unregister+0x817/0x8b0 kernel/tracepoint.c:551
 bpf_probe_unregister+0x61/0x70 kernel/trace/bpf_trace.c:2359
 bpf_raw_tp_link_release+0x63/0x90 kernel/bpf/syscall.c:3170
 bpf_link_free+0x13a/0x390 kernel/bpf/syscall.c:2739
 bpf_link_put kernel/bpf/syscall.c:2765 [inline]
 bpf_link_release+0x15f/0x170 kernel/bpf/syscall.c:2774
 __fput+0x1fc/0x8f0 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x1db/0x240 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x9b/0xb0 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+0x1a/0x30 kernel/entry/common.c:303
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f10e898e929
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:00007fff37d96d48 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 0000000000007866 RCX: 00007f10e898e929
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f10e8bb7ba0 R08: 0000000000000001 R09: 0000000937d9703f
R10: 00007f10e8600000 R11: 0000000000000246 R12: 00007f10e8bb5fac
R13: 00007f10e8bb5fa0 R14: ffffffffffffffff R15: 00007fff37d96e60
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 355 Comm: syz.1.19 Not tainted 6.1.141-syzkaller-00038-ge2deb0b42a3a #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025
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+0xcc/0x140 arch/x86/kernel/kvm.c:1058
Code: 20 f6 44 24 21 02 75 24 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 48 0f b6 07 40 38 f0 75 a6 66 90 0f 00 2d b5 ae 13 04 f4 <eb> 9a fa 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 3f 0f b6 07
RSP: 0018:ffffc900001b0620 EFLAGS: 00000046
RAX: 0000000000000003 RBX: ffff8881f7127c40 RCX: ffffffff84f06582
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f7127c40
RBP: ffffc900001b06b0 R08: dffffc0000000000 R09: ffffed103ee24f89
R10: ffffed103ee24f89 R11: 1ffff1103ee24f88 R12: 1ffff1103ee20001
R13: ffff8881f7138c94 R14: dffffc0000000000 R15: 1ffff920000360c4
FS:  00007f0a4502e6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000010000 CR3: 00000001321ed000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 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+0x690/0xc40 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51
 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+0x108/0x110 kernel/locking/spinlock.c:162
 lock_timer_base+0x127/0x270 kernel/time/timer.c:1005
 __mod_timer+0x10a/0xb30 kernel/time/timer.c:1078
 add_timer+0x68/0x80 kernel/time/timer.c:1218
 __queue_delayed_work+0x173/0x200 kernel/workqueue.c:1686
 queue_delayed_work_on+0xdb/0x150 kernel/workqueue.c:1711
 queue_delayed_work include/linux/workqueue.h:525 [inline]
 schedule_delayed_monitor_work kernel/rcu/tree.c:3216 [inline]
 kvfree_call_rcu+0x436/0x7a0 kernel/rcu/tree.c:3472
 trie_delete_elem+0x572/0x720 kernel/bpf/lpm_trie.c:545
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x3e
 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:2283 [inline]
 bpf_trace_run3+0x113/0x270 kernel/trace/bpf_trace.c:2323
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:53
 __traceiter_timer_start+0x8c/0xe0 include/trace/events/timer.h:53
 trace_timer_start include/trace/events/timer.h:53 [inline]
 enqueue_timer+0x337/0x480 kernel/time/timer.c:615
 internal_add_timer kernel/time/timer.c:640 [inline]
 add_timer_on+0x303/0x430 kernel/time/timer.c:1258
 add_interrupt_randomness+0x409/0x470 drivers/char/random.c:1089
 handle_irq_event_percpu kernel/irq/handle.c:195 [inline]
 handle_irq_event+0xb4/0x1f0 kernel/irq/handle.c:210
 handle_edge_irq+0x2b6/0xd60 kernel/irq/chip.c:834
 generic_handle_irq_desc include/linux/irqdesc.h:160 [inline]
 handle_irq arch/x86/kernel/irq.c:233 [inline]
 __common_interrupt+0xa9/0x1d0 arch/x86/kernel/irq.c:252
 common_interrupt+0xb9/0xe0 arch/x86/kernel/irq.c:242
 </IRQ>
 <TASK>
 asm_common_interrupt+0x27/0x40 arch/x86/include/asm/idtentry.h:682
RIP: 0010:__mark_chain_precision+0x1c5b/0x1fb0 kernel/bpf/verifier.c:3067
Code: 85 44 89 f2 e8 b6 28 00 00 80 3d ac c4 ed 05 01 0f 85 01 02 00 00 e8 a4 ce ee ff e9 32 fc ff ff e8 9a ce ee ff e9 3e fc ff ff <e8> 90 ce ee ff e9 34 fc ff ff e8 86 ce ee ff 49 bc 00 00 00 00 00
RSP: 0018:ffffc9000dceee80 EFLAGS: 00000246
RAX: ffffffff8181238b RBX: 0000000000000000 RCX: ffff888116cae540
RDX: 0000000000000002 RSI: 0000000000000002 RDI: 0000000000000000
RBP: ffffc9000dcef010 R08: ffff888116cae540 R09: 0000000000000002
R10: 0000000000000001 R11: 0000000000000002 R12: dffffc0000000000
R13: 0000000000000000 R14: 0000000000000002 R15: ffff888111cb0000
 mark_chain_precision kernel/bpf/verifier.c:3078 [inline]
 check_cond_jmp_op kernel/bpf/verifier.c:10451 [inline]
 do_check+0x95c3/0xf060 kernel/bpf/verifier.c:12726
 do_check_common+0x11ae/0x1950 kernel/bpf/verifier.c:14930
 do_check_main kernel/bpf/verifier.c:14993 [inline]
 bpf_check+0x3de0/0x10d50 kernel/bpf/verifier.c:15570
 bpf_prog_load+0x1071/0x15a0 kernel/bpf/syscall.c:2621
 __sys_bpf+0x504/0x780 kernel/bpf/syscall.c:5002
 __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+0x488/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:322
 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:0x7f0a4418e929
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:00007f0a4502e038 EFLAGS: 00000246 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 00007f0a443b5fa0 RCX: 00007f0a4418e929
RDX: 0000000000000048 RSI: 0000200000000200 RDI: 0000000000000005
RBP: 00007f0a44210b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f0a443b5fa0 R15: 00007ffc2d27bf58
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/07/14 11:09 android14-6.1 e2deb0b42a3a d8fc7335 .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.