syzbot


BUG: soft lockup in sys_sendmmsg

Status: premoderation: reported on 2024/08/19 00:01
Reported-by: syzbot+38755c701c827130adb2@syzkaller.appspotmail.com
First crash: 40d, last: 40d
Similar bugs (11)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 BUG: soft lockup in sys_sendmmsg 2 455d 483d 0/3 auto-obsoleted due to no activity on 2023/10/08 22:57
android-5-15 BUG: soft lockup in sys_sendmmsg 1 124d 124d 0/2 auto-obsoleted due to no activity on 2024/08/24 08:55
android-6-1 BUG: soft lockup in sys_sendmmsg 1 336d 336d 0/2 auto-obsoleted due to no activity on 2024/01/25 01:21
upstream INFO: rcu detected stall in sys_sendmmsg (6) mm net 3 290d 336d 0/28 auto-obsoleted due to no activity on 2024/03/11 17:33
linux-6.1 INFO: rcu detected stall in sys_sendmmsg 2 65d 111d 0/3 upstream: reported on 2024/06/08 04:23
linux-5.15 INFO: rcu detected stall in sys_sendmmsg 1 542d 542d 0/3 auto-obsoleted due to no activity on 2023/08/02 15:37
upstream INFO: rcu detected stall in sys_sendmmsg (3) kernel 3 995d 1095d 0/28 closed as invalid on 2022/02/08 10:00
linux-5.15 INFO: rcu detected stall in sys_sendmmsg (2) 1 141d 141d 0/3 auto-obsoleted due to no activity on 2024/08/17 11:17
upstream INFO: rcu detected stall in sys_sendmmsg (5) net 3 481d 494d 0/28 auto-obsoleted due to no activity on 2023/09/03 00:09
linux-5.15 INFO: rcu detected stall in sys_sendmmsg (3) 1 3d00h 3d00h 0/3 upstream: reported on 2024/09/24 23:49
upstream INFO: rcu detected stall in sys_sendmmsg (4) net 1 793d 793d 0/28 auto-obsoleted due to no activity on 2022/10/25 00:28

Sample crash report:
watchdog: BUG: soft lockup - CPU#0 stuck for 123s! [syz.1.1294:6517]
Modules linked in:
CPU: 0 PID: 6517 Comm: syz.1.1294 Tainted: G        W         5.10.223-syzkaller-01561-g0890c03b8b7d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:native_restore_fl arch/x86/include/asm/irqflags.h:41 [inline]
RIP: 0010:arch_local_irq_restore arch/x86/include/asm/irqflags.h:84 [inline]
RIP: 0010:kvm_wait+0xfc/0x150 arch/x86/kernel/kvm.c:926
Code: 38 f0 75 26 41 f7 c7 00 02 00 00 75 0f 0f 1f 44 00 00 0f 00 2d 15 56 d5 03 f4 eb 0e 0f 1f 44 00 00 0f 00 2d 06 56 d5 03 fb f4 <4c> 89 7c 24 18 ff 74 24 18 9d 48 c7 44 24 20 0e 36 e0 45 49 c7 04
RSP: 0018:ffffc9000142f560 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000285eb0 RCX: ffffffff8150b334
RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffc9000142f5a0
RBP: ffffc9000142f610 R08: dffffc0000000000 R09: ffffed102171b652
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88810b8db288 R14: 0000000000000003 R15: 0000000000000246
FS:  00007f04ec5816c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b30505ff8 CR3: 0000000123858000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 pv_wait arch/x86/include/asm/paravirt.h:564 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x72f/0xc70 kernel/locking/qspinlock.c:508
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:554 [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:183 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:136 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:175
 spin_lock_bh include/linux/spinlock.h:359 [inline]
 lock_sock_nested+0x92/0x300 net/core/sock.c:3117
 lock_sock include/net/sock.h:1640 [inline]
 tipc_sendstream+0x47/0x70 net/tipc/socket.c:1540
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x59e/0x8f0 net/socket.c:2376
 ___sys_sendmsg+0x252/0x2e0 net/socket.c:2430
 __sys_sendmmsg+0x2c3/0x510 net/socket.c:2516
 __do_sys_sendmmsg net/socket.c:2545 [inline]
 __se_sys_sendmmsg net/socket.c:2542 [inline]
 __x64_sys_sendmmsg+0xa0/0xb0 net/socket.c:2542
 do_syscall_64+0x34/0x70
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f04ed924e79
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f04ec581038 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f04edac1058 RCX: 00007f04ed924e79
RDX: 0000000000000002 RSI: 0000000020002f00 RDI: 0000000000000003
RBP: 00007f04ed992916 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f04edac1058 R15: 00007ffd2594c2e8
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 6515 Comm: syz.1.1294 Tainted: G        W         5.10.223-syzkaller-01561-g0890c03b8b7d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/27/2024
RIP: 0010:__sanitizer_cov_trace_pc+0x0/0x60 kernel/kcov.c:190
Code: 00 00 00 0f 0b 0f 1f 44 00 00 55 48 89 e5 53 48 89 fb e8 13 00 00 00 48 8b 3d 54 fb 78 05 48 89 de e8 54 ef 3c 00 5b 5d c3 cc <55> 48 89 e5 48 8b 45 08 65 48 8b 0d 70 c4 97 7e 65 8b 15 75 c4 97
RSP: 0018:ffffc90000cd6938 EFLAGS: 00000206
RAX: 0000000000000002 RBX: 0000000000000004 RCX: ffffffff84990d4f
RDX: ffff88811017a780 RSI: 0000000000000005 RDI: 00000000ffffffff
RBP: ffffc90000cd6a30 R08: ffffffff84990d81 R09: ffffed102171b651
R10: 0000000000000000 R11: dffffc0000000001 R12: fffffffffffffc18
R13: ffff88810b8db200 R14: ffff88810b8db280 R15: 0000000000000005
FS:  00007f04ec5a26c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020004000 CR3: 0000000123858000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 tipc_sk_rcv+0x499/0x1e30 net/tipc/socket.c:2488
 tipc_node_xmit+0x34b/0xe30 net/tipc/node.c:1674
 tipc_node_xmit_skb+0x153/0x1b0 net/tipc/node.c:1739
 tipc_sk_rcv+0x1c0b/0x1e30 net/tipc/socket.c:2518
 tipc_node_xmit+0x34b/0xe30 net/tipc/node.c:1674
 tipc_sk_push_backlog net/tipc/socket.c:1306 [inline]
 tipc_sk_filter_connect net/tipc/socket.c:2253 [inline]
 tipc_sk_filter_rcv+0x1da8/0x3e00 net/tipc/socket.c:2362
 tipc_sk_enqueue net/tipc/socket.c:2442 [inline]
 tipc_sk_rcv+0x8a1/0x1e30 net/tipc/socket.c:2493
 tipc_node_xmit+0x34b/0xe30 net/tipc/node.c:1674
 tipc_node_xmit_skb net/tipc/node.c:1739 [inline]
 tipc_node_distr_xmit+0x36a/0x4d0 net/tipc/node.c:1754
 tipc_sk_backlog_rcv+0x18b/0x210 net/tipc/socket.c:2410
 sk_backlog_rcv include/net/sock.h:1050 [inline]
 __release_sock+0x148/0x410 net/core/sock.c:2583
 release_sock+0x65/0x1b0 net/core/sock.c:3134
 tipc_release+0xb6b/0x1440 net/tipc/socket.c:639
 __sock_release net/socket.c:597 [inline]
 sock_close+0xdf/0x270 net/socket.c:1286
 __fput+0x33d/0x7b0 fs/file_table.c:281
 ____fput+0x15/0x20 fs/file_table.c:314
 task_work_run+0x129/0x190 kernel/task_work.c:165
 tracehook_notify_resume include/linux/tracehook.h:188 [inline]
 exit_to_user_mode_loop+0xbf/0xd0 kernel/entry/common.c:172
 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline]
 syscall_exit_to_user_mode+0xa2/0x1a0 kernel/entry/common.c:274
 do_syscall_64+0x40/0x70 arch/x86/entry/common.c:56
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f04ed924e79
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f04ec5a2038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: 00000000000203a0 RBX: 00007f04edac0f80 RCX: 00007f04ed924e79
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000003
RBP: 00007f04ed992916 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f04edac0f80 R15: 00007ffd2594c2e8

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/08/19 00:02 android13-5.10-lts 0890c03b8b7d dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: soft lockup in sys_sendmmsg
2024/08/19 00:00 android13-5.10-lts 0890c03b8b7d dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 BUG: soft lockup in sys_sendmmsg
* Struck through repros no longer work on HEAD.