===================================================== WARNING: HARDIRQ-safe -> HARDIRQ-unsafe lock order detected 5.12.0-rc4-syzkaller #0 Not tainted ----------------------------------------------------- syz-executor.4/32515 [HC0[0]:SC0[0]:HE0:SE1] is trying to acquire: ffffc9000b726230 (&kvm->arch.pvclock_gtod_sync_lock){+.+.}-{2:2}, at: spin_lock include/linux/spinlock.h:354 [inline] ffffc9000b726230 (&kvm->arch.pvclock_gtod_sync_lock){+.+.}-{2:2}, at: get_kvmclock_ns+0x25/0x390 arch/x86/kvm/x86.c:2587 and this task is already holding: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x21c/0x21b0 kernel/sched/core.c:4990 which would create a new lock dependency: (&rq->lock){-.-.}-{2:2} -> (&kvm->arch.pvclock_gtod_sync_lock){+.+.}-{2:2} but this new dependency connects a HARDIRQ-irq-safe lock: (&rq->lock){-.-.}-{2:2} ... which became HARDIRQ-irq-safe at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 rq_lock kernel/sched/sched.h:1321 [inline] scheduler_tick+0xa4/0x4b0 kernel/sched/core.c:4538 update_process_times+0x191/0x200 kernel/time/timer.c:1801 tick_periodic+0x79/0x230 kernel/time/tick-common.c:100 tick_handle_periodic+0x41/0x120 kernel/time/tick-common.c:112 timer_interrupt+0x3f/0x60 arch/x86/kernel/time.c:57 __handle_irq_event_percpu+0x303/0x8f0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x102/0x290 kernel/irq/handle.c:213 handle_edge_irq+0x25f/0xd00 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x9e/0x200 arch/x86/kernel/irq.c:250 common_interrupt+0x9f/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:623 clear_page_orig+0x12/0x40 arch/x86/lib/clear_page_64.S:29 clear_page arch/x86/include/asm/page_64.h:49 [inline] clear_highpage include/linux/highmem.h:203 [inline] kernel_init_free_pages+0x99/0x120 mm/page_alloc.c:1212 prep_new_page mm/page_alloc.c:2311 [inline] get_page_from_freelist+0x1c6f/0x3fb0 mm/page_alloc.c:3951 __alloc_pages_nodemask+0x2d6/0x730 mm/page_alloc.c:5001 __alloc_pages include/linux/gfp.h:525 [inline] alloc_page_interleave+0x1e/0x1d0 mm/mempolicy.c:2143 alloc_pages_current+0x238/0x2a0 mm/mempolicy.c:2275 alloc_pages include/linux/gfp.h:561 [inline] stack_depot_save+0x39d/0x4e0 lib/stackdepot.c:303 kasan_save_stack+0x32/0x40 mm/kasan/common.c:40 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] __kasan_slab_alloc+0x75/0x90 mm/kasan/common.c:460 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x155/0x370 mm/slub.c:2920 kmem_cache_zalloc include/linux/slab.h:674 [inline] create_cache mm/slab_common.c:247 [inline] kmem_cache_create_usercopy+0x17c/0x2d0 mm/slab_common.c:350 kmem_cache_create+0xd/0x10 mm/slab_common.c:405 ordered_lsm_init security/security.c:351 [inline] security_init+0x31e/0x519 security/security.c:404 start_kernel+0x42a/0x496 init/main.c:1043 secondary_startup_64_no_verify+0xb0/0xbb to a HARDIRQ-irq-unsafe lock: (&kvm->arch.pvclock_gtod_sync_lock){+.+.}-{2:2} ... which became HARDIRQ-irq-unsafe at: ... lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] kvm_synchronize_tsc+0x459/0x1230 arch/x86/kvm/x86.c:2332 kvm_arch_vcpu_postcreate+0x73/0x180 arch/x86/kvm/x86.c:10183 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3239 [inline] kvm_vm_ioctl+0x1b2d/0x2800 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3839 kvm_vm_compat_ioctl+0x125/0x230 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4052 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c other info that might help us debug this: Possible interrupt unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&kvm->arch.pvclock_gtod_sync_lock); local_irq_disable(); lock(&rq->lock); lock(&kvm->arch.pvclock_gtod_sync_lock); lock(&rq->lock); *** DEADLOCK *** 3 locks held by syz-executor.4/32515: #0: ffff88802a072888 (&vcpu->mutex){+.+.}-{3:3}, at: kvm_vcpu_ioctl+0x175/0xd90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3293 #1: ffffc9000b726be0 (&kvm->srcu){....}-{0:0}, at: vcpu_run arch/x86/kvm/x86.c:9275 [inline] #1: ffffc9000b726be0 (&kvm->srcu){....}-{0:0}, at: kvm_arch_vcpu_ioctl_run+0x34d/0x19b0 arch/x86/kvm/x86.c:9510 #2: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: rq_lock kernel/sched/sched.h:1321 [inline] #2: ffff8880b9d35198 (&rq->lock){-.-.}-{2:2}, at: __schedule+0x21c/0x21b0 kernel/sched/core.c:4990 the dependencies between HARDIRQ-irq-safe lock and the holding lock: -> (&rq->lock){-.-.}-{2:2} { IN-HARDIRQ-W at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 rq_lock kernel/sched/sched.h:1321 [inline] scheduler_tick+0xa4/0x4b0 kernel/sched/core.c:4538 update_process_times+0x191/0x200 kernel/time/timer.c:1801 tick_periodic+0x79/0x230 kernel/time/tick-common.c:100 tick_handle_periodic+0x41/0x120 kernel/time/tick-common.c:112 timer_interrupt+0x3f/0x60 arch/x86/kernel/time.c:57 __handle_irq_event_percpu+0x303/0x8f0 kernel/irq/handle.c:156 handle_irq_event_percpu kernel/irq/handle.c:196 [inline] handle_irq_event+0x102/0x290 kernel/irq/handle.c:213 handle_edge_irq+0x25f/0xd00 kernel/irq/chip.c:819 generic_handle_irq_desc include/linux/irqdesc.h:158 [inline] handle_irq arch/x86/kernel/irq.c:231 [inline] __common_interrupt+0x9e/0x200 arch/x86/kernel/irq.c:250 common_interrupt+0x9f/0xd0 arch/x86/kernel/irq.c:240 asm_common_interrupt+0x1e/0x40 arch/x86/include/asm/idtentry.h:623 clear_page_orig+0x12/0x40 arch/x86/lib/clear_page_64.S:29 clear_page arch/x86/include/asm/page_64.h:49 [inline] clear_highpage include/linux/highmem.h:203 [inline] kernel_init_free_pages+0x99/0x120 mm/page_alloc.c:1212 prep_new_page mm/page_alloc.c:2311 [inline] get_page_from_freelist+0x1c6f/0x3fb0 mm/page_alloc.c:3951 __alloc_pages_nodemask+0x2d6/0x730 mm/page_alloc.c:5001 __alloc_pages include/linux/gfp.h:525 [inline] alloc_page_interleave+0x1e/0x1d0 mm/mempolicy.c:2143 alloc_pages_current+0x238/0x2a0 mm/mempolicy.c:2275 alloc_pages include/linux/gfp.h:561 [inline] stack_depot_save+0x39d/0x4e0 lib/stackdepot.c:303 kasan_save_stack+0x32/0x40 mm/kasan/common.c:40 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] __kasan_slab_alloc+0x75/0x90 mm/kasan/common.c:460 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x155/0x370 mm/slub.c:2920 kmem_cache_zalloc include/linux/slab.h:674 [inline] create_cache mm/slab_common.c:247 [inline] kmem_cache_create_usercopy+0x17c/0x2d0 mm/slab_common.c:350 kmem_cache_create+0xd/0x10 mm/slab_common.c:405 ordered_lsm_init security/security.c:351 [inline] security_init+0x31e/0x519 security/security.c:404 start_kernel+0x42a/0x496 init/main.c:1043 secondary_startup_64_no_verify+0xb0/0xbb IN-SOFTIRQ-W at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 rq_lock kernel/sched/sched.h:1321 [inline] ttwu_queue kernel/sched/core.c:3184 [inline] try_to_wake_up+0x5e6/0x14a0 kernel/sched/core.c:3464 call_timer_fn+0x1a5/0x6b0 kernel/time/timer.c:1431 expire_timers kernel/time/timer.c:1476 [inline] __run_timers.part.0+0x67c/0xa50 kernel/time/timer.c:1745 __run_timers kernel/time/timer.c:1726 [inline] run_timer_softirq+0xb3/0x1d0 kernel/time/timer.c:1758 __do_softirq+0x29b/0x9f6 kernel/softirq.c:345 invoke_softirq kernel/softirq.c:221 [inline] __irq_exit_rcu kernel/softirq.c:422 [inline] irq_exit_rcu+0x134/0x200 kernel/softirq.c:434 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1100 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 rdtsc_ordered arch/x86/include/asm/msr.h:234 [inline] delay_tsc+0x45/0xb0 arch/x86/lib/delay.c:72 try_check_zero+0x223/0x430 kernel/rcu/srcutree.c:707 srcu_advance_state kernel/rcu/srcutree.c:1229 [inline] process_srcu+0x2f2/0xe90 kernel/rcu/srcutree.c:1327 process_one_work+0x98d/0x1600 kernel/workqueue.c:2275 worker_thread+0x64c/0x1120 kernel/workqueue.c:2421 kthread+0x3b1/0x4a0 kernel/kthread.c:292 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:294 INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock_irqsave include/linux/spinlock_api_smp.h:110 [inline] _raw_spin_lock_irqsave+0x39/0x50 kernel/locking/spinlock.c:159 rq_attach_root+0x20/0x2e0 kernel/sched/topology.c:470 sched_init+0x6e8/0xbf3 kernel/sched/core.c:8213 start_kernel+0x18e/0x496 init/main.c:920 secondary_startup_64_no_verify+0xb0/0xbb } ... key at: [] __key.298+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] get_kvmclock_ns+0x25/0x390 arch/x86/kvm/x86.c:2587 kvm_xen_update_runstate+0x3d/0x2c0 arch/x86/kvm/xen.c:69 kvm_xen_update_runstate_guest+0x74/0x320 arch/x86/kvm/xen.c:100 kvm_xen_runstate_set_preempted arch/x86/kvm/xen.h:96 [inline] kvm_arch_vcpu_put+0x2d8/0x5a0 arch/x86/kvm/x86.c:4062 kvm_sched_out+0xbf/0x100 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4876 __fire_sched_out_preempt_notifiers kernel/sched/core.c:3922 [inline] fire_sched_out_preempt_notifiers kernel/sched/core.c:3930 [inline] prepare_task_switch kernel/sched/core.c:4126 [inline] context_switch kernel/sched/core.c:4274 [inline] __schedule+0xfd0/0x21b0 kernel/sched/core.c:5073 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:5530 irqentry_exit_cond_resched kernel/entry/common.c:392 [inline] irqentry_exit_cond_resched kernel/entry/common.c:384 [inline] irqentry_exit+0x7a/0xa0 kernel/entry/common.c:428 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 get_stack_info+0x54/0x90 arch/x86/kernel/dumpstack_64.c:207 __unwind_start+0x4ae/0x800 arch/x86/kernel/unwind_orc.c:668 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0x5c/0xe0 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] __kasan_slab_alloc+0x75/0x90 mm/kasan/common.c:460 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x155/0x370 mm/slub.c:2920 mmu_memory_cache_alloc_obj arch/x86/kvm/../../../virt/kvm/kvm_main.c:351 [inline] kvm_mmu_topup_memory_cache+0xbe/0x1f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:363 mmu_topup_memory_caches arch/x86/kvm/mmu/mmu.c:679 [inline] mmu_topup_memory_caches+0xb4/0xd0 arch/x86/kvm/mmu/mmu.c:660 kvm_mmu_load+0x7d/0xf60 arch/x86/kvm/mmu/mmu.c:4802 kvm_mmu_reload arch/x86/kvm/mmu.h:81 [inline] vcpu_enter_guest+0x2e68/0x47f0 arch/x86/kvm/x86.c:9061 vcpu_run arch/x86/kvm/x86.c:9282 [inline] kvm_arch_vcpu_ioctl_run+0x47d/0x19b0 arch/x86/kvm/x86.c:9510 kvm_vcpu_ioctl+0x467/0xd90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3316 kvm_vcpu_compat_ioctl+0x1a2/0x340 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3512 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c the dependencies between the lock to be acquired and HARDIRQ-irq-unsafe lock: -> (&kvm->arch.pvclock_gtod_sync_lock){+.+.}-{2:2} { HARDIRQ-ON-W at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] kvm_synchronize_tsc+0x459/0x1230 arch/x86/kvm/x86.c:2332 kvm_arch_vcpu_postcreate+0x73/0x180 arch/x86/kvm/x86.c:10183 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3239 [inline] kvm_vm_ioctl+0x1b2d/0x2800 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3839 kvm_vm_compat_ioctl+0x125/0x230 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4052 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c SOFTIRQ-ON-W at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] kvm_synchronize_tsc+0x459/0x1230 arch/x86/kvm/x86.c:2332 kvm_arch_vcpu_postcreate+0x73/0x180 arch/x86/kvm/x86.c:10183 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3239 [inline] kvm_vm_ioctl+0x1b2d/0x2800 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3839 kvm_vm_compat_ioctl+0x125/0x230 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4052 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c INITIAL USE at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] kvm_synchronize_tsc+0x459/0x1230 arch/x86/kvm/x86.c:2332 kvm_arch_vcpu_postcreate+0x73/0x180 arch/x86/kvm/x86.c:10183 kvm_vm_ioctl_create_vcpu arch/x86/kvm/../../../virt/kvm/kvm_main.c:3239 [inline] kvm_vm_ioctl+0x1b2d/0x2800 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3839 kvm_vm_compat_ioctl+0x125/0x230 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4052 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c } ... key at: [] __key.4+0x0/0x40 ... acquired at: lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] get_kvmclock_ns+0x25/0x390 arch/x86/kvm/x86.c:2587 kvm_xen_update_runstate+0x3d/0x2c0 arch/x86/kvm/xen.c:69 kvm_xen_update_runstate_guest+0x74/0x320 arch/x86/kvm/xen.c:100 kvm_xen_runstate_set_preempted arch/x86/kvm/xen.h:96 [inline] kvm_arch_vcpu_put+0x2d8/0x5a0 arch/x86/kvm/x86.c:4062 kvm_sched_out+0xbf/0x100 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4876 __fire_sched_out_preempt_notifiers kernel/sched/core.c:3922 [inline] fire_sched_out_preempt_notifiers kernel/sched/core.c:3930 [inline] prepare_task_switch kernel/sched/core.c:4126 [inline] context_switch kernel/sched/core.c:4274 [inline] __schedule+0xfd0/0x21b0 kernel/sched/core.c:5073 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:5530 irqentry_exit_cond_resched kernel/entry/common.c:392 [inline] irqentry_exit_cond_resched kernel/entry/common.c:384 [inline] irqentry_exit+0x7a/0xa0 kernel/entry/common.c:428 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 get_stack_info+0x54/0x90 arch/x86/kernel/dumpstack_64.c:207 __unwind_start+0x4ae/0x800 arch/x86/kernel/unwind_orc.c:668 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0x5c/0xe0 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] __kasan_slab_alloc+0x75/0x90 mm/kasan/common.c:460 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x155/0x370 mm/slub.c:2920 mmu_memory_cache_alloc_obj arch/x86/kvm/../../../virt/kvm/kvm_main.c:351 [inline] kvm_mmu_topup_memory_cache+0xbe/0x1f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:363 mmu_topup_memory_caches arch/x86/kvm/mmu/mmu.c:679 [inline] mmu_topup_memory_caches+0xb4/0xd0 arch/x86/kvm/mmu/mmu.c:660 kvm_mmu_load+0x7d/0xf60 arch/x86/kvm/mmu/mmu.c:4802 kvm_mmu_reload arch/x86/kvm/mmu.h:81 [inline] vcpu_enter_guest+0x2e68/0x47f0 arch/x86/kvm/x86.c:9061 vcpu_run arch/x86/kvm/x86.c:9282 [inline] kvm_arch_vcpu_ioctl_run+0x47d/0x19b0 arch/x86/kvm/x86.c:9510 kvm_vcpu_ioctl+0x467/0xd90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3316 kvm_vcpu_compat_ioctl+0x1a2/0x340 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3512 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c stack backtrace: CPU: 1 PID: 32515 Comm: syz-executor.4 Not tainted 5.12.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 print_bad_irq_dependency kernel/locking/lockdep.c:2460 [inline] check_irq_usage.cold+0x50d/0x744 kernel/locking/lockdep.c:2689 check_prev_add kernel/locking/lockdep.c:2940 [inline] check_prevs_add kernel/locking/lockdep.c:3059 [inline] validate_chain kernel/locking/lockdep.c:3674 [inline] __lock_acquire+0x2b2c/0x54c0 kernel/locking/lockdep.c:4900 lock_acquire kernel/locking/lockdep.c:5510 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5475 __raw_spin_lock include/linux/spinlock_api_smp.h:142 [inline] _raw_spin_lock+0x2a/0x40 kernel/locking/spinlock.c:151 spin_lock include/linux/spinlock.h:354 [inline] get_kvmclock_ns+0x25/0x390 arch/x86/kvm/x86.c:2587 kvm_xen_update_runstate+0x3d/0x2c0 arch/x86/kvm/xen.c:69 kvm_xen_update_runstate_guest+0x74/0x320 arch/x86/kvm/xen.c:100 kvm_xen_runstate_set_preempted arch/x86/kvm/xen.h:96 [inline] kvm_arch_vcpu_put+0x2d8/0x5a0 arch/x86/kvm/x86.c:4062 kvm_sched_out+0xbf/0x100 arch/x86/kvm/../../../virt/kvm/kvm_main.c:4876 __fire_sched_out_preempt_notifiers kernel/sched/core.c:3922 [inline] fire_sched_out_preempt_notifiers kernel/sched/core.c:3930 [inline] prepare_task_switch kernel/sched/core.c:4126 [inline] context_switch kernel/sched/core.c:4274 [inline] __schedule+0xfd0/0x21b0 kernel/sched/core.c:5073 preempt_schedule_irq+0x4e/0x90 kernel/sched/core.c:5530 irqentry_exit_cond_resched kernel/entry/common.c:392 [inline] irqentry_exit_cond_resched kernel/entry/common.c:384 [inline] irqentry_exit+0x7a/0xa0 kernel/entry/common.c:428 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:632 RIP: 0010:get_stack_info+0x54/0x90 arch/x86/kernel/dumpstack_64.c:207 Code: 96 dd 07 84 c0 74 4b 31 c0 48 85 ed 74 22 45 8b 65 00 41 83 fc 3f 0f 87 6c d7 9b 07 48 8b 45 00 4c 0f a3 e0 72 11 4c 0f ab e0 <48> 89 45 00 31 c0 5b 5d 41 5c 41 5d c3 65 48 8b 04 25 00 f0 01 00 RSP: 0018:ffffc9000b70f608 EFLAGS: 00000292 RAX: 0000000000000002 RBX: ffff88805de68000 RCX: ffffc9000b710000 RDX: ffffc9000b70f680 RSI: ffff88805de68000 RDI: ffffc9000b70f630 RBP: ffffc9000b70f6a0 R08: 0000000000000001 R09: ffffc9000b70f680 R10: fffff520016e1edb R11: 0000000000000000 R12: 0000000000000001 R13: ffffc9000b70f680 R14: ffffc9000b70f6b8 R15: ffffc9000b70f680 __unwind_start+0x4ae/0x800 arch/x86/kernel/unwind_orc.c:668 unwind_start arch/x86/include/asm/unwind.h:60 [inline] arch_stack_walk+0x5c/0xe0 arch/x86/kernel/stacktrace.c:24 stack_trace_save+0x8c/0xc0 kernel/stacktrace.c:121 kasan_save_stack+0x1b/0x40 mm/kasan/common.c:38 kasan_set_track mm/kasan/common.c:46 [inline] set_alloc_info mm/kasan/common.c:427 [inline] __kasan_slab_alloc+0x75/0x90 mm/kasan/common.c:460 kasan_slab_alloc include/linux/kasan.h:223 [inline] slab_post_alloc_hook mm/slab.h:516 [inline] slab_alloc_node mm/slub.c:2907 [inline] slab_alloc mm/slub.c:2915 [inline] kmem_cache_alloc+0x155/0x370 mm/slub.c:2920 mmu_memory_cache_alloc_obj arch/x86/kvm/../../../virt/kvm/kvm_main.c:351 [inline] kvm_mmu_topup_memory_cache+0xbe/0x1f0 arch/x86/kvm/../../../virt/kvm/kvm_main.c:363 mmu_topup_memory_caches arch/x86/kvm/mmu/mmu.c:679 [inline] mmu_topup_memory_caches+0xb4/0xd0 arch/x86/kvm/mmu/mmu.c:660 kvm_mmu_load+0x7d/0xf60 arch/x86/kvm/mmu/mmu.c:4802 kvm_mmu_reload arch/x86/kvm/mmu.h:81 [inline] vcpu_enter_guest+0x2e68/0x47f0 arch/x86/kvm/x86.c:9061 vcpu_run arch/x86/kvm/x86.c:9282 [inline] kvm_arch_vcpu_ioctl_run+0x47d/0x19b0 arch/x86/kvm/x86.c:9510 kvm_vcpu_ioctl+0x467/0xd90 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3316 kvm_vcpu_compat_ioctl+0x1a2/0x340 arch/x86/kvm/../../../virt/kvm/kvm_main.c:3512 __do_compat_sys_ioctl+0x1d3/0x230 fs/ioctl.c:842 do_syscall_32_irqs_on arch/x86/entry/common.c:77 [inline] __do_fast_syscall_32+0x56/0x90 arch/x86/entry/common.c:140 do_fast_syscall_32+0x2f/0x70 arch/x86/entry/common.c:165 entry_SYSENTER_compat_after_hwframe+0x4d/0x5c RIP: 0023:0xf7f1b549 Code: 03 74 c0 01 10 05 03 74 b8 01 10 06 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 8d b4 26 00 00 00 00 8d b4 26 00 00 00 00 RSP: 002b:00000000f55155fc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 000000000000ae80 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000