[Android 6.1] invalid opcode in __traceiter_virtio_transport_alloc_pkt

0 views
Skip to first unread message

syzbot

unread,
Aug 11, 2025, 2:32:30 AMAug 11
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c750dc582629 ANDROID: gunyah: Fix use-after-free in gunyah..
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=15c90af0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=d0b51d1a351532ed
dashboard link: https://syzkaller.appspot.com/bug?extid=f3571f14e162ce11eaa2
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=116b79a2580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=162d7434580000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e54ce53b07d4/disk-c750dc58.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/158b1def9694/vmlinux-c750dc58.xz
kernel image: https://storage.googleapis.com/syzbot-assets/2fa86ce65f80/bzImage-c750dc58.xz

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

</TASK>
CFI failure at __traceiter_virtio_transport_alloc_pkt+0xac/0x110 include/trace/events/vsock_virtio_transport_common.h:39 (target: 0xffffc90000eb77a8; expected type: 0x7d8401ab)
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 300 Comm: syz-executor129 Not tainted 6.1.145-syzkaller-00002-gc750dc582629 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__traceiter_virtio_transport_alloc_pkt+0xac/0x110 include/trace/events/vsock_virtio_transport_common.h:39
Code: 8b 7e 08 8b 75 d4 8b 55 d0 8b 4d cc 44 8b 45 c8 44 8b 4d c4 8b 45 20 50 ff 75 b8 41 55 41 ba 55 fe 7b 82 45 03 54 24 fc 74 02 <0f> 0b 41 ff d4 48 83 c4 18 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80
RSP: 0018:ffffc90000eb77a8 EFLAGS: 00010a13

RAX: 0000000000000000 RBX: ffff8881034ddf28 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffc900000ed000
RBP: ffffc90000eb7808 R08: 000000008caef9d3 R09: 0000000000000000
R10: 0000000027bc6561 R11: 1ffff920001d6ec5 R12: ffffffff81711ed0
R13: 0000000000000001 R14: ffff8881034ddf28 R15: dffffc0000000000
FS: 000055558eb40380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000ffff CR3: 00000001220ac000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
trace_virtio_transport_alloc_pkt include/trace/events/vsock_virtio_transport_common.h:39 [inline]
virtio_transport_alloc_pkt+0x9ad/0xa00 net/vmw_vsock/virtio_transport_common.c:94
virtio_transport_send_pkt_info+0x2d5/0x650 net/vmw_vsock/virtio_transport_common.c:234
virtio_transport_reset net/vmw_vsock/virtio_transport_common.c:838 [inline]
virtio_transport_close net/vmw_vsock/virtio_transport_common.c:970 [inline]
virtio_transport_release+0x1de/0xb40 net/vmw_vsock/virtio_transport_common.c:998
__vsock_release+0xad/0x510 net/vmw_vsock/af_vsock.c:834
__vsock_release+0x384/0x510 net/vmw_vsock/af_vsock.c:845
vsock_release+0xb5/0x120 net/vmw_vsock/af_vsock.c:942
__sock_release net/socket.c:652 [inline]
sock_close+0xf1/0x290 net/socket.c:1390
__fput+0x1fc/0x8f0 fs/file_table.c:320
____fput+0x15/0x20 fs/file_table.c:348
task_work_run+0x1db/0x240 kernel/task_work.c:203
ptrace_notify+0x221/0x250 kernel/signal.c:2377
ptrace_report_syscall include/linux/ptrace.h:424 [inline]
ptrace_report_syscall_exit include/linux/ptrace.h:486 [inline]
syscall_exit_work+0x84/0x140 kernel/entry/common.c:258
syscall_exit_to_user_mode_prepare+0x1c/0x20 kernel/entry/common.c:285
__syscall_exit_to_user_mode_work kernel/entry/common.c:290 [inline]
syscall_exit_to_user_mode+0xd/0x30 kernel/entry/common.c:303
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f01a4f47a19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 1a 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffd5800c68 EFLAGS: 00000246
ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007fffd5800c80 RCX: 00007f01a4f47a19
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000000
RBP: 0000000000000001 R08: 00007fffd5800a07 R09: 0000000000000140
R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__traceiter_virtio_transport_alloc_pkt+0xac/0x110 include/trace/events/vsock_virtio_transport_common.h:39
Code: 8b 7e 08 8b 75 d4 8b 55 d0 8b 4d cc 44 8b 45 c8 44 8b 4d c4 8b 45 20 50 ff 75 b8 41 55 41 ba 55 fe 7b 82 45 03 54 24 fc 74 02 <0f> 0b 41 ff d4 48 83 c4 18 48 83 c3 18 48 89 d8 48 c1 e8 03 42 80
RSP: 0018:ffffc90000eb77a8 EFLAGS: 00010a13

RAX: 0000000000000000 RBX: ffff8881034ddf28 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffffc900000ed000
RBP: ffffc90000eb7808 R08: 000000008caef9d3 R09: 0000000000000000
R10: 0000000027bc6561 R11: 1ffff920001d6ec5 R12: ffffffff81711ed0
R13: 0000000000000001 R14: ffff8881034ddf28 R15: dffffc0000000000
FS: 000055558eb40380(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000002000ffff CR3: 00000001220ac000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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