syzbot


BUG: soft lockup in sock_close

Status: upstream: reported C repro on 2024/03/27 04:09
Reported-by: syzbot+590c02cc06f6cd2951e1@syzkaller.appspotmail.com
First crash: 36d, last: 36d
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 (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 BUG: soft lockup in sock_close C 27 17h28m 38d 0/2 upstream: reported C repro on 2024/03/25 07:28
android-5-15 BUG: soft lockup in sock_close C 138 11h59m 36d 0/2 upstream: reported C repro on 2024/03/26 23:21
linux-5.15 INFO: rcu detected stall in sock_close (2) 1 99d 99d 0/3 upstream: reported on 2024/01/24 14:38
upstream INFO: rcu detected stall in sock_close (4) net 2 189d 226d 0/26 auto-obsoleted due to no activity on 2024/01/24 15:51
linux-6.1 INFO: rcu detected stall in sock_close origin:upstream C done 1 297d 297d 3/3 fixed on 2023/09/23 10:26
linux-6.1 INFO: rcu detected stall in sock_close (2) 1 91d 91d 0/3 upstream: reported on 2024/02/01 05:24
upstream INFO: rcu detected stall in sock_close (3) tipc C done done 5 899d 1393d 0/26 closed as invalid on 2022/02/08 10:42
linux-5.15 INFO: rcu detected stall in sock_close C error 2 277d 331d 0/3 auto-obsoleted due to no activity on 2023/11/07 13:02

Sample crash report:
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffb0
R13: 00007f1842350320 R14: 00007f184235032c R15: 00007f184231d064
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 225s! [syz-executor403:1287]
Modules linked in:
CPU: 1 PID: 1287 Comm: syz-executor403 Not tainted 6.1.68-syzkaller-00096-geef3b6e52937 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:check_kcov_mode kernel/kcov.c:184 [inline]
RIP: 0010:__sanitizer_cov_trace_pc+0x36/0x60 kernel/kcov.c:207
Code: a0 fc 8c 7e 65 8b 15 a1 fc 8c 7e f7 c2 00 01 ff 00 74 11 f7 c2 00 01 00 00 74 35 83 b9 6c 0b 00 00 00 74 2c 8b 91 48 0b 00 00 <83> fa 02 75 21 48 8b 91 50 0b 00 00 48 8b 32 48 8d 7e 01 8b 89 4c
RSP: 0018:ffffc90001b16910 EFLAGS: 00000246
RAX: ffffffff84da64a1 RBX: 0000000000000000 RCX: ffff888112f85100
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90001b16910 R08: ffffffff84da52be R09: ffffed1024660d14
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888123306800 R14: 000000009421ff59 R15: ffffc90001b16d20
FS:  00007f18422876c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001c40 CR3: 0000000123621000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 tipc_sk_rcv+0x1671/0x1c40 net/tipc/socket.c:2496
 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:1129 [inline]
 __release_sock+0x145/0x410 net/core/sock.c:2932
 release_sock+0x65/0x1b0 net/core/sock.c:3506
 tipc_release+0xf10/0x1310 net/tipc/socket.c:652
 __sock_release net/socket.c:652 [inline]
 sock_close+0xdf/0x270 net/socket.c:1387
 __fput+0x3ab/0x870 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x24d/0x2e0 kernel/task_work.c:179
 ptrace_notify+0x29e/0x350 kernel/signal.c:2375
 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:252 [inline]
 syscall_exit_to_user_mode_prepare kernel/entry/common.c:279 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:284 [inline]
 syscall_exit_to_user_mode+0xa2/0x140 kernel/entry/common.c:297
 do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f18422c6669
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 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:00007f1842287218 EFLAGS: 00000246 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 00007f1842350328 RCX: 00007f18422c6669
RDX: 00007f18422c6669 RSI: 00000000000f4240 RDI: 0000000000000004
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: ffffffffffffffb0
R13: 00007f1842350320 R14: 00007f184235032c R15: 00007f184231d064
 </TASK>

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