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: 70d, last: 9d18h
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 1427d 1423d 0/26 auto-closed as invalid on 2020/09/30 02:55
upstream BUG: soft lockup in sock_setsockopt bpf 1 1624d 1624d 0/26 auto-closed as invalid on 2020/04/16 03:54
android-5-15 BUG: soft lockup in sock_setsockopt origin:upstream C 18 3d16h 70d 0/2 upstream: reported C repro on 2024/03/19 21:44
android-5-10 BUG: soft lockup in sock_setsockopt C 30 9d12h 70d 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 3 23d 65d 0/3 upstream: reported C repro on 2024/03/24 19:22
Last patch testing requests (6)
Created Duration User Patch Repo Result
2024/05/19 20:49 18m retest repro android14-6.1 report log
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#1 stuck for 245s! [syz-executor233:1090]
Modules linked in:
CPU: 1 PID: 1090 Comm: syz-executor233 Not tainted 6.1.75-syzkaller-00089-g1794308d463f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:preempt_latency_start kernel/sched/core.c:5860 [inline]
RIP: 0010:preempt_count_add+0x82/0x1a0 kernel/sched/core.c:5886
Code: f2 00 00 00 83 3d bd 09 44 06 00 75 11 65 8b 05 1c 17 b3 7e 0f b6 c0 3d f5 00 00 00 73 6e 65 8b 05 0b 17 b3 7e 25 ff ff ff 7f <39> d8 75 57 4c 8b 75 08 4c 89 f7 e8 7e 31 09 00 85 c0 74 1f 48 8b
RSP: 0018:ffffc90001ac6898 EFLAGS: 00000202

RAX: 0000000000000402 RBX: 0000000000000201 RCX: ffffffff87936003
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000201
RBP: ffffc90001ac68b0 R08: ffffffff84db33a5 R09: ffffed1024810bd1
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffffc90001ac6db4 R14: 00000000bb739ba3 R15: dffffc0000000000
FS:  00007f914f0d06c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f914f19a29c CR3: 000000012431c000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 __local_bh_disable_ip include/linux/bottom_half.h:13 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:125 [inline]
 _raw_spin_lock_bh+0x6e/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:355 [inline]
 tipc_skb_peek_port net/tipc/msg.h:1225 [inline]
 tipc_sk_rcv+0x29c/0x1c40 net/tipc/socket.c:2491
 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:2940
 release_sock net/core/sock.c:3514 [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: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
 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:0x7f914f10f3a9
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:00007f914f0d0228 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f914f0d06c0 RCX: 00007f914f10f3a9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f914f199328 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000040 R11: 0000000000000246 R12: 00007f914f199320
R13: 00007f914f19932c R14: 00007fff6d0bd3d0 R15: 00007fff6d0bd4b8
 </TASK>

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