overlayfs: filesystem on './file0' not supported as upperdir ntfs: (device loop3): ntfs_fill_super(): Unable to determine device size. overlayfs: filesystem on './file0' not supported as upperdir ================================================================== BUG: KASAN: use-after-free in __fire_sched_in_preempt_notifiers kernel/sched/core.c:2481 [inline] BUG: KASAN: use-after-free in fire_sched_in_preempt_notifiers kernel/sched/core.c:2487 [inline] BUG: KASAN: use-after-free in finish_task_switch+0x5a5/0x900 kernel/sched/core.c:2679 Read of size 8 at addr ffff88018e018498 by task syz-executor2/10478 CPU: 1 PID: 10478 Comm: syz-executor2 Not tainted 4.19.0-rc4+ #248 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+0x1c4/0x2b4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 __fire_sched_in_preempt_notifiers kernel/sched/core.c:2481 [inline] fire_sched_in_preempt_notifiers kernel/sched/core.c:2487 [inline] finish_task_switch+0x5a5/0x900 kernel/sched/core.c:2679 context_switch kernel/sched/core.c:2828 [inline] __schedule+0x874/0x1ed0 kernel/sched/core.c:3473 preempt_schedule_common+0x1f/0xd0 kernel/sched/core.c:3597 preempt_schedule+0x4d/0x60 kernel/sched/core.c:3623 ___preempt_schedule+0x16/0x18 __raw_spin_unlock_irqrestore include/linux/spinlock_api_smp.h:161 [inline] _raw_spin_unlock_irqrestore+0xbb/0xd0 kernel/locking/spinlock.c:184 try_to_wake_up+0x10a/0x12f0 kernel/sched/core.c:2055 wake_up_process kernel/sched/core.c:2123 [inline] wake_up_q+0xa4/0x100 kernel/sched/core.c:441 __mutex_unlock_slowpath+0x43c/0x8c0 kernel/locking/mutex.c:1249 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:713 kobject_uevent_env+0x9e9/0x1360 lib/kobject_uevent.c:589 kvm_uevent_notify_change.part.33+0x2f8/0x440 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3922 kvm_uevent_notify_change arch/x86/kvm/../../../virt/kvm/kvm_main.c:3881 [inline] kvm_dev_ioctl_create_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:3219 [inline] kvm_dev_ioctl+0x15e6/0x1b10 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3241 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457679 Code: 1d b4 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 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fbb3f40bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fbb3f40c6d4 RCX: 0000000000457679 RDX: 0000000000000000 RSI: 000000000000ae01 RDI: 0000000000000008 RBP: 000000000072bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 00000000004cfc28 R14: 00000000004bfd60 R15: 0000000000000000 Allocated by task 10478: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3554 kmem_cache_zalloc include/linux/slab.h:697 [inline] vmx_create_vcpu+0xcf/0x25e0 arch/x86/kvm/vmx.c:10954 kvm_arch_vcpu_create+0xe5/0x220 arch/x86/kvm/x86.c:8452 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:2476 [inline] kvm_vm_ioctl+0x470/0x1d40 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2977 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 10473: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3756 vmx_free_vcpu+0x26b/0x300 arch/x86/kvm/vmx.c:10948 kvm_arch_vcpu_free arch/x86/kvm/x86.c:8438 [inline] kvm_free_vcpus arch/x86/kvm/x86.c:8888 [inline] kvm_arch_destroy_vm+0x365/0x7c0 arch/x86/kvm/x86.c:8985 kvm_destroy_vm arch/x86/kvm/../../../virt/kvm/kvm_main.c:752 [inline] kvm_put_kvm+0x6c8/0xff0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:773 kvm_vcpu_release+0x7b/0xa0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:2407 __fput+0x385/0xa30 fs/file_table.c:278 ____fput+0x15/0x20 fs/file_table.c:309 task_work_run+0x1e8/0x2a0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:193 [inline] exit_to_usermode_loop+0x318/0x380 arch/x86/entry/common.c:166 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x6be/0x820 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88018e018480 which belongs to the cache kvm_vcpu(81:syz2) of size 23872 The buggy address is located 24 bytes inside of 23872-byte region [ffff88018e018480, ffff88018e01e1c0) The buggy address belongs to the page: page:ffffea0006380600 count:1 mapcount:0 mapping:ffff8801d331fe40 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000008100(slab|head) raw: 02fffc0000008100 ffffea0006391008 ffffea0006439e08 ffff8801d331fe40 raw: 0000000000000000 ffff88018e018480 0000000100000001 ffff8801c5738040 page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801c5738040 Memory state around the buggy address: ffff88018e018380: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88018e018400: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88018e018480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88018e018500: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88018e018580: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================