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: 43d, 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 (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: soft lockup in sock_setsockopt (2) bpf 1 1400d 1396d 0/26 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1597d 1597d 0/26 auto-closed as invalid on 2020/04/16 03:54
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream C 16 4d03h 43d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt C 25 1d21h 43d 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 2 23d 38d 0/3 upstream: reported C repro on 2024/03/24 19:22
Last patch testing requests (5)
Created Duration User Patch Repo Result
2024/04/21 19:43 11m retest repro android14-6.1 report log
2024/04/21 19:43 10m retest repro android14-6.1 report log
2024/04/07 19:07 9m retest repro android14-6.1 report log
2024/04/07 19:07 11m retest repro android14-6.1 report log
2024/04/07 19:07 19m retest repro android14-6.1 report log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz-executor368:1930]
Modules linked in:
CPU: 0 PID: 1930 Comm: syz-executor368 Not tainted 6.1.68-syzkaller-00094-gd518ca9dbbe9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:rol32 include/linux/bitops.h:126 [inline]
RIP: 0010:jhash2 include/linux/jhash.h:139 [inline]
RIP: 0010:rht_key_get_hash include/linux/rhashtable.h:142 [inline]
RIP: 0010:rht_key_hashfn include/linux/rhashtable.h:159 [inline]
RIP: 0010:__rhashtable_lookup include/linux/rhashtable.h:596 [inline]
RIP: 0010:rhashtable_lookup include/linux/rhashtable.h:638 [inline]
RIP: 0010:tipc_sk_lookup+0x1d1/0x660 net/tipc/socket.c:3001
Code: f9 c1 c1 0b 44 31 f8 29 c8 31 c3 89 c1 c1 c1 19 29 cb 41 31 df 89 d9 c1 c1 10 41 29 cf 44 31 f8 44 89 f9 c1 c1 04 29 c8 31 c3 <c1> c0 0e 29 c3 41 31 df c1 c3 18 48 89 d0 48 c1 e8 03 42 0f b6 04
RSP: 0018:ffffc90001e966e0 EFLAGS: 00000286

RAX: 00000000f56e8130 RBX: 0000000082e716dd RCX: 0000000027cf6323
RDX: ffff88810e420000 RSI: 00000000dc472996 RDI: ffff88810e420008
RBP: ffffc90001e967b0 R08: ffffffff84da50fb R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88810dbe90da R14: 00000000dc472996 R15: 00000000327cf632
FS:  00007fba61b286c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba61b07d58 CR3: 0000000120513000 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:1129 [inline]
 __release_sock+0x145/0x410 net/core/sock.c:2932
 release_sock net/core/sock.c:3506 [inline]
 sockopt_release_sock+0x9a/0x1f0 net/core/sock.c:1065
 sk_setsockopt+0x236f/0x3100
 sock_setsockopt+0x59/0x70 net/core/sock.c:1547
 __sys_setsockopt+0x423/0x8b0 net/socket.c:2265
 __do_sys_setsockopt net/socket.c:2280 [inline]
 __se_sys_setsockopt net/socket.c:2277 [inline]
 __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2277
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fba61b673a9
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:00007fba61b28228 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fba61b286c0 RCX: 00007fba61b673a9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007fba61bf1328 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000540 R11: 0000000000000246 R12: 00007fba61bf1320
R13: 00007fba61bf132c R14: 00007ffe60f63940 R15: 00007ffe60f63a28
 </TASK>

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