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: 864d, last: 12d
Bug presence (2)
Date Name Commit Repro Result
2026/02/15 lts (merge base) e50b81c50fcb C [report] BUG: soft lockup in sock_close
2026/03/01 upstream (ToT) e2bd1b136926 C [report] BUG: soft lockup in x64_sys_call
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 2221d 2217d 0/29 auto-closed as invalid on 2020/09/30 02:55
linux-6.1 BUG: soft lockup in sock_setsockopt origin:upstream 1 syz, C error 4 236d 583d 0/3 upstream: reported C repro on 2024/12/25 11:22
upstream BUG: soft lockup in sock_setsockopt bpf 1 1 2418d 2417d 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 syz, C error 10 18d 859d 0/3 upstream: reported C repro on 2024/03/24 19:22
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream 1 syz, C error 41 35d 864d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt 1 syz, C error 106 8h57m 864d 0/2 upstream: reported C repro on 2024/03/19 19:29
Last patch testing requests (7)
Created Duration User Patch Repo Result
2026/07/17 21:11 14m retest repro android14-6.1 log
2026/07/17 21:11 16m retest repro android14-6.1 log
2026/07/17 21:11 31m retest repro android14-6.1 log
2026/07/17 21:11 31m retest repro android14-6.1 log
2026/07/17 21:11 15m retest repro android14-6.1 log
2026/06/04 03:27 16m retest repro android14-6.1 log
2026/06/04 03:27 18m retest repro android14-6.1 log
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2026/07/17 20:11 1h21m bisect fix android14-6.1 OK (0) job log log
2026/06/16 18:45 1h30m bisect fix android14-6.1 OK (0) job log log
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:
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz.2.185:881]
Modules linked in:
CPU: 0 PID: 881 Comm: syz.2.185 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026
RIP: 0010:__local_bh_enable_ip+0x4e/0x80 kernel/softirq.c:451
Code: 0b bf 7e 65 8b 05 4a 0b bf 7e a9 00 ff ff 00 75 19 48 c7 c7 60 0c 69 85 e8 2f ef b6 03 65 66 8b 05 a7 12 c0 7e 66 85 c0 75 22 <bf> 01 00 00 00 e8 c8 33 09 00 65 8b 05 19 0b bf 7e 85 c0 74 02 5d
RSP: 0018:ffffc90000aa6798 EFLAGS: 00000206
RAX: 0000000000000202 RBX: dffffc0000000000 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000000000201 RDI: ffffffff84d9b1aa
RBP: ffffc90000aa6798 R08: 0000000000000003 R09: 0000000000000004
R10: dffffc0000000000 R11: fffff52000154ce8 R12: ffffc90000aa6c00
R13: ffff8881220c9e80 R14: 00000000dee4c342 R15: 00000000dee4c342
FS:  00007f60625a46c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f60625a3ff8 CR3: 0000000122232000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:167 [inline]
 _raw_spin_unlock_bh+0x50/0x60 kernel/locking/spinlock.c:210
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 tipc_skb_peek_port net/tipc/msg.h:1235 [inline]
 tipc_sk_rcv+0x3da/0x2c20 net/tipc/socket.c:2493
 tipc_node_xmit+0x36f/0xd80 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x277/0x390 net/tipc/node.c:1783
 tipc_sk_rcv+0x1a04/0x2c20 net/tipc/socket.c:2503
 tipc_node_xmit+0x36f/0xd80 net/tipc/node.c:1703
 tipc_sk_push_backlog+0x4d3/0x7b0 net/tipc/socket.c:1316
 tipc_sk_conn_proto_rcv net/tipc/socket.c:1370 [inline]
 tipc_sk_proto_rcv+0x9c3/0x15b0 net/tipc/socket.c:2158
 tipc_sk_filter_rcv+0x2e22/0x3010 net/tipc/socket.c:2354
 tipc_sk_enqueue net/tipc/socket.c:2447 [inline]
 tipc_sk_rcv+0x7e7/0x2c20 net/tipc/socket.c:2499
 tipc_node_xmit+0x36f/0xd80 net/tipc/node.c:1703
 tipc_node_xmit_skb net/tipc/node.c:1768 [inline]
 tipc_node_distr_xmit+0x277/0x390 net/tipc/node.c:1783
 tipc_sk_backlog_rcv+0x174/0x220 net/tipc/socket.c:2414
 sk_backlog_rcv include/net/sock.h:1150 [inline]
 __release_sock+0x154/0x380 net/core/sock.c:2951
 release_sock net/core/sock.c:3527 [inline]
 sockopt_release_sock+0x95/0x1f0 net/core/sock.c:1067
 sk_setsockopt+0x1929/0x26b0 net/core/sock.c:1545
 sock_setsockopt+0x5a/0x70 net/core/sock.c:1552
 __sys_setsockopt+0x269/0x4e0 net/socket.c:2273
 __do_sys_setsockopt net/socket.c:2288 [inline]
 __se_sys_setsockopt net/socket.c:2285 [inline]
 __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2285
 x64_sys_call+0x124/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f606179de99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f60625a4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f6061a26090 RCX: 00007f606179de99
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f6061833eaf R08: 0000000000000004 R09: 0000000000000000
R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6061a26128 R14: 00007f6061a26090 R15: 00007fff57a9da38
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 880 Comm: syz.2.185 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/25/2026
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+0x105/0x150 arch/x86/kernel/kvm.c:1064
Code: 1b 33 04 f4 eb 87 fa 48 89 f8 48 c1 e8 03 42 0f b6 04 30 84 c0 75 3f 0f b6 07 40 38 f0 75 10 66 90 0f 00 2d cd 1b 33 04 fb f4 <e9> 5e ff ff ff fb e9 58 ff ff ff e8 eb 20 c5 03 89 f9 80 e1 07 38
RSP: 0018:ffffc90000a77660 EFLAGS: 00000246
RAX: 0000000000000003 RBX: ffff8881220c9e98 RCX: ffffffff85012019
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881220c9e98
RBP: ffffc90000a776f0 R08: ffff8881220c9e98 R09: 1ffff110244193d3
R10: dffffc0000000000 R11: ffffed10244193d4 R12: 1ffff110244193d3
R13: ffff8881f6f38cd4 R14: dffffc0000000000 R15: 1ffff9200014eecc
FS:  00007f60625c56c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 0000000122232000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x687/0xc40 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath+0x47/0x50 arch/x86/include/asm/qspinlock.h:51
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
 _raw_spin_lock_bh+0xe4/0xf0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x90/0x290 net/core/sock.c:3515
 lock_sock include/net/sock.h:1818 [inline]
 tipc_sendstream+0x47/0x70 net/tipc/socket.c:1549
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 ____sys_sendmsg+0x5fb/0x9c0 net/socket.c:2508
 ___sys_sendmsg+0x2a2/0x360 net/socket.c:2562
 __sys_sendmsg net/socket.c:2591 [inline]
 __do_sys_sendmsg net/socket.c:2600 [inline]
 __se_sys_sendmsg net/socket.c:2598 [inline]
 __x64_sys_sendmsg+0x20d/0x2e0 net/socket.c:2598
 x64_sys_call+0x171/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/common.c:46 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:76
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f606179de99
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f60625c5028 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007f6061a25fa0 RCX: 00007f606179de99
RDX: 0000000000048090 RSI: 0000200000000080 RDI: 0000000000000004
RBP: 00007f6061833eaf R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f6061a26038 R14: 00007f6061a25fa0 R15: 00007fff57a9da38
 </TASK>

Crashes (16):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/20 00:15 android14-6.1 c7e15f0bdc49 72524a66 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in sock_setsockopt
2025/11/30 19:41 android14-6.1 a92da54b7708 d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
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
2026/03/29 03:56 android14-6.1 1c08e57193aa b5ceaad2 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf BUG: soft lockup in sock_setsockopt
2026/05/17 08:26 android14-6.1 75487b40c943 de5aae85 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1-perf 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
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
* Struck through repros no longer work on HEAD.