================================================================== BUG: KMSAN: kernel-infoleak in _copy_to_user+0x16b/0x1f0 lib/usercopy.c:32 CPU: 0 PID: 11556 Comm: syz-executor0 Not tainted 5.0.0-rc1+ #9 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+0x173/0x1d0 lib/dump_stack.c:113 kmsan_report+0x12e/0x2a0 mm/kmsan/kmsan.c:600 kmsan_internal_check_memory+0x9e4/0xb10 mm/kmsan/kmsan.c:692 kmsan_copy_to_user+0xab/0xc0 mm/kmsan/kmsan_hooks.c:601 _copy_to_user+0x16b/0x1f0 lib/usercopy.c:32 copy_to_user include/linux/uaccess.h:174 [inline] vmx_get_nested_state+0xf7a/0x1020 arch/x86/kvm/vmx/nested.c:5272 kvm_arch_vcpu_ioctl+0xb34/0x7200 arch/x86/kvm/x86.c:4162 kvm_vcpu_ioctl+0xc6d/0x1d20 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2825 do_vfs_ioctl+0xebd/0x2bf0 fs/ioctl.c:46 ksys_ioctl fs/ioctl.c:713 [inline] __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:718 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:718 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457e39 Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f7d0a593c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457e39 RDX: 0000000020002280 RSI: 00000000c080aebe RDI: 0000000000000005 RBP: 000000000073c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f7d0a5946d4 R13: 00000000004c0b25 R14: 00000000004d2898 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:205 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:159 kmsan_kmalloc+0xa6/0x130 mm/kmsan/kmsan_hooks.c:176 kmem_cache_alloc_trace+0x55d/0xb40 mm/slub.c:2784 kmalloc include/linux/slab.h:545 [inline] enter_vmx_operation+0x1db/0xab0 arch/x86/kvm/vmx/nested.c:4147 vmx_set_nested_state+0x9b2/0x14a0 arch/x86/kvm/vmx/nested.c:5350 kvm_arch_vcpu_ioctl+0x4c47/0x7200 arch/x86/kvm/x86.c:4204 kvm_vcpu_ioctl+0xc6d/0x1d20 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2825 do_vfs_ioctl+0xebd/0x2bf0 fs/ioctl.c:46 ksys_ioctl fs/ioctl.c:713 [inline] __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl+0x1da/0x270 fs/ioctl.c:718 __x64_sys_ioctl+0x4a/0x70 fs/ioctl.c:718 do_syscall_64+0xbc/0xf0 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 Bytes 0-997 of 998 are uninitialized Memory access of size 998 starts at ffff8880520cf000 Data copied to user address 0000000020003300 ==================================================================