================================================================== BUG: KMSAN: kernel-infoleak in _copy_to_user+0x1a4/0x250 lib/usercopy.c:32 CPU: 0 PID: 9041 Comm: syz-executor5 Not tainted 4.20.0-rc5+ #111 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+0x284/0x3b0 lib/dump_stack.c:113 kmsan_report+0x12d/0x290 mm/kmsan/kmsan.c:684 kmsan_internal_check_memory+0x9ce/0xa50 mm/kmsan/kmsan.c:770 kmsan_copy_to_user+0x8d/0xa0 mm/kmsan/kmsan_hooks.c:620 _copy_to_user+0x1a4/0x250 lib/usercopy.c:32 copy_to_user include/linux/uaccess.h:177 [inline] vmx_get_nested_state+0xf6b/0x1310 arch/x86/kvm/vmx.c:14856 kvm_arch_vcpu_ioctl+0x18c8/0x7280 arch/x86/kvm/x86.c:4148 kvm_vcpu_ioctl+0xc56/0x1d10 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2748 do_vfs_ioctl+0xf36/0x2d30 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+0xcd/0x110 arch/x86/entry/common.c:291 entry_SYSCALL_64_after_hwframe+0x63/0xe7 RIP: 0033:0x457569 Code: fd b3 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 cb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fc839addc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000000457569 RDX: 0000000020000280 RSI: 00000000c080aebe RDI: 0000000000000005 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fc839ade6d4 R13: 00000000004c04e8 R14: 00000000004d0d88 R15: 00000000ffffffff Uninit was created at: kmsan_save_stack_with_flags mm/kmsan/kmsan.c:247 [inline] kmsan_internal_poison_shadow+0x92/0x150 mm/kmsan/kmsan.c:170 kmsan_kmalloc+0xa1/0x100 mm/kmsan/kmsan_hooks.c:186 kmem_cache_alloc_trace+0x657/0xd80 mm/slub.c:2789 kmalloc include/linux/slab.h:546 [inline] enter_vmx_operation+0x1f1/0x11d0 arch/x86/kvm/vmx.c:8319 vmx_set_nested_state+0xdc9/0x18a0 arch/x86/kvm/vmx.c:14922 kvm_arch_vcpu_ioctl+0x4c59/0x7280 arch/x86/kvm/x86.c:4190 kvm_vcpu_ioctl+0xc56/0x1d10 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2748 do_vfs_ioctl+0xf36/0x2d30 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+0xcd/0x110 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 ffff88817a1cd000 Data copied to user address 0000000020001300 ==================================================================