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: 647d, last: 11d
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 2004d 2000d 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 4 19d 367d 0/3 upstream: reported C repro on 2024/12/25 11:22
upstream BUG: soft lockup in sock_setsockopt bpf 1 1 2201d 2201d 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 10 12d 642d 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 36 19h06m 647d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt 1 C error 85 3d21h 647d 0/2 upstream: reported C repro on 2024/03/19 19:29
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/12/16 11:09 56m retest repro android14-6.1 report log
2025/12/14 20:16 10m retest repro android14-6.1 report log
2025/11/30 09:04 14m retest repro android14-6.1 report log
2025/11/30 09:04 18m retest repro android14-6.1 report log
2025/11/23 07:21 10m retest repro android14-6.1 report log
2025/11/07 10:20 19m retest repro android14-6.1 report log
2025/11/07 10:20 18m 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: 00007ff788213f91 R08: 0000000000000004 R09: 0000000000000000
R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff7883e6038 R14: 00007ff7883e5fa0 R15: 00007ffe6fcbed48
 </TASK>
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz.2.8059:24649]
Modules linked in:
CPU: 0 PID: 24649 Comm: syz.2.8059 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__raw_callee_save___pv_queued_spin_unlock+0x10/0x17
Code: 41 51 41 52 41 53 e8 bb 09 00 00 41 5b 41 5a 41 59 41 58 5f 5e 5a 59 5d c3 90 55 48 89 e5 52 b8 01 00 00 00 31 d2 f0 0f b0 17 <3c> 01 75 03 5a 5d c3 56 0f b6 f0 e8 bc ff ff ff 5e 5a 5d c3 0f 1f
RSP: 0018:ffffc900007868b0 EFLAGS: 00000246
RAX: 0000000000000001 RBX: ffff88812a911600 RCX: dffffc0000000000
RDX: 0000000000000000 RSI: 0000000086ed8b35 RDI: ffffc90000786d74
RBP: ffffc900007868b8 R08: 0000000000000004 R09: 0000000000000003
R10: fffff520000f0d0c R11: 1ffff920000f0d0c R12: ffff888112180000
R13: dffffc0000000000 R14: ffffc90000786d60 R15: 0000000086ed8b35
FS:  00007ff788fc16c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000000000 CR3: 000000012fcfd000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 pv_queued_spin_unlock arch/x86/include/asm/paravirt.h:596 [inline]
 queued_spin_unlock arch/x86/include/asm/qspinlock.h:57 [inline]
 do_raw_spin_unlock include/linux/spinlock.h:204 [inline]
 __raw_spin_unlock_bh include/linux/spinlock_api_smp.h:166 [inline]
 _raw_spin_unlock_bh+0x41/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+0x40e/0x2cc0 net/tipc/socket.c:2491
 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:1137 [inline]
 __release_sock+0x154/0x380 net/core/sock.c:2950
 release_sock net/core/sock.c:3524 [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:0x7ff78818f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff788fc1038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007ff7883e5fa0 RCX: 00007ff78818f749
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007ff788213f91 R08: 0000000000000004 R09: 0000000000000000
R10: 00002000000001c0 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff7883e6038 R14: 00007ff7883e5fa0 R15: 00007ffe6fcbed48
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 24648 Comm: syz.2.8059 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
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+0xf2/0x140 arch/x86/kernel/kvm.c:1064
Code: 96 13 04 f4 eb 9a 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 30 96 13 04 fb f4 <e9> 71 ff ff ff fb e9 6b ff ff ff e8 de 16 b9 03 89 f9 80 e1 07 38
RSP: 0018:ffffc900007578a0 EFLAGS: 00000246
RAX: 0000000000000003 RBX: ffff88811283cf98 RCX: ffffffff84f48de2
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88811283cf98
RBP: ffffc90000757930 R08: dffffc0000000000 R09: ffffed10225079f4
R10: ffffed10225079f4 R11: 1ffff110225079f3 R12: 1ffff1103ee20001
R13: ffff8881f7138cd4 R14: dffffc0000000000 R15: 1ffff920000eaf14
FS:  000055558d82d500(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc5c360dd8 CR3: 000000012fcfd000 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+0x690/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+0xd8/0xe0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x92/0x280 net/core/sock.c:3512
 lock_sock include/net/sock.h:1805 [inline]
 tipc_release+0xb2/0x1650 net/tipc/socket.c:639
 __sock_release net/socket.c:652 [inline]
 sock_close+0xf1/0x290 net/socket.c:1390
 __fput+0x1fc/0x8f0 fs/file_table.c:320
 ____fput+0x15/0x20 fs/file_table.c:348
 task_work_run+0x1db/0x240 kernel/task_work.c:203
 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
 exit_to_user_mode_loop+0x9b/0xb0 kernel/entry/common.c:177
 exit_to_user_mode_prepare+0x87/0xd0 kernel/entry/common.c:210
 __syscall_exit_to_user_mode_work kernel/entry/common.c:292 [inline]
 syscall_exit_to_user_mode+0x1a/0x30 kernel/entry/common.c:303
 do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7ff78818f749
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe6fcbeea8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007ff7883e7da0 RCX: 00007ff78818f749
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007ff7883e7da0 R08: 0000000000000000 R09: 000000036fcbf19f
R10: 00007ff7883e7cb0 R11: 0000000000000246 R12: 0000000000043ae1
R13: 00007ff7883e6090 R14: ffffffffffffffff R15: 00007ffe6fcbefc0
 </TASK>

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