syzbot


BUG: soft lockup in sock_close

Status: upstream: reported C repro on 2024/03/27 04:09
Bug presence: origin:downstream
[Documentation on labels]
Reported-by: syzbot+590c02cc06f6cd2951e1@syzkaller.appspotmail.com
First crash: 322d, last: 3d12h
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/03/27 android14-6.1 (ToT) eef3b6e52937 C [report] BUG: soft lockup in sock_close
2024/03/27 lts (merge base) 883d1a956208 C Didn't crash
2024/04/10 upstream (ToT) 2c71fdf02a95 C Didn't crash
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: soft lockup in sock_close C 101 21d 324d 0/2 upstream: reported C repro on 2024/03/25 07:28
linux-5.15 INFO: rcu detected stall in sock_close (3) origin:upstream C 9 17d 268d 0/3 upstream: reported C repro on 2024/05/20 00:06
android-5-15 BUG: soft lockup in sock_close origin:downstream C done 336 2d19h 322d 0/2 upstream: reported C repro on 2024/03/26 23:21
linux-6.1 BUG: soft lockup in sock_close origin:upstream syz 1 50d 50d 0/3 upstream: reported syz repro on 2024/12/23 18:51
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 385d 385d 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 474d 512d 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 275d 275d 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 583d 583d 3/3 fixed on 2023/09/23 10:26
linux-6.1 INFO: rcu detected stall in sock_close (2) 1 377d 377d 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 1184d 1679d 0/28 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close C error 2 563d 617d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02
Last patch testing requests (9)
Created Duration User Patch Repo Result
2025/02/09 02:56 10m retest repro android14-6.1 report log
2025/01/06 04:14 11m retest repro android14-6.1 report log
2025/01/04 06:07 11m retest repro android14-6.1 report log
2024/12/20 17:54 13m retest repro android14-6.1 report log
2024/10/28 00:57 15m retest repro android14-6.1 report log
2024/09/28 15:02 1h03m retest repro android14-6.1 report log
2024/08/18 18:11 9m retest repro android14-6.1 report log
2024/07/20 14:02 14m retest repro android14-6.1 report log
2024/06/09 17:49 11m retest repro android14-6.1 report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor176:481]
Modules linked in:
CPU: 0 PID: 481 Comm: syz-executor176 Not tainted 6.1.118-syzkaller-00025-gef4fb40b87a9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:memcmp lib/string.c:775 [inline]
RIP: 0010:bcmp+0x1aa/0x200 lib/string.c:797
Code: 10 84 c0 75 2c 45 0f b6 2c 1c 49 8d 3c 1f 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 75 2a 41 0f b6 04 1f 41 29 c5 75 3d 48 ff c3 <49> 39 de 75 c3 eb 30 89 f9 80 e1 07 38 c1 7c cb 49 89 d5 e8 ce 83
RSP: 0018:ffffc900014f67f8 EFLAGS: 00000202
RAX: 0000000000000096 RBX: 0000000000000001 RCX: 00000000014f6800
RDX: dffffc0000000000 RSI: ffffc900014f68a0 RDI: ffffc900014f68a0
RBP: ffffc900014f6830 R08: ffffffff84fd3294 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88811ece8d68
R13: 0000000000000000 R14: 0000000000000004 R15: ffffc900014f68a0
FS:  00007f7b37a1a6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7b37a962d0 CR3: 0000000111f30000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 _Z6memcmpPKvU17pass_object_size0S0_U17pass_object_size0m include/linux/fortify-string.h:549 [inline]
 rhashtable_compare include/linux/rhashtable.h:577 [inline]
 __rhashtable_lookup include/linux/rhashtable.h:602 [inline]
 rhashtable_lookup include/linux/rhashtable.h:638 [inline]
 tipc_sk_lookup+0x316/0x660 net/tipc/socket.c:3001
 tipc_sk_rcv+0x45c/0x1c40 net/tipc/socket.c:2492
 tipc_node_xmit+0x34e/0xe40 net/tipc/node.c:1703
 tipc_node_xmit_skb+0x153/0x1b0 net/tipc/node.c:1768
 tipc_sk_rcv+0x1787/0x1c40 net/tipc/socket.c:2522
 tipc_node_xmit+0x34e/0xe40 net/tipc/node.c:1703
 tipc_sk_push_backlog net/tipc/socket.c:1316 [inline]
 tipc_sk_filter_connect net/tipc/socket.c:2255 [inline]
 tipc_sk_filter_rcv+0x194e/0x3390 net/tipc/socket.c:2364
 tipc_sk_enqueue net/tipc/socket.c:2445 [inline]
 tipc_sk_rcv+0x815/0x1c40 net/tipc/socket.c:2497
 tipc_node_xmit+0x34e/0xe40 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x36a/0x4d0 net/tipc/node.c:1783
 tipc_sk_backlog_rcv+0x18b/0x210 net/tipc/socket.c:2412
 sk_backlog_rcv include/net/sock.h:1131 [inline]
 __release_sock+0x145/0x410 net/core/sock.c:2942
 release_sock+0x65/0x1b0 net/core/sock.c:3516
 tipc_release+0xf10/0x1310 net/tipc/socket.c:652
 __sock_release net/socket.c:652 [inline]
 sock_close+0xdf/0x270 net/socket.c:1390
 __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
 ptrace_notify+0x29e/0x350 kernel/signal.c:2377
 ptrace_report_syscall include/linux/ptrace.h:420 [inline]
 ptrace_report_syscall_exit include/linux/ptrace.h:482 [inline]
 syscall_exit_work kernel/entry/common.c:258 [inline]
 syscall_exit_to_user_mode_prepare kernel/entry/common.c:285 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
 syscall_exit_to_user_mode+0x99/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:0x7f7b37a5a119
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 18 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f7b37a1a218 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 00000000000203a0 RBX: 00007f7b37ae63e8 RCX: 00007f7b37a5a119
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000003
RBP: 00007f7b37ae63e0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7b37ab3084
R13: 00007f7b37ab1078 R14: 00007f7b37ab2080 R15: 618a5986bea2420f
 </TASK>

Crashes (5):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/01/26 01:10 android14-6.1 ef4fb40b87a9 9fbd772e .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_close
2024/05/26 17:02 android14-6.1 68c821783c76 a10a183e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_close
2024/03/27 04:05 android14-6.1 eef3b6e52937 454571b6 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_close
2024/12/06 00:30 android14-6.1 182b090f35f3 29f61fce .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_close
2024/03/27 02:54 android14-6.1 eef3b6e52937 454571b6 .config console log report syz [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_close
* Struck through repros no longer work on HEAD.