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: 15d, last: 15d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in bpf_link_release 18 107d 227d 0/2 auto-obsoleted due to no activity on 2024/11/03 19:01
upstream INFO: rcu detected stall in bpf_link_release (2) kernel 1 740d 740d 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 1055d 1055d 0/28 closed as invalid on 2022/02/08 10:10

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 225s! [syz.4.79:525]
Modules linked in:
CPU: 1 PID: 525 Comm: syz.4.79 Not tainted 6.1.112-syzkaller-00110-g976b055754d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:__sanitizer_cov_trace_pc+0x1/0x60 kernel/kcov.c:209
Code: 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 24 0b 1d 06 48 89 de e8 14 ad 46 00 5b 5d c3 cc 55 <48> 89 e5 48 8b 45 08 65 48 8b 0d a0 c9 8c 7e 65 8b 15 a1 c9 8c 7e
RSP: 0018:ffffc90001077290 EFLAGS: 00000202
RAX: 0000000000000000 RBX: 1ffff1103edc7a99 RCX: 0000000000040000
RDX: ffffc900028d5000 RSI: 000000000003ffff RDI: 0000000000040000
RBP: ffffc900010773b8 R08: ffffffff816c0c33 R09: ffffed103ede71fb
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000000
R13: 0000000800000000 R14: ffff8881f6e3d4c8 R15: dffffc0000000000
FS:  00007ff7438696c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e31fffc CR3: 0000000130cbf000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 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_bp+0xc8/0x140 arch/x86/kernel/alternative.c:1771
 __static_call_transform+0x333/0x560 arch/x86/kernel/static_call.c:109
 arch_static_call_transform+0x51/0xa0 arch/x86/kernel/static_call.c:161
 __static_call_update+0xd2/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+0x7fb/0x900 kernel/tracepoint.c:551
 bpf_probe_unregister+0x61/0x70 kernel/trace/bpf_trace.c:2349
 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
 get_signal+0x15a0/0x1820 kernel/signal.c:2665
 arch_do_signal_or_restart+0xb0/0x16f0 arch/x86/kernel/signal.c:871
 exit_to_user_mode_loop+0x74/0xa0 kernel/entry/common.c:174
 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:0x7ff74297e719
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:00007ff743868fe8 EFLAGS: 00000206 ORIG_RAX: 0000000000000038
RAX: fffffffffffffffc RBX: 00007ff742b35f80 RCX: 00007ff74297e719
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000040000000
RBP: 00007ff7429f139e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 00007ff742b35f80 R15: 00007fff5ad6f458
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 586 Comm: syz.3.102 Not tainted 6.1.112-syzkaller-00110-g976b055754d7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/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 8a f9 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:ffffc9000e6672a0 EFLAGS: 00000046
RAX: 0000000000000003 RBX: 1ffff92001ccce58 RCX: ffffffff85214c9c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881f6e27b80
RBP: ffffc9000e667350 R08: dffffc0000000000 R09: ffffed103edc4f71
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881f6e27b80 R14: 0000000000000003 R15: 1ffff92001ccce5c
FS:  00007fe4d3dff6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e316ff8 CR3: 000000011db14000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 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
 lock_timer_base+0x12f/0x270 kernel/time/timer.c:1005
 __mod_timer+0x1c9/0xcf0 kernel/time/timer.c:1078
 add_timer+0x68/0x80 kernel/time/timer.c:1218
 __queue_delayed_work+0x16d/0x1f0 kernel/workqueue.c:1686
 queue_delayed_work_on+0x10f/0x180 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+0x490/0x800 kernel/rcu/tree.c:3472
 trie_delete_elem+0x5a6/0x760 kernel/bpf/lpm_trie.c:532
 bpf_prog_ae0c3e605f35524c+0x3d/0x41
 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:2273 [inline]
 bpf_trace_run3+0x177/0x2e0 kernel/trace/bpf_trace.c:2313
 __bpf_trace_timer_start+0x2b/0x40 include/trace/events/timer.h:53
 __traceiter_timer_start+0x7f/0xd0 include/trace/events/timer.h:53
 trace_timer_start include/trace/events/timer.h:53 [inline]
 enqueue_timer+0x303/0x480 kernel/time/timer.c:615
 internal_add_timer kernel/time/timer.c:640 [inline]
 __mod_timer+0x8d3/0xcf0 kernel/time/timer.c:1121
 mod_timer+0x1f/0x30 kernel/time/timer.c:1172
 sk_reset_timer+0x22/0xb0 net/core/sock.c:3387
 tipc_sk_finish_conn+0x164/0x860 net/tipc/socket.c:1675
 tipc_socketpair+0x2a8/0x4f0 net/tipc/socket.c:3350
 __sys_socketpair+0x3e0/0x6e0 net/socket.c:1735
 __do_sys_socketpair net/socket.c:1771 [inline]
 __se_sys_socketpair net/socket.c:1768 [inline]
 __x64_sys_socketpair+0x9b/0xb0 net/socket.c:1768
 x64_sys_call+0x19b/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:54
 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:0x7fe4d3f7e719
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:00007fe4d3dff038 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
RAX: ffffffffffffffda RBX: 00007fe4d4135f80 RCX: 00007fe4d3f7e719
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 000000000000001e
RBP: 00007fe4d3ff139e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000940 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fe4d4135f80 R15: 00007ffd2e157598
 </TASK>

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