================================================================== BUG: KMSAN: kernel-infoleak in _copy_to_user+0x15d/0x1f0 lib/usercopy.c:31 CPU: 1 PID: 7575 Comm: syz-executor3 Not tainted 4.19.0-rc8+ #70 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x306/0x460 lib/dump_stack.c:113 kmsan_report+0x1a2/0x2e0 mm/kmsan/kmsan.c:917 kmsan_internal_check_memory+0x2cd/0x460 mm/kmsan/kmsan.c:971 kmsan_copy_to_user+0x89/0xe0 mm/kmsan/kmsan_hooks.c:552 _copy_to_user+0x15d/0x1f0 lib/usercopy.c:31 copy_to_user include/linux/uaccess.h:183 [inline] kvm_vcpu_ioctl+0xe2a/0x20b0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2634 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0xf28/0x2ca0 fs/ioctl.c:687 ksys_ioctl fs/ioctl.c:702 [inline] __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:707 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:707 do_syscall_64+0xbe/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x4573d7 Code: 48 83 c4 08 48 89 d8 5b 5d c3 66 0f 1f 84 00 00 00 00 00 48 89 e8 48 f7 d8 48 39 c3 0f 92 c0 eb 92 66 90 b8 10 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 5d b5 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fd3d3329098 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000018 RCX: 00000000004573d7 RDX: 00007fd3d33296f0 RSI: 000000008138ae83 RDI: 0000000000000005 RBP: 0000000020017000 R08: 0000000000000001 R09: 0000000000000048 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000fec00000 R13: 00000000ffffffff R14: 00000000004d7cf8 R15: 00000000ffffffff Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:255 [inline] kmsan_save_stack mm/kmsan/kmsan.c:270 [inline] kmsan_internal_chain_origin+0x136/0x240 mm/kmsan/kmsan.c:572 __msan_chain_origin+0x75/0xd0 mm/kmsan/kmsan_instr.c:337 __get_sregs+0x949/0xff0 arch/x86/kvm/x86.c:8059 kvm_arch_vcpu_ioctl_get_sregs+0x71/0xb0 arch/x86/kvm/x86.c:8077 kvm_vcpu_ioctl+0x40d/0x20b0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2630 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0xf28/0x2ca0 fs/ioctl.c:687 ksys_ioctl fs/ioctl.c:702 [inline] __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:707 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:707 do_syscall_64+0xbe/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Uninit was stored to memory at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:255 [inline] kmsan_save_stack mm/kmsan/kmsan.c:270 [inline] kmsan_internal_chain_origin+0x136/0x240 mm/kmsan/kmsan.c:572 __msan_chain_origin+0x75/0xd0 mm/kmsan/kmsan_instr.c:337 kvm_inject_page_fault+0x2d7/0x6f0 arch/x86/kvm/x86.c:412 handle_vmwrite+0xdac/0x3220 arch/x86/kvm/vmx.c:8796 vmx_handle_exit+0x20f5/0xb900 arch/x86/kvm/vmx.c:10133 vcpu_enter_guest arch/x86/kvm/x86.c:7667 [inline] vcpu_run arch/x86/kvm/x86.c:7730 [inline] kvm_arch_vcpu_ioctl_run+0xa22b/0x10ab0 arch/x86/kvm/x86.c:7930 kvm_vcpu_ioctl+0x11a7/0x20b0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2590 vfs_ioctl fs/ioctl.c:46 [inline] do_vfs_ioctl+0xf28/0x2ca0 fs/ioctl.c:687 ksys_ioctl fs/ioctl.c:702 [inline] __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:707 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:707 do_syscall_64+0xbe/0x100 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Local variable description: ----e@handle_vmwrite Variable was created at: handle_vmwrite+0x1f6/0x3220 arch/x86/kvm/vmx.c:8764 vmx_handle_exit+0x20f5/0xb900 arch/x86/kvm/vmx.c:10133 Bytes 232-239 of 312 are uninitialized Memory access of size 312 starts at ffff8801a6a2f400 ==================================================================