syzbot


BUG: soft lockup in x64_sys_call

Status: premoderation: reported syz repro on 2025/02/10 08:39
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+cc2152ded8a91925cc16@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Bug presence (2)
Date Name Commit Repro Result
2025/02/10 lts (merge base) c63962be84ef C [report] BUG: soft lockup in sock_setsockopt
2025/02/10 upstream (ToT) a64dcfb451e2 C Failed due to an error; will retry later
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 BUG: soft lockup in x64_sys_call origin:upstream C 26 4d09h 182d 0/2 upstream: reported C repro on 2024/08/25 04:51
linux-5.15 INFO: rcu detected stall in x64_sys_call 1 240d 240d 0/3 auto-obsoleted due to no activity on 2024/10/06 02:18
upstream INFO: rcu detected stall in x64_sys_call usb input mm syz error 216 10d 167d 0/28 upstream: reported syz repro on 2024/09/09 20:48

Sample crash report:
RBP: 00007fbde920e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbde93a5fa0 R15: 00007ffd0061f8d8
 </TASK>
watchdog: BUG: soft lockup - CPU#0 stuck for 246s! [syz.2.97:906]
Modules linked in:
CPU: 0 PID: 906 Comm: syz.2.97 Not tainted 6.1.124-syzkaller-00004-g1ac09f5c0571 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:native_safe_halt arch/x86/include/asm/irqflags.h:51 [inline]
RIP: 0010:arch_safe_halt arch/x86/include/asm/irqflags.h:89 [inline]
RIP: 0010:kvm_wait+0x147/0x180 arch/x86/kernel/kvm.c:1064
Code: 4c 89 e8 48 c1 e8 03 42 0f b6 04 20 84 c0 44 8b 74 24 1c 75 34 41 0f b6 45 00 44 38 f0 75 10 66 90 0f 00 2d ab de 50 04 fb f4 <e9> 24 ff ff ff fb e9 1e ff ff ff 44 89 e9 80 e1 07 38 c1 7c a3 4c
RSP: 0018:ffffc9000118f760 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff92000231ef0 RCX: ffffffff8522878c
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88810f7c2898
RBP: ffffc9000118f810 R08: dffffc0000000000 R09: ffffed1021ef8514
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88810f7c2898 R14: 0000000000000003 R15: 1ffff92000231ef4
FS:  00007fbde9fcb6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000400000000000 CR3: 000000011d196000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <IRQ>
 </IRQ>
 <TASK>
 pv_wait arch/x86/include/asm/paravirt.h:603 [inline]
 pv_wait_head_or_lock kernel/locking/qspinlock_paravirt.h:470 [inline]
 __pv_queued_spin_lock_slowpath+0x6de/0xda0 kernel/locking/qspinlock.c:511
 pv_queued_spin_lock_slowpath arch/x86/include/asm/paravirt.h:591 [inline]
 queued_spin_lock_slowpath arch/x86/include/asm/qspinlock.h:51 [inline]
 queued_spin_lock include/asm-generic/qspinlock.h:114 [inline]
 do_raw_spin_lock include/linux/spinlock.h:187 [inline]
 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:127 [inline]
 _raw_spin_lock_bh+0x139/0x1b0 kernel/locking/spinlock.c:178
 spin_lock_bh include/linux/spinlock.h:356 [inline]
 lock_sock_nested+0x92/0x300 net/core/sock.c:3507
 lock_sock include/net/sock.h:1769 [inline]
 tipc_sendstream+0x47/0x70 net/tipc/socket.c:1549
 sock_sendmsg_nosec net/socket.c:716 [inline]
 __sock_sendmsg net/socket.c:728 [inline]
 ____sys_sendmsg+0x5d3/0x9a0 net/socket.c:2509
 ___sys_sendmsg net/socket.c:2563 [inline]
 __sys_sendmsg+0x2a9/0x390 net/socket.c:2592
 __do_sys_sendmsg net/socket.c:2601 [inline]
 __se_sys_sendmsg net/socket.c:2599 [inline]
 __x64_sys_sendmsg+0x7f/0x90 net/socket.c:2599
 x64_sys_call+0x16a/0x9a0 arch/x86/include/generated/asm/syscalls_64.h:47
 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:0x7fbde918cde9
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:00007fbde9fcb038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fbde93a5fa0 RCX: 00007fbde918cde9
RDX: 0000000000000000 RSI: 0000400000000500 RDI: 0000000000000004
RBP: 00007fbde920e2a0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007fbde93a5fa0 R15: 00007ffd0061f8d8
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 907 Comm: syz.2.97 Not tainted 6.1.124-syzkaller-00004-g1ac09f5c0571 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 12/27/2024
RIP: 0010:__sanitizer_cov_trace_const_cmp4+0x80/0x90 kernel/kcov.c:315
Code: 8d 42 28 4c 39 c8 77 22 89 f8 89 f6 49 ff c2 4c 89 11 48 c7 44 0a 08 05 00 00 00 48 89 44 0a 10 48 89 74 0a 18 4c 89 44 0a 20 <5d> c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 55 48 89 e5 4c 8b
RSP: 0018:ffffc90000e2e7b0 EFLAGS: 00000293
RAX: 0000000000000000 RBX: 0000000000000005 RCX: ffffffff84fd741e
RDX: ffff88811cfb8000 RSI: 0000000000000005 RDI: 0000000000000000
RBP: ffffc90000e2e7b0 R08: ffffffff84fd7455 R09: ffffed1021ef8511
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88810f7c2800 R14: 0000000086b78ec1 R15: ffffc90000e2ec00
FS:  00007fbde9faa6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fbde9fa9f98 CR3: 000000011d196000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __refcount_sub_and_test include/linux/refcount.h:282 [inline]
 __refcount_dec_and_test include/linux/refcount.h:315 [inline]
 refcount_dec_and_test include/linux/refcount.h:333 [inline]
 sock_put include/net/sock.h:2048 [inline]
 tipc_sk_rcv+0x1355/0x1c40 net/tipc/socket.c:2502
 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:1131 [inline]
 __release_sock+0x145/0x410 net/core/sock.c:2945
 release_sock net/core/sock.c:3519 [inline]
 sockopt_release_sock+0x9a/0x1f0 net/core/sock.c:1067
 sk_setsockopt+0x1672/0x31e0
 sock_setsockopt+0x59/0x70 net/core/sock.c:1552
 __sys_setsockopt+0x423/0x8b0 net/socket.c:2274
 __do_sys_setsockopt net/socket.c:2289 [inline]
 __se_sys_setsockopt net/socket.c:2286 [inline]
 __x64_sys_setsockopt+0xbf/0xd0 net/socket.c:2286
 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:0x7fbde918cde9
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:00007fbde9faa038 EFLAGS: 00000246 ORIG_RAX: 0000000000000036
RAX: ffffffffffffffda RBX: 00007fbde93a6080 RCX: 00007fbde918cde9
RDX: 0000000000000021 RSI: 0000000000000001 RDI: 0000000000000003
RBP: 00007fbde920e2a0 R08: 0000000000000004 R09: 0000000000000000
R10: 0000400000000540 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000001 R14: 00007fbde93a6080 R15: 00007ffd0061f8d8
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/02/10 08:38 android14-6.1 1ac09f5c0571 ef44b750 .config console log report syz / log [disk image] [vmlinux] [kernel image] ci2-android-6-1 BUG: soft lockup in x64_sys_call
* Struck through repros no longer work on HEAD.