L1TF CPU bug present and SMT on, data leak possible. See CVE-2018-3646 and https://www.kernel.org/doc/html/latest/admin-guide/hw-vuln/l1tf.html for details. ================================================================== BUG: KASAN: slab-out-of-bounds in handle_vmptrld+0xca0/0xda0 arch/x86/kvm/vmx/nested.c:4789 Read of size 4 at addr ffff888095d2d000 by task syz-executor955/9349 CPU: 1 PID: 9349 Comm: syz-executor955 Not tainted 5.3.0-rc8+ #0 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+0x1d8/0x2f8 lib/dump_stack.c:113 print_address_description+0x75/0x5b0 mm/kasan/report.c:351 __kasan_report+0x14b/0x1c0 mm/kasan/report.c:482 kasan_report+0x26/0x50 mm/kasan/common.c:618 __asan_report_load_n_noabort+0xf/0x20 mm/kasan/generic_report.c:142 handle_vmptrld+0xca0/0xda0 arch/x86/kvm/vmx/nested.c:4789 vmx_handle_exit+0x3c8/0xd50 arch/x86/kvm/vmx/vmx.c:5886 vcpu_enter_guest+0x3f8d/0x54b0 arch/x86/kvm/x86.c:8088 vcpu_run+0x393/0xd40 arch/x86/kvm/x86.c:8152 kvm_arch_vcpu_ioctl_run+0x636/0x900 arch/x86/kvm/x86.c:8360 kvm_vcpu_ioctl+0x6cf/0xaf0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2765 do_vfs_ioctl+0x744/0x1730 fs/ioctl.c:46 ksys_ioctl fs/ioctl.c:713 [inline] __do_sys_ioctl fs/ioctl.c:720 [inline] __se_sys_ioctl fs/ioctl.c:718 [inline] __x64_sys_ioctl+0xe3/0x120 fs/ioctl.c:718 do_syscall_64+0xfe/0x140 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x447269 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 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 3b d0 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffe7b94b748 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ffe7b94b750 RCX: 0000000000447269 RDX: 0000000000000000 RSI: 000000000000ae80 RDI: 0000000000000005 RBP: 0000000000000000 R08: 0000000020003800 R09: 0000000000400e80 R10: 00007ffe7b949b90 R11: 0000000000000246 R12: 0000000000404730 R13: 00000000004047c0 R14: 0000000000000000 R15: 0000000000000000 Allocated by task 9349: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x11c/0x1b0 mm/kasan/common.c:493 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:507 __do_kmalloc mm/slab.c:3655 [inline] __kmalloc+0x254/0x340 mm/slab.c:3664 kmalloc include/linux/slab.h:557 [inline] hcd_buffer_alloc+0x1a8/0x250 drivers/usb/core/buffer.c:132 usb_alloc_coherent+0x62/0x80 drivers/usb/core/usb.c:910 usbdev_mmap+0x1bc/0x590 drivers/usb/core/devio.c:224 call_mmap include/linux/fs.h:1875 [inline] mmap_region+0x17a4/0x1cb0 mm/mmap.c:1788 do_mmap+0x9ef/0x1020 mm/mmap.c:1561 do_mmap_pgoff include/linux/mm.h:2374 [inline] vm_mmap_pgoff+0x13d/0x1d0 mm/util.c:391 ksys_mmap_pgoff+0x46b/0x560 mm/mmap.c:1611 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:100 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:91 [inline] __x64_sys_mmap+0x103/0x120 arch/x86/kernel/sys_x86_64.c:91 do_syscall_64+0xfe/0x140 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 8855: save_stack mm/kasan/common.c:69 [inline] set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x12a/0x1e0 mm/kasan/common.c:455 kasan_slab_free+0xe/0x10 mm/kasan/common.c:463 __cache_free mm/slab.c:3425 [inline] kfree+0x115/0x200 mm/slab.c:3756 tomoyo_init_log+0x1d9f/0x1e70 security/tomoyo/audit.c:293 tomoyo_supervisor+0x2c7/0x1330 security/tomoyo/common.c:2095 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x121/0x1a0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:670 [inline] tomoyo_find_next_domain+0x1685/0x1ca0 security/tomoyo/domain.c:876 tomoyo_bprm_check_security+0xe3/0x130 security/tomoyo/tomoyo.c:107 security_bprm_check+0x55/0xb0 security/security.c:750 search_binary_handler+0x6a/0x660 fs/exec.c:1645 exec_binprm fs/exec.c:1701 [inline] __do_execve_file+0x1497/0x1c50 fs/exec.c:1821 do_execveat_common fs/exec.c:1868 [inline] do_execve fs/exec.c:1885 [inline] __do_sys_execve fs/exec.c:1961 [inline] __se_sys_execve fs/exec.c:1956 [inline] __x64_sys_execve+0x94/0xb0 fs/exec.c:1956 do_syscall_64+0xfe/0x140 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888095d2d480 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 1152 bytes to the left of 8192-byte region [ffff888095d2d480, ffff888095d2f480) The buggy address belongs to the page: page:ffffea0002574b00 refcount:2 mapcount:0 mapping:ffff8880aa4021c0 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea0002572208 ffffea000256f108 ffff8880aa4021c0 raw: 0000000000000000 ffff888095d2d480 0000000200000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888095d2cf00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095d2cf80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888095d2d000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888095d2d080: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888095d2d100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================