syzbot


BUG: soft lockup in sys_bpf

Status: upstream: reported C repro on 2024/03/29 12:25
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+e723250e1d2002214bca@syzkaller.appspotmail.com
First crash: 78d, last: 2h30m
Bug presence (2)
Date Name Commit Repro Result
2024/03/29 lts (merge base) 6139f2a02fe0 C [report] BUG: soft lockup in kernfs_fop_release
2024/03/29 upstream (ToT) 317c7bc0ef03 C Didn't crash
Similar bugs (7)
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 874d 967d 0/27 closed as invalid on 2022/02/08 10:34
upstream INFO: rcu detected stall in sys_bpf (9) bpf net C error 12 1d12h 17d 0/27 upstream: reported C repro on 2024/05/28 13:32
linux-5.15 INFO: rcu detected stall in sys_bpf (2) 4 2d22h 66d 0/3 upstream: reported on 2024/04/09 19:57
linux-5.15 INFO: rcu detected stall in sys_bpf 2 190d 233d 0/3 auto-obsoleted due to no activity on 2024/03/16 17:33
upstream INFO: rcu detected stall in sys_bpf (8) bpf 1 209d 209d 0/27 auto-obsoleted due to no activity on 2024/02/17 03:10
linux-6.1 INFO: rcu detected stall in sys_bpf 3 26d 55d 0/3 upstream: reported on 2024/04/20 10:27
upstream INFO: rcu detected stall in sys_bpf (6) net 7 686d 836d 0/27 auto-obsoleted due to no activity on 2022/10/28 06:32

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor940:296]
Modules linked in:
CPU: 0 PID: 296 Comm: syz-executor940 Not tainted 5.15.149-syzkaller-00490-g5d96939590c0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:918
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d 5b 03 f3 03 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc900009576c0 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff9200012aedc RCX: ffffffff8154fa7f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88811f13d128
RBP: ffffc90000957770 R08: dffffc0000000000 R09: ffffed1023e27a26
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88811f13d128 R14: 0000000000000003 R15: 1ffff9200012aee0
FS:  00005555555a5380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c6f2750d0 CR3: 000000011dc1a000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:597 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6bc/0xc40 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 __sock_map_delete net/core/sock_map.c:416 [inline]
 sock_map_delete_elem+0x99/0x130 net/core/sock_map.c:448
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x898
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
 trace_kfree include/trace/events/kmem.h:118 [inline]
 kfree+0x1f3/0x220 mm/slub.c:4569
 sk_psock_free_link include/linux/skmsg.h:420 [inline]
 sock_map_del_link net/core/sock_map.c:160 [inline]
 sock_map_unref+0x352/0x4d0 net/core/sock_map.c:182
 __sock_map_delete net/core/sock_map.c:422 [inline]
 sock_map_delete_elem+0xc1/0x130 net/core/sock_map.c:448
 bpf_prog_2c29ac5cdc6b1842+0x3a/0x898
 bpf_dispatcher_nop_func include/linux/bpf.h:785 [inline]
 __bpf_prog_run include/linux/filter.h:625 [inline]
 bpf_prog_run include/linux/filter.h:632 [inline]
 __bpf_trace_run kernel/trace/bpf_trace.c:1883 [inline]
 bpf_trace_run2+0xec/0x210 kernel/trace/bpf_trace.c:1920
 __bpf_trace_kfree+0x6f/0x90 include/trace/events/kmem.h:118
 trace_kfree include/trace/events/kmem.h:118 [inline]
 kfree+0x1f3/0x220 mm/slub.c:4569
 kvfree+0x35/0x40 mm/util.c:664
 map_update_elem+0x653/0x770 kernel/bpf/syscall.c:1168
 __sys_bpf+0x405/0x760 kernel/bpf/syscall.c:4621
 __do_sys_bpf kernel/bpf/syscall.c:4737 [inline]
 __se_sys_bpf kernel/bpf/syscall.c:4735 [inline]
 __x64_sys_bpf+0x7c/0x90 kernel/bpf/syscall.c:4735
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6c6f1fddf9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 c1 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffefda30638 EFLAGS: 00000246
 ORIG_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f6c6f1fddf9
RDX: 0000000000000020 RSI: 0000000020000500 RDI: 0000000000000002
RBP: 0000000000000000 R08: 0000000000000006 R09: 0000000000000006
R10: 0000000000000006 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000001 R15: 0000000000000001
 </TASK>

Crashes (86):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/17 05:51 android13-5.15-lts 5d96939590c0 c2e07261 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/08 23:52 android13-5.15-lts 5d96939590c0 20bf80e1 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/05 01:02 android13-5.15-lts 5d96939590c0 610f2a54 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/01 13:53 android13-5.15-lts 5d96939590c0 3ba885bc .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/30 04:15 android13-5.15-lts 5d96939590c0 f10afd69 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/28 17:32 android13-5.15-lts 5d96939590c0 07b455f9 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/22 15:31 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/10 21:05 android13-5.15-lts 993bed180178 4320ec32 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/10 02:25 android13-5.15-lts 993bed180178 171ec371 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/10 02:00 android13-5.15-lts 993bed180178 171ec371 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/09 11:52 android13-5.15-lts 993bed180178 f3234354 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/03/30 23:46 android13-5.15-lts 993bed180178 6baf5069 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/03/30 19:15 android13-5.15-lts 993bed180178 6baf5069 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/03/29 12:16 android13-5.15-lts 993bed180178 c52bcb23 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/06/15 05:34 android13-5.15-lts 85445b5a2107 f429ab00 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/06/12 05:44 android13-5.15-lts 79bd336c7a94 4d75f4f7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/06/11 05:01 android13-5.15-lts 79bd336c7a94 048c640a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/06/06 08:50 android13-5.15-lts 79bd336c7a94 121701b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/06/04 17:57 android13-5.15-lts 79bd336c7a94 11f2afa5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/06/02 18:58 android13-5.15-lts 424f92bcbe8f 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/28 12:49 android13-5.15-lts 424f92bcbe8f f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/28 10:27 android13-5.15-lts 424f92bcbe8f f550015e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/27 22:47 android13-5.15-lts 424f92bcbe8f 761766e6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/26 03:15 android13-5.15-lts 424f92bcbe8f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/25 14:10 android13-5.15-lts 424f92bcbe8f a10a183e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/22 21:33 android13-5.15-lts 5d96939590c0 4d098039 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/22 07:53 android13-5.15-lts 5d96939590c0 1014eca7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/21 06:43 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/20 07:48 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/19 08:10 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/19 05:53 android13-5.15-lts 5d96939590c0 c0f1611a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/17 22:59 android13-5.15-lts 5d96939590c0 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/17 19:43 android13-5.15-lts 5d96939590c0 a12e99e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/17 05:34 android13-5.15-lts 5d96939590c0 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/17 02:59 android13-5.15-lts 5d96939590c0 c2e07261 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/13 15:02 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/13 13:57 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/13 12:51 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/13 01:52 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/11 11:39 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/10 04:19 android13-5.15-lts 5d96939590c0 de979bc2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/09 01:20 android13-5.15-lts 5d96939590c0 20bf80e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/08 04:57 android13-5.15-lts 5d96939590c0 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/07 03:15 android13-5.15-lts 5d96939590c0 fa7a5cf0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/05/03 04:54 android13-5.15-lts 5d96939590c0 ddfc15a1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/05/01 21:59 android13-5.15-lts 5d96939590c0 3ba885bc .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/29 15:11 android13-5.15-lts 5d96939590c0 27e33c58 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/29 03:47 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/28 13:07 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/28 12:43 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/28 04:36 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/27 21:31 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/27 14:32 android13-5.15-lts 5d96939590c0 07b455f9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/26 06:46 android13-5.15-lts 5d96939590c0 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/26 05:44 android13-5.15-lts 5d96939590c0 8bdc0f22 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/24 05:00 android13-5.15-lts ad06eaf051cd 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/23 13:04 android13-5.15-lts ad06eaf051cd 21339d7b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_bpf
2024/04/23 03:31 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/23 03:31 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
2024/04/22 21:50 android13-5.15-lts ad06eaf051cd 36c961ad .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_bpf
* Struck through repros no longer work on HEAD.