From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-io1-f71.google.com (mail-io1-f71.google.com [209.85.166.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3BB93283CBF for ; Fri, 20 Jun 2025 10:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.71 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750413724; cv=none; b=cf8KaRn/ObFAFVDY3Dr/QZAXjKgdDbkybzAw/noyGrzE/w7gmlXzeLUY90sjn0517569Oo3a6o/sLaO0QKiC9dRWNL4PFOZTx6ewhFGavz4FteTWt4f/FCfonjAYZOJaK9hchFz6few99/mxBBjP76GeAprtmDYoOmaGnMfmUDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750413724; c=relaxed/simple; bh=VU+GLHUY2mjvc/k8o3ZxqcvlUjTLFZhvyB2Vze78KkI=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=mbOJJO3adQzs4+y5bW14UKA1TVfdDc+W2Zst8Bf1gdRDFW912wMmz0S08tyFcZyi1bQxtVqvCmJU6h8HNBmWWXOpB4jUjjU6TXWCydtcbwNLZjb7RaWK/9NV1zBMl1dFjV30NOuqHtubH1dzMl4TFZIt5MkjyHDq8p5a/kND09c= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.166.71 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-io1-f71.google.com with SMTP id ca18e2360f4ac-869e9667f58so298900839f.3 for ; Fri, 20 Jun 2025 03:02:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750413722; x=1751018522; h=to:from:subject:message-id:in-reply-to:date:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jH8c0Y9MbcfMH6/01kiQ7NkGjj1ac9cFpq0xsQJAnzo=; b=XcRQAqsDTj7aJC85Tf0JVZIvNahKv7jShjO38n3Yg9vdZgkKRf1hw2zSnzZJb+3oun K8Sk8rJtm7tLKpN+Re//Sv8t5YJWxQDVDCB28v8JKPxj3QeD4TOVIicIQ9IN50IsghbO UIWTcZwfXGrtYnLTHxWToiRpfFg5KTdzVo+4vSnFDM+Om736SCT+AfykBshbQpYADoUR MCLy+DQCK/Aoi1QejPn9MJari2dOJRERtHq2rZgbGomlWqX80+M5WU8fL9BXtoZpbS2V qSRApsJumJJqWZ5cUULj8w4E4R1rOV3pv4P1IUXOAUR3Y1O1q14/qob8YK6sbif8zdKY h6BQ== X-Gm-Message-State: AOJu0YyVDnYnWNkc3sw0sWobcccnUhHTXjwEZuYJ+v54dnrhkewN+7JR zTd0AGHS6r/DLeYbc1Rs+hottlJdm910ykEAdCBaKq8AiwB7awGoN3vGUCltMiCgmcKG8/eMliM r4Hyr4hCjCGQq67kqGysnLQm247t6a+7OQFPUDDLw+CKeDIXuIROUTJ3X6i4= X-Google-Smtp-Source: AGHT+IFVuQmX5ZXeHcjpicfS26eDYVqt03GdBZIFAUJW0Krcn12dvpydccWlFJhYe2wUYK1dxfaoSFaLHXewDksy5vpq2Aox3Dy8 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6e02:2703:b0:3dd:cb92:f148 with SMTP id e9e14a558f8ab-3de38ca2f07mr23062335ab.12.1750413722395; Fri, 20 Jun 2025 03:02:02 -0700 (PDT) Date: Fri, 20 Jun 2025 03:02:02 -0700 In-Reply-To: <20250620065432.1558000-1-lizhi.xu@windriver.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6855319a.a00a0220.137b3.0042.GAE@google.com> Subject: Re: [syzbot] [kernel?] KMSAN: kernel-infoleak in vmci_host_unlocked_ioctl (3) From: syzbot To: linux-kernel@vger.kernel.org, lizhi.xu@windriver.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: KMSAN: kernel-infoleak in vmci_host_unlocked_ioctl ===================================================== BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:114 [inline] BUG: KMSAN: kernel-infoleak in _inline_copy_to_user include/linux/uaccess.h:196 [inline] BUG: KMSAN: kernel-infoleak in _copy_to_user+0xcc/0x120 lib/usercopy.c:26 instrument_copy_to_user include/linux/instrumented.h:114 [inline] _inline_copy_to_user include/linux/uaccess.h:196 [inline] _copy_to_user+0xcc/0x120 lib/usercopy.c:26 copy_to_user include/linux/uaccess.h:225 [inline] vmci_host_do_receive_datagram drivers/misc/vmw_vmci/vmci_host.c:439 [inline] vmci_host_unlocked_ioctl+0x1d05/0x5260 drivers/misc/vmw_vmci/vmci_host.c:933 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x23c/0x400 fs/ioctl.c:893 __x64_sys_ioctl+0x97/0xe0 fs/ioctl.c:893 x64_sys_call+0x1ebe/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Uninit was stored to memory at: kmemdup_noprof+0xb0/0x100 mm/util.c:139 kmemdup_noprof include/linux/fortify-string.h:765 [inline] dg_dispatch_as_host drivers/misc/vmw_vmci/vmci_datagram.c:272 [inline] vmci_datagram_dispatch+0x4eb/0x1560 drivers/misc/vmw_vmci/vmci_datagram.c:340 ctx_fire_notification drivers/misc/vmw_vmci/vmci_context.c:257 [inline] ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:435 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x88e/0x15d0 drivers/misc/vmw_vmci/vmci_context.c:497 vmci_ctx_destroy+0x15d/0x250 drivers/misc/vmw_vmci/vmci_context.c:195 vmci_host_do_init_context drivers/misc/vmw_vmci/vmci_host.c:341 [inline] vmci_host_unlocked_ioctl+0x45be/0x5260 drivers/misc/vmw_vmci/vmci_host.c:929 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:907 [inline] __se_sys_ioctl+0x23c/0x400 fs/ioctl.c:893 __x64_sys_ioctl+0x97/0xe0 fs/ioctl.c:893 x64_sys_call+0x1ebe/0x3db0 arch/x86/include/generated/asm/syscalls_64.h:17 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xd9/0x210 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f Local variable ev.i.i created at: ctx_fire_notification drivers/misc/vmw_vmci/vmci_context.c:248 [inline] ctx_free_ctx drivers/misc/vmw_vmci/vmci_context.c:435 [inline] kref_put include/linux/kref.h:65 [inline] vmci_ctx_put+0x76b/0x15d0 drivers/misc/vmw_vmci/vmci_context.c:497 vmci_ctx_destroy+0x15d/0x250 drivers/misc/vmw_vmci/vmci_context.c:195 Bytes 28-31 of 40 are uninitialized Memory access of size 40 starts at ffff888013c866c0 Data copied to user address 000000000000a4bf CPU: 1 UID: 0 PID: 6832 Comm: syz.0.16 Not tainted 6.16.0-rc2-syzkaller-00231-g75f5f23f8787-dirty #0 PREEMPT(undef) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 ===================================================== Tested on: commit: 75f5f23f Merge tag 'block-6.16-20250619' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=128c5370580000 kernel config: https://syzkaller.appspot.com/x/.config?x=db26f33438d76de9 dashboard link: https://syzkaller.appspot.com/bug?extid=9b9124ae9b12d5af5d95 compiler: Debian clang version 20.1.6 (++20250514063057+1e4d39e07757-1~exp1~20250514183223.118), Debian LLD 20.1.6 patch: https://syzkaller.appspot.com/x/patch.diff?x=11b88182580000