syzbot


BUG: soft lockup in sock_setsockopt

Status: upstream: reported C repro on 2024/03/19 21:44
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+32d41249a22c3c33a9b2@syzkaller.appspotmail.com
First crash: 246d, last: 3d08h
Bug presence (2)
Date Name Commit Repro Result
2024/03/20 lts (merge base) 6139f2a02fe0 C [report] BUG: soft lockup in sock_setsockopt
2024/04/03 upstream (ToT) b1e6ec0a0fd0 C [report] BUG: soft lockup in sys_setsockopt
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1603d 1599d 0/28 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1800d 1800d 0/28 auto-closed as invalid on 2020/04/16 03:54
android-6-1 BUG: soft lockup in sock_setsockopt origin:upstream C 7 11d 246d 0/2 upstream: reported C repro on 2024/03/19 21:39
android-5-10 BUG: soft lockup in sock_setsockopt C error 39 9h48m 246d 0/2 upstream: reported C repro on 2024/03/19 19:29
linux-5.15 INFO: rcu detected stall in sock_setsockopt origin:upstream C 4 3d00h 241d 0/3 upstream: reported C repro on 2024/03/24 19:22
Last patch testing requests (8)
Created Duration User Patch Repo Result
2024/11/18 05:05 11m retest repro android13-5.15-lts report log
2024/11/18 04:04 20m retest repro android13-5.15-lts report log
2024/10/27 20:22 16m retest repro android13-5.15-lts report log
2024/10/27 20:22 15m retest repro android13-5.15-lts report log
2024/10/27 20:22 1h05m retest repro android13-5.15-lts report log
2024/10/27 20:22 15m retest repro android13-5.15-lts report log
2024/10/20 04:41 13m retest repro android13-5.15-lts report log
2024/10/20 04:41 10m retest repro android13-5.15-lts report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#1 stuck for 246s! [syz-executor176:1821]
Modules linked in:
CPU: 1 PID: 1821 Comm: syz-executor176 Not tainted 5.15.165-syzkaller-01568-g80dd36dca275 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
RIP: 0010:preempt_count arch/x86/include/asm/preempt.h:27 [inline]
RIP: 0010:check_kcov_mode kernel/kcov.c:172 [inline]
RIP: 0010:write_comp_data kernel/kcov.c:227 [inline]
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x10/0x90 kernel/kcov.c:293
Code: 89 44 0a 20 49 ff c1 4c 89 09 5d c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 4c 8b 45 08 65 48 8b 15 00 06 92 7e <65> 8b 05 01 06 92 7e 25 00 01 ff 00 74 10 3d 00 01 00 00 75 5b 83
RSP: 0018:ffffc90001da69d0 EFLAGS: 00000213
RAX: 0000000000000001 RBX: 0000000000000005 RCX: ffffffff84ccb57a
RDX: ffff8881181e93c0 RSI: 0000000000000005 RDI: 0000000000000001
RBP: ffffc90001da69d0 R08: ffffffff84ccb594 R09: ffffed1022377db1
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff888111bbed00 R14: 000000004fc4ed62 R15: ffffc90001da6e20
FS:  00007f9cc72fb6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9cc72fbd58 CR3: 0000000120dfa000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 __refcount_sub_and_test include/linux/refcount.h:277 [inline]
 __refcount_dec_and_test include/linux/refcount.h:315 [inline]
 refcount_dec_and_test include/linux/refcount.h:333 [inline]
 sock_put include/net/sock.h:1920 [inline]
 tipc_sk_rcv+0x1244/0x1b50 net/tipc/socket.c:2502
 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+0x1212/0x1b50 net/tipc/socket.c:2501
 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/0x3380 net/tipc/socket.c:2364
 tipc_sk_enqueue net/tipc/socket.c:2445 [inline]
 tipc_sk_rcv+0x80c/0x1b50 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:1069 [inline]
 __release_sock+0x145/0x410 net/core/sock.c:2730
 release_sock net/core/sock.c:3281 [inline]
 sock_setsockopt+0x181a/0x2eb0 net/core/sock.c:1380
 __sys_setsockopt+0x423/0x840 net/socket.c:2194
 __do_sys_setsockopt net/socket.c:2209 [inline]
 __se_sys_setsockopt net/socket.c:2206 [inline]
 __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2206
 x64_sys_call+0x1a2/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:55
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f9cc735b4e9
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:00007f9cc72fb228 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f9cc73e5338 RCX: 00007f9cc735b4e9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f9cc73e5330 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000540 R11: 0000000000000246 R12: ffffffffffffffb0
R13: 00007f9cc73b2074 R14: 00007fffdf5eac80 R15: 00007fffdf5ead68
 </TASK>

Crashes (23):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/10/05 18:09 android13-5.15-lts 80dd36dca275 d7906eff .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/06/09 09:23 android13-5.15-lts 79bd336c7a94 82c05ab8 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
2024/05/07 23:51 android13-5.15-lts 5d96939590c0 cb2dcc0e .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/04/14 14:59 android13-5.15-lts 993bed180178 c8349e48 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
2024/04/12 04:57 android13-5.15-lts 993bed180178 27de0a5c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/24 21:03 android13-5.15-lts 993bed180178 0ea90952 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/24 19:56 android13-5.15-lts 993bed180178 0ea90952 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
2024/03/22 11:09 android13-5.15-lts 993bed180178 7a239ce7 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/22 08:17 android13-5.15-lts 993bed180178 7a239ce7 .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/19 21:55 android13-5.15-lts 993bed180178 e104824c .config strace log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/19 21:43 android13-5.15-lts 993bed180178 e104824c .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
2024/10/05 11:31 android13-5.15-lts 80dd36dca275 d7906eff .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/08/26 02:07 android13-5.15-lts 29d153aabd54 d7d32352 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/05/29 22:19 android13-5.15-lts 424f92bcbe8f 34889ee3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/05/11 22:20 android13-5.15-lts 5d96939590c0 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
2024/04/14 07:25 android13-5.15-lts 993bed180178 c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/04/07 01:09 android13-5.15-lts 993bed180178 ca620dd8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
2024/04/04 20:53 android13-5.15-lts 993bed180178 0ee3535e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/31 09:37 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/25 14:35 android13-5.15-lts 993bed180178 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/25 12:22 android13-5.15-lts 993bed180178 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/23 22:26 android13-5.15-lts 993bed180178 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sock_setsockopt
2024/03/23 11:51 android13-5.15-lts 993bed180178 0ea90952 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sock_setsockopt
* Struck through repros no longer work on HEAD.