syzbot


BUG: soft lockup in sock_setsockopt

Status: upstream: reported C repro on 2024/03/19 21:39
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+c61d36a7a92ea1cf92ea@syzkaller.appspotmail.com
First crash: 527d, last: 1d21h
Bug presence (2)
Date Name Commit Repro Result
2024/03/19 lts (merge base) 883d1a956208 C [report] BUG: soft lockup in sock_setsockopt
2024/04/02 upstream (ToT) b1e6ec0a0fd0 C [report] BUG: soft lockup in sock_close
Similar bugs (6)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1 1884d 1880d 0/29 auto-closed as invalid on 2020/09/30 02:55
linux-6.1 BUG: soft lockup in sock_setsockopt origin:upstream 1 C error 3 211d 247d 0/3 upstream: reported C repro on 2024/12/25 11:22
upstream BUG: soft lockup in sock_setsockopt bpf 1 1 2081d 2081d 0/29 auto-closed as invalid on 2020/04/16 03:54
linux-5.15 INFO: rcu detected stall in sock_setsockopt origin:upstream 1 C 9 23d 522d 0/3 upstream: reported C repro on 2024/03/24 19:22
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream 1 C 35 18d 527d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt 1 C error 69 1d11h 527d 0/2 upstream: reported C repro on 2024/03/19 19:29
Last patch testing requests (8)
Created Duration User Patch Repo Result
2025/08/27 15:50 20m retest repro android14-6.1 report log
2025/08/27 15:50 18m retest repro android14-6.1 report log
2025/08/27 15:50 18m retest repro android14-6.1 report log
2025/08/27 15:50 18m retest repro android14-6.1 report log
2025/08/27 15:50 18m retest repro android14-6.1 report log
2025/07/30 12:45 27m retest repro android14-6.1 report log
2025/07/30 12:45 11m retest repro android14-6.1 report log
2025/07/08 05:46 19m retest repro android14-6.1 report log
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2025/07/16 07:01 3h21m bisect fix android14-6.1 OK (0) job log log
2025/06/15 15:41 1h39m bisect fix android14-6.1 OK (0) job log log
2025/03/17 14:21 2h55m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
RBP: 00007f6c2d68b338 R08: 0000000000000004 R09: 0000000000000000
R10: 0000200000000540 R11: 0000000000000246 R12: 00002000000002c0
R13: 00007f6c2d68b330 R14: 00007f6c2d68b33c R15: 0000200000000004
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 246s! [syz-executor305:3919]
Modules linked in:
CPU: 1 PID: 3919 Comm: syz-executor305 Not tainted 6.1.145-syzkaller-00002-gc750dc582629 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__local_bh_enable_ip+0x0/0x80 kernel/softirq.c:426
Code: c5 bf 7e 65 81 05 34 c5 bf 7e 00 fe ff ff 5d c3 0f 0b eb e8 66 0f 1f 44 00 00 90 90 90 90 90 90 90 90 90 90 90 b8 ca 56 d3 f2 <55> 48 89 e5 65 8b 05 0d c5 bf 7e a9 00 00 0f 00 75 5a 65 8b 05 ff
RSP: 0018:ffffc900051f6838 EFLAGS: 00000202
RAX: 0000000000000001 RBX: ffff88810a1a3798 RCX: ffffffff84f386fb
RDX: 0000000000000000 RSI: 0000000000000201 RDI: ffffffff84cc8e0e
RBP: ffffc900051f68d0 R08: dffffc0000000000 R09: ffffed10214346f4
R10: ffffed10214346f4 R11: 1ffff110214346f3 R12: dffffc0000000000
R13: 1ffff92000a3ed08 R14: ffffffff84cc8e0e R15: 00000000cff714c2
FS:  00007f6c2d5a16c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6c2d5a1d58 CR3: 00000001266ea000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 spin_trylock_bh include/linux/spinlock.h:411 [inline]
 tipc_sk_rcv+0x43e/0x2cc0 net/tipc/socket.c:2496
 tipc_node_xmit+0x257/0xd00 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x292/0x390 net/tipc/node.c:1783
 tipc_sk_rcv+0x1aa3/0x2cc0 net/tipc/socket.c:2501
 tipc_node_xmit+0x257/0xd00 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+0x155f/0x2c80 net/tipc/socket.c:2364
 tipc_sk_enqueue net/tipc/socket.c:2445 [inline]
 tipc_sk_rcv+0x7d9/0x2cc0 net/tipc/socket.c:2497
 tipc_node_xmit+0x257/0xd00 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x292/0x390 net/tipc/node.c:1783
 tipc_sk_backlog_rcv+0x16f/0x1f0 net/tipc/socket.c:2412
 sk_backlog_rcv include/net/sock.h:1131 [inline]
 __release_sock+0x154/0x380 net/core/sock.c:2945
 release_sock net/core/sock.c:3519 [inline]
 sockopt_release_sock+0x95/0x1f0 net/core/sock.c:1067
 sk_setsockopt+0x1355/0x2590 net/core/sock.c:-1
 sock_setsockopt+0x5a/0x70 net/core/sock.c:1552
 __sys_setsockopt+0x270/0x4e0 net/socket.c:2274
 __do_sys_setsockopt net/socket.c:2289 [inline]
 __se_sys_setsockopt net/socket.c:2286 [inline]
 __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2286
 x64_sys_call+0x124/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f6c2d6013e9
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:00007f6c2d5a1218 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f6c2d5a16c0 RCX: 00007f6c2d6013e9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f6c2d68b338 R08: 0000000000000004 R09: 0000000000000000
R10: 0000200000000540 R11: 0000000000000246 R12: 00002000000002c0
R13: 00007f6c2d68b330 R14: 00007f6c2d68b33c R15: 0000200000000004
 </TASK>

Crashes (12):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/13 10:05 android14-6.1 c750dc582629 22ec1469 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_setsockopt
2025/08/09 14:16 android14-6.1 c750dc582629 32a0e5ed .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2025/04/12 06:26 android14-6.1 777d8313618b 0bd6db41 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_setsockopt
2025/01/31 07:35 android14-6.1 554eb9d61ac0 4c6ac32f .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2025/01/22 08:35 android14-6.1 d12538e9da37 da72ac06 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2024/10/08 13:53 android14-6.1 0e8b65e41ffd 402f1df0 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2024/05/05 20:34 android14-6.1 1794308d463f 610f2a54 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_setsockopt
2024/03/24 19:05 android14-6.1 d518ca9dbbe9 0ea90952 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_setsockopt
2024/03/24 18:23 android14-6.1 d518ca9dbbe9 0ea90952 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2024/03/22 10:39 android14-6.1 609541ba1afd 7a239ce7 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2024/03/19 21:39 android14-6.1 e623dd5ac2ac e104824c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_setsockopt
2024/03/19 21:54 android14-6.1 e623dd5ac2ac e104824c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
* Struck through repros no longer work on HEAD.