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: 246d, 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 (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-5-15 BUG: soft lockup in sock_setsockopt origin:upstream C 23 3d11h 246d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt C error 39 12h52m 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 3d03h 241d 0/3 upstream: reported C repro on 2024/03/24 19:22
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/11/10 07:47 9m retest repro android14-6.1 report log
2024/11/10 07:47 11m retest repro android14-6.1 report log
2024/11/10 07:47 11m retest repro android14-6.1 report log
2024/10/24 15:11 13m retest repro android14-6.1 report log
2024/10/07 15:12 15m retest repro android14-6.1 report log
2024/09/12 01:09 15m retest repro android14-6.1 report log

Sample crash report:
RBP: 00007f8f21325338 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000540 R11: 0000000000000246 R12: 00007f8f21325330
R13: 00007f8f2132533c R14: 00007ffd93a44880 R15: 00007ffd93a44968
 </TASK>
watchdog: BUG: soft lockup - CPU#1 stuck for 225s! [syz-executor952:636]
Modules linked in:
CPU: 1 PID: 636 Comm: syz-executor952 Not tainted 6.1.99-syzkaller-00109-g0e8b65e41ffd #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024
RIP: 0010:memcmp lib/string.c:776 [inline]
RIP: 0010:bcmp+0x18e/0x200 lib/string.c:797
Code: ff df e9 1d ff ff ff 4d 85 f6 74 71 31 db 49 8d 3c 1c 48 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 75 2c 45 0f b6 2c 1c 49 8d 3c 1f <48> 89 f8 48 c1 e8 03 0f b6 04 10 84 c0 75 2a 41 0f b6 04 1f 41 29
RSP: 0018:ffffc90001776838 EFLAGS: 00000246
RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000001776802
RDX: dffffc0000000000 RSI: ffffc900017768e0 RDI: ffffc900017768e3
RBP: ffffc90001776870 R08: ffffffff84fb6e44 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: ffff88812758b068
R13: 000000000000003c R14: 0000000000000004 R15: ffffc900017768e0
FS:  00007f8f2123b6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000012762d000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 _Z6memcmpPKvU17pass_object_size0S0_U17pass_object_size0m include/linux/fortify-string.h:549 [inline]
 rhashtable_compare include/linux/rhashtable.h:577 [inline]
 __rhashtable_lookup include/linux/rhashtable.h:602 [inline]
 rhashtable_lookup include/linux/rhashtable.h:638 [inline]
 tipc_sk_lookup+0x316/0x660 net/tipc/socket.c:3001
 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 net/tipc/socket.c:1316 [inline]
 tipc_sk_filter_connect net/tipc/socket.c:2255 [inline]
 tipc_sk_filter_rcv+0x194e/0x3390 net/tipc/socket.c:2364
 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:2942
 release_sock net/core/sock.c:3516 [inline]
 sockopt_release_sock+0x9a/0x1f0 net/core/sock.c:1067
 sk_setsockopt+0x165d/0x3160
 sock_setsockopt+0x59/0x70 net/core/sock.c:1549
 __sys_setsockopt+0x423/0x8b0 net/socket.c:2269
 __do_sys_setsockopt net/socket.c:2284 [inline]
 __se_sys_setsockopt net/socket.c:2281 [inline]
 __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2281
 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:0x7f8f2129b3e9
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:00007f8f2123b228 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f8f2123b6c0 RCX: 00007f8f2129b3e9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f8f21325338 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000540 R11: 0000000000000246 R12: 00007f8f21325330
R13: 00007f8f2132533c R14: 00007ffd93a44880 R15: 00007ffd93a44968
 </TASK>

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