syzbot


BUG: soft lockup in sock_close

Status: upstream: reported C repro on 2024/03/26 23:21
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+62469057aed52ef281ed@syzkaller.appspotmail.com
First crash: 244d, last: 18d
Fix bisection: fixed by (bisect log) :
commit 11e8ecc5b86037fec43d07b1c162e233e131b1d9
Author: Jakub Sitnicki <jakub@cloudflare.com>
Date: Mon May 27 11:20:07 2024 +0000

  bpf: Allow delete from sockmap/sockhash only if update is allowed

  
Bug presence (3)
Date Name Commit Repro Result
2024/03/27 android13-5.15-lts (ToT) 993bed180178 C [report] BUG: soft lockup in sock_close
2024/03/27 lts (merge base) 6139f2a02fe0 C Didn't crash
2024/04/10 upstream (ToT) 2c71fdf02a95 C Didn't crash
Similar bugs (10)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: soft lockup in sock_close C 80 7d13h 241d 0/2 upstream: reported C repro on 2024/03/25 07:28
android-6-1 BUG: soft lockup in sock_close origin:downstream C error 3 24d 239d 0/2 upstream: reported C repro on 2024/03/27 04:09
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 301d 301d 0/3 auto-obsoleted due to no activity on 2024/05/03 14:38
upstream INFO: rcu detected stall in sock_close (4) net 2 391d 429d 0/28 auto-obsoleted due to no activity on 2024/01/24 15:51
linux-6.1 INFO: rcu detected stall in sock_close (3) 1 192d 192d 0/3 auto-obsoleted due to no activity on 2024/08/21 03:02
linux-6.1 INFO: rcu detected stall in sock_close origin:upstream C done 1 500d 500d 3/3 fixed on 2023/09/23 10:26
linux-6.1 INFO: rcu detected stall in sock_close (2) 1 294d 294d 0/3 auto-obsoleted due to no activity on 2024/05/11 05:25
upstream INFO: rcu detected stall in sock_close (3) tipc C done done 5 1101d 1596d 0/28 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close C error 2 480d 533d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02
linux-5.15 INFO: rcu detected stall in sock_close (3) origin:upstream C 8 2d05h 185d 0/3 upstream: reported C repro on 2024/05/20 00:06
Last patch testing requests (10)
Created Duration User Patch Repo Result
2024/11/03 02:32 13m retest repro android13-5.15-lts log
2024/11/03 02:32 14m retest repro android13-5.15-lts OK log
2024/11/03 02:32 14m retest repro android13-5.15-lts OK log
2024/11/03 02:32 14m retest repro android13-5.15-lts OK log
2024/11/03 02:32 33m retest repro android13-5.15-lts OK log
2024/10/09 22:08 21m retest repro android13-5.15-lts OK log
2024/10/09 22:08 22m retest repro android13-5.15-lts OK log
2024/10/09 22:08 23m retest repro android13-5.15-lts OK log
2024/10/09 22:08 13m retest repro android13-5.15-lts OK log
2024/09/23 23:49 10m retest repro android13-5.15-lts report log

Sample crash report:
RBP: 00007f2be90c92b0 R08: ffffffffffffffb8 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2be90c92b0
R13: 0000000000000000 R14: 00007f2be90c9d00 R15: 00007f2be901f2e0
 </TASK>
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor296:298]
Modules linked in:
CPU: 0 PID: 298 Comm: syz-executor296 Not tainted 5.15.151-syzkaller-00059-g5356d2f17edf #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/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 2b 02 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:ffffc90000967800 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff9200012cf04 RCX: ffffffff815504ef
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881214b8090
RBP: ffffc900009678b0 R08: dffffc0000000000 R09: ffffed1024297013
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881214b8090 R14: 0000000000000003 R15: 1ffff9200012cf08
FS:  0000000000000000(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f2be90ca110 CR3: 000000000680f000 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
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 sk_psock_link_pop+0x2e/0x170 net/core/skmsg.c:753
 sock_map_remove_links+0x25/0x570 net/core/sock_map.c:1504
 sock_map_close+0x2ac/0x4c0 net/core/sock_map.c:1546
 unix_release+0x82/0xc0 net/unix/af_unix.c:949
 __sock_release net/socket.c:649 [inline]
 sock_close+0xdf/0x270 net/socket.c:1336
 __fput+0x3fe/0x910 fs/file_table.c:280
 ____fput+0x15/0x20 fs/file_table.c:308
 task_work_run+0x129/0x190 kernel/task_work.c:164
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0xc48/0x2ca0 kernel/exit.c:878
 do_group_exit+0x141/0x310 kernel/exit.c:1000
 __do_sys_exit_group kernel/exit.c:1011 [inline]
 __se_sys_exit_group kernel/exit.c:1009 [inline]
 __x64_sys_exit_group+0x3f/0x40 kernel/exit.c:1009
 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:0x7f2be904e089
Code: Unable to access opcode bytes at RIP 0x7f2be904e05f.
RSP: 002b:00007ffcb0ddc458 EFLAGS: 00000246
 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f2be904e089
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000000
RBP: 00007f2be90c92b0 R08: ffffffffffffffb8 R09: 0000000000000006
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f2be90c92b0
R13: 0000000000000000 R14: 00007f2be90c9d00 R15: 00007f2be901f2e0
 </TASK>

Crashes (322):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/07/25 04:07 android13-5.15-lts 5356d2f17edf d1a1b0ca .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/03/26 23:13 android13-5.15-lts 993bed180178 454571b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/11/03 06:20 android13-5.15-lts 5e4635681cf1 f00eed24 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/09/08 22:26 android13-5.15-lts 53be7c8abe11 9750182a .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/09/07 21:00 android13-5.15-lts 53be7c8abe11 9750182a .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/09/02 04:01 android13-5.15-lts 29d153aabd54 1eda0d14 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/09/01 18:25 android13-5.15-lts 29d153aabd54 1eda0d14 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/09/01 14:41 android13-5.15-lts 29d153aabd54 1eda0d14 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/26 09:15 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/26 03:34 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/25 21:53 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/25 16:03 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/25 10:13 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/25 04:28 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/24 22:33 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/24 16:40 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/10 11:24 android13-5.15-lts 70e1a731d986 6f4edef4 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/10 03:49 android13-5.15-lts 70e1a731d986 a83d9288 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/08/10 03:35 android13-5.15-lts 70e1a731d986 a83d9288 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/08/08 13:28 android13-5.15-lts 70e1a731d986 de12cf65 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/08/08 09:51 android13-5.15-lts 70e1a731d986 de12cf65 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/08/08 09:25 android13-5.15-lts 70e1a731d986 de12cf65 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/08/06 06:11 android13-5.15-lts 70e1a731d986 e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/30 22:30 android13-5.15-lts d0a6506ecafd 6fde257d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/28 21:09 android13-5.15-lts 4edafe6c0231 46eb10b7 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/25 00:04 android13-5.15-lts 5356d2f17edf d1a1b0ca .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/22 05:46 android13-5.15-lts db06c48ab67e b88348e9 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/19 14:27 android13-5.15-lts db06c48ab67e ee4e11c8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/19 10:15 android13-5.15-lts db06c48ab67e ee4e11c8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/16 09:30 android13-5.15-lts db06c48ab67e e8709b21 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/15 05:01 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/15 04:31 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/15 04:27 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/14 14:20 android13-5.15-lts db06c48ab67e eaeb5c15 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/14 06:41 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/14 04:29 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/14 02:41 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/14 01:08 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/13 20:28 android13-5.15-lts db06c48ab67e eaeb5c15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/07 17:36 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/07/07 07:24 android13-5.15-lts 9044d25b8ff5 2a40360c .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/04 23:18 android13-5.15-lts 9044d25b8ff5 3f2748a3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/07/02 07:45 android13-5.15-lts 9044d25b8ff5 b294e901 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/30 23:31 android13-5.15-lts 9044d25b8ff5 757f06b1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/30 17:27 android13-5.15-lts 9044d25b8ff5 757f06b1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/06/29 18:48 android13-5.15-lts 9044d25b8ff5 757f06b1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/29 01:12 android13-5.15-lts 9044d25b8ff5 757f06b1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/06/27 02:34 android13-5.15-lts 9044d25b8ff5 c6d33a01 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/27 02:22 android13-5.15-lts 9044d25b8ff5 c6d33a01 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/25 19:50 android13-5.15-lts 9044d25b8ff5 04bd2a30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/24 01:22 android13-5.15-lts 85445b5a2107 edc5149a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/23 16:16 android13-5.15-lts 85445b5a2107 edc5149a .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/06/19 15:19 android13-5.15-lts 85445b5a2107 41b7e219 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/10 07:21 android13-5.15-lts 79bd336c7a94 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/06/10 03:52 android13-5.15-lts 79bd336c7a94 82c05ab8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/05/04 17:04 android13-5.15-lts 5d96939590c0 610f2a54 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/04/22 00:57 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
2024/03/31 14:11 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_close
2024/03/22 05:53 android13-5.15-lts 993bed180178 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_close
* Struck through repros no longer work on HEAD.