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: 327d, last: 10d
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 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1684d 1680d 0/28 auto-closed as invalid on 2020/09/30 02:55
linux-6.1 BUG: soft lockup in sock_setsockopt origin:upstream C 3 11d 47d 0/3 upstream: reported C repro on 2024/12/25 11:22
upstream BUG: soft lockup in sock_setsockopt bpf 1 1881d 1881d 0/28 auto-closed as invalid on 2020/04/16 03:54
linux-5.15 INFO: rcu detected stall in sock_setsockopt origin:upstream C 6 1d11h 322d 0/3 upstream: reported C repro on 2024/03/24 19:22
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream C 28 10d 327d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt C error 47 5d08h 327d 0/2 upstream: reported C repro on 2024/03/19 19:29
Last patch testing requests (7)
Created Duration User Patch Repo Result
2025/01/19 08:22 10m retest repro android14-6.1 report log
2025/01/19 08:22 14m retest repro android14-6.1 report log
2025/01/19 08:22 37m retest repro android14-6.1 OK log
2025/01/04 07:36 11m retest repro android14-6.1 report log
2024/12/17 12:08 13m retest repro android14-6.1 report log
2024/11/24 09:55 18m retest repro android14-6.1 report log
2024/11/24 09:55 15m retest repro android14-6.1 report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 225s! [syz-executor357:560]
Modules linked in:
CPU: 0 PID: 560 Comm: syz-executor357 Not tainted 6.1.124-syzkaller-00113-g554eb9d61ac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:tipc_sk_lookup+0x75/0x660 net/tipc/socket.c:2996
Code: 48 8c 01 74 86 48 c7 44 24 50 10 78 fd 84 48 8d 54 24 40 48 c1 ea 03 48 b8 f1 f1 f1 f1 04 f3 f3 f3 48 89 54 24 30 48 89 04 1a <e8> 36 1c 78 fc 49 c1 ec 03 41 0f b6 04 1c 84 c0 0f 85 33 05 00 00
RSP: 0018:ffffc900014b66e0 EFLAGS: 00000a06
RAX: f3f3f304f1f1f1f1 RBX: dffffc0000000000 RCX: 0000000000000202
RDX: 1ffff92000296ce4 RSI: 000000001a939983 RDI: ffff888111ef4600
RBP: ffffc900014b67b0 R08: ffffffff84fd5e9b R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffffc900014b6740
R13: ffffc900014b6c00 R14: 000000001a939983 R15: ffff888111ef4600
FS:  00007f5acb56f6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5acb56fd58 CR3: 0000000124b33000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 tipc_sk_rcv+0x45c/0x1c40 net/tipc/socket.c:2492
 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_rcv+0x1306/0x1c40 net/tipc/socket.c:2501
 tipc_node_xmit+0x34e/0xe40 net/tipc/node.c:1703
 tipc_sk_push_backlog+0x4da/0x7b0 net/tipc/socket.c:1316
 tipc_sk_conn_proto_rcv net/tipc/socket.c:1370 [inline]
 tipc_sk_proto_rcv+0xad5/0x1750 net/tipc/socket.c:2158
 tipc_sk_filter_rcv+0x3155/0x3390 net/tipc/socket.c:2352
 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:2945
 release_sock net/core/sock.c:3519 [inline]
 sockopt_release_sock+0x9a/0x1f0 net/core/sock.c:1067
 sk_setsockopt+0x1672/0x31e0
 sock_setsockopt+0x59/0x70 net/core/sock.c:1552
 __sys_setsockopt+0x423/0x8b0 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+0x1a2/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5acb5da319
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1e 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:00007f5acb56f228 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f5acb56f6c0 RCX: 00007f5acb5da319
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f5acb663198 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000540 R11: 0000000000000246 R12: 00007f5acb663190
R13: 00007f5acb66319c R14: 00007fff22337e90 R15: 00007fff22337f78
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 559 Comm: syz-executor357 Not tainted 6.1.124-syzkaller-00113-g554eb9d61ac0 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
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+0x147/0x180 arch/x86/kernel/kvm.c:1064
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d ab de 50 04 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc90001497760 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000292ef0 RCX: ffffffff8522775c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8881249c5498
RBP: ffffc90001497810 R08: dffffc0000000000 R09: ffffed1024938a94
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff8881249c5498 R14: 0000000000000003 R15: 1ffff92000292ef4
FS:  00007f5acb5906c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5acb65b0f0 CR3: 0000000124b33000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <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+0x6de/0xda0 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 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+0x139/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x92/0x300 net/core/sock.c:3507
 lock_sock include/net/sock.h:1769 [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+0x5d3/0x9a0 net/socket.c:2509
 ___sys_sendmsg net/socket.c:2563 [inline]
 __sys_sendmsg+0x2a9/0x390 net/socket.c:2592
 __do_sys_sendmsg net/socket.c:2601 [inline]
 __se_sys_sendmsg net/socket.c:2599 [inline]
 __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2599
 x64_sys_call+0x16a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f5acb5da319
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1e 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:00007f5acb590228 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 0000000000000014 RCX: 00007f5acb5da319
RDX: 0000000000000000 RSI: 00000000200002c0 RDI: 0000000000000004
RBP: 00007f5acb663188 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f5acb663180
R13: 00007f5acb66318c R14: 00007fff22337e90 R15: 00007fff22337f78
 </TASK>

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