syzbot


BUG: soft lockup in sys_sendmsg

Status: upstream: reported C repro on 2024/03/22 10:44
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+5ef6a2b82131f5edf7ba@syzkaller.appspotmail.com
First crash: 121d, last: 4d23h
Bug presence (2)
Date Name Commit Repro Result
2024/03/22 lts (merge base) 6139f2a02fe0 C [report] BUG: soft lockup in sys_sendmsg
2024/04/05 upstream (ToT) e8b0ccb2a787 C [report] BUG: soft lockup in sys_setsockopt
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 BUG: soft lockup in sys_sendmsg origin:upstream C 3 75d 103d 0/2 upstream: reported C repro on 2024/04/09 06:46
linux-6.1 BUG: soft lockup in sys_sendmsg 2 405d 411d 0/3 auto-obsoleted due to no activity on 2023/09/20 17:26
android-5-10 BUG: soft lockup in sys_sendmsg C 32 7d12h 121d 0/2 upstream: reported C repro on 2024/03/22 10:41
upstream BUG: soft lockup in sys_sendmsg tipc batman C 3 118d 160d 26/27 fixed on 2024/05/22 23:36
linux-6.1 BUG: soft lockup in sys_sendmsg (2) origin:upstream C done 1 105d 105d 3/3 fixed on 2024/05/15 09:17
linux-6.1 INFO: rcu detected stall in sys_sendmsg 2 2d11h 17d 0/3 upstream: reported on 2024/07/04 07:16
linux-5.15 INFO: rcu detected stall in sys_sendmsg origin:upstream C 3 23d 123d 0/3 upstream: reported C repro on 2024/03/19 21:37
Last patch testing requests (2)
Created Duration User Patch Repo Result
2024/07/12 19:56 9m retest repro android13-5.15-lts report log
2024/05/03 19:45 9m retest repro android13-5.15-lts report log
Fix bisection attempts (1)
Created Duration User Patch Repo Result
2024/07/16 16:30 1h25m bisect fix android13-5.15-lts OK (0) job log log

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 144s! [syz-executor451:951]
Modules linked in:
CPU: 0 PID: 951 Comm: syz-executor451 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
RIP: 0010:trylock_clear_pending kernel/locking/qspinlock_paravirt.h:121 [inline]
RIP: 0010:pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:435 [inline]
RIP: 0010:__pv_queued_spin_lock_slowpath+0x5be/0xc40 kernel/locking/qspinlock.c:508
Code: dc c6 03 00 48 8b 44 24 10 0f b6 04 10 84 c0 0f 85 48 01 00 00 48 8b 44 24 08 c6 00 01 bb 00 80 ff ff eb 06 f3 90 ff c3 74 5e <41> 0f b6 44 15 00 84 c0 75 36 41 80 3f 00 75 ea 4c 89 ff be 02 00
RSP: 0018:ffffc90000b07740 EFLAGS: 00000286
RAX: 0000000000000000 RBX: 00000000ffffa8b7 RCX: ffffffff8154f88f
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88811e785e88
RBP: ffffc90000b07830 R08: dffffc0000000000 R09: ffffed1023cf0bd2
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881f7037ed4
R13: 1ffff11023cf0bd1 R14: 1ffff1103ee00001 R15: ffff88811e785e88
FS:  00007f88f53766c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000011eca2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:585 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:85 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:368 [inline]
 lock_sock_nested+0x97/0x300 net/core/sock.c:3258
 lock_sock include/net/sock.h:1676 [inline]
 tipc_sendstream+0x47/0x70 net/tipc/socket.c:1549
 sock_sendmsg_nosec net/socket.c:704 [inline]
 __sock_sendmsg net/socket.c:716 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2431
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2485
 __sys_sendmsg net/socket.c:2514 [inline]
 __do_sys_sendmsg net/socket.c:2523 [inline]
 __se_sys_sendmsg+0x19a/0x260 net/socket.c:2521
 __x64_sys_sendmsg+0x7b/0x90 net/socket.c:2521
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f88f53bd119
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1b 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:00007f88f5376228 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000000000c RCX: 00007f88f53bd119
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000004
RBP: 00007f88f5440328 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f88f5440320
R13: 00007f88f544032c R14: 00007ffd622ec750 R15: 00007ffd622ec838
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 952 Comm: syz-executor451 Not tainted 5.15.148-syzkaller-00718-g993bed180178 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/2024
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+0x19f/0x650 net/tipc/socket.c:2999
Code: 30 84 c0 4d 89 f4 48 89 54 24 20 0f 85 b3 02 00 00 8b 4a 08 8d 84 0e f3 be ad de 89 cb 81 c3 f3 be ad de 41 89 de 41 c1 c6 0e <41> f7 de 44 89 f1 c1 c1 0b 44 31 f0 29 c8 31 c3 89 c1 c1 c1 19 29
RSP: 0018:ffffc90000b16740 EFLAGS: 00000287
RAX: 000000007d605fee RBX: 000000009e54254b RCX: 00000000bfa66658
RDX: ffff88810b68e000 RSI: 00000000df0c3aa3 RDI: ffff88810b68e008
RBP: ffffc90000b16830 R08: ffffffff84aed2f8 R09: 0000000000000003
R10: fffff52000162cf8 R11: dffffc0000000001 R12: dffffc0000000000
R13: 1ffff92000162cf8 R14: 000000000952e795 R15: ffff88810b6a90de
FS:  00007f88f53556c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f88f5355d58 CR3: 000000011eca2000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 tipc_sk_rcv+0x459/0x1b50 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+0x1212/0x1b50 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+0xad0/0x1750 net/tipc/socket.c:2158
 tipc_sk_filter_rcv+0x3152/0x3380 net/tipc/socket.c:2352
 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:2719
 release_sock net/core/sock.c:3270 [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
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f88f53bd119
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 31 1b 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:00007f88f5355228 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007f88f53556c0 RCX: 00007f88f53bd119
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007f88f5440338 R08: 0000000000000004 R09: 0000000000000000
R10: 0000000020000540 R11: 0000000000000246 R12: 00007f88f5440330
R13: 00007f88f544033c R14: 00007ffd622ec750 R15: 00007ffd622ec838
 </TASK>

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/03/22 10:39 android13-5.15-lts 993bed180178 7a239ce7 .config console log report syz C [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendmsg
2024/06/04 15:46 android13-5.15-lts 79bd336c7a94 11f2afa5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendmsg
2024/05/08 11:43 android13-5.15-lts 5d96939590c0 4cf3f9b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_sendmsg
2024/04/19 11:56 android13-5.15-lts ad06eaf051cd af24b050 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendmsg
2024/04/17 20:14 android13-5.15-lts ad06eaf051cd acc528cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendmsg
2024/04/13 02:18 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 sys_sendmsg
2024/04/09 11:14 android13-5.15-lts 993bed180178 f3234354 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendmsg
2024/04/04 20:39 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 sys_sendmsg
2024/03/31 17:15 android13-5.15-lts 993bed180178 6baf5069 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 BUG: soft lockup in sys_sendmsg
2024/03/30 07:07 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 sys_sendmsg
2024/03/22 05:22 android13-5.15-lts 993bed180178 7a239ce7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15-perf BUG: soft lockup in sys_sendmsg
* Struck through repros no longer work on HEAD.