[Android 5.10] BUG: soft lockup in sys_sendmsg

0 views
Skip to first unread message

syzbot

unread,
Mar 22, 2024, 6:41:22 AMMar 22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: e7daca75b4c3 ANDROID: GKI: db845c: Update symbols list and..
git tree: android13-5.10-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=1001e879180000
kernel config: https://syzkaller.appspot.com/x/.config?x=1a6e39f6bdc97aed
dashboard link: https://syzkaller.appspot.com/bug?extid=0c30fc1601f05dec0958
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=142d1a81180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11de4ec9180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/cec0e413e034/disk-e7daca75.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e97d4453b5ff/vmlinux-e7daca75.xz
kernel image: https://storage.googleapis.com/syzbot-assets/3d97ddfb5394/bzImage-e7daca75.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0c30fc...@syzkaller.appspotmail.com

watchdog: BUG: soft lockup - CPU#1 stuck for 123s! [syz-executor965:1526]
Modules linked in:
CPU: 1 PID: 1526 Comm: syz-executor965 Not tainted 5.10.209-syzkaller-00001-ge7daca75b4c3 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/29/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 55 4c d5 03 f4 eb 0e 0f 1f 44 00 00 0f 00 2d 46 4c 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:ffffc90000e17680 EFLAGS: 00000246
RAX: 0000000000000003 RBX: 1ffff920001c2ed4 RCX: ffffffff8150b554
RDX: 0000000000000001 RSI: 0000000000000003 RDI: ffffc90000e176c0
RBP: ffffc90000e17730 R08: dffffc0000000000 R09: ffffed1021bc4b32
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: ffff88810de25988 R14: 0000000000000003 R15: 0000000000000246
FS: 00007fa397d0a6c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 000000010b9d3000 CR4: 00000000003506a0
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:3105
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_sendmsg net/socket.c:2459 [inline]
__do_sys_sendmsg net/socket.c:2468 [inline]
__se_sys_sendmsg+0x1b1/0x280 net/socket.c:2466
__x64_sys_sendmsg+0x7b/0x90 net/socket.c:2466
do_syscall_64+0x34/0x70
entry_SYSCALL_64_after_hwframe+0x61/0xc6
RIP: 0033:0x7fa397d493e9
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:00007fa397d0a228 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 000000000000000d RCX: 00007fa397d493e9
RDX: 0000000000000000 RSI: 00000000200003c0 RDI: 0000000000000004
RBP: 00007fa397dd3328 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fa397dd3320
R13: 00007fa397dd332c R14: 00007ffea1da84c0 R15: 00007ffea1da85a8


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Mar 22, 2024, 6:44:20 AMMar 22
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 993bed180178 Merge "Merge branch 'android13-5.15' into bra..
git tree: android13-5.15-lts
console output: https://syzkaller.appspot.com/x/log.txt?x=13dfd769180000
kernel config: https://syzkaller.appspot.com/x/.config?x=49ce29477ba81e8f
dashboard link: https://syzkaller.appspot.com/bug?extid=5ef6a2b82131f5edf7ba
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12a6eaa5180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1259def1180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/4098d24d4c8b/disk-993bed18.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/94fbc07ac02d/vmlinux-993bed18.xz
kernel image: https://storage.googleapis.com/syzbot-assets/eed14de06c19/bzImage-993bed18.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+5ef6a2...@syzkaller.appspotmail.com

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>
Reply all
Reply to author
Forward
0 new messages