BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 0, name: swapper/0 preempt_count: 101, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] schedule_preempt_disabled+0x19/0x20 kernel/sched/core.c:6514 CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 5.17.0-syzkaller-13536-ge3d37210df5c #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 __might_resched.cold+0x222/0x26b kernel/sched/core.c:9733 blk_release_queue+0x1f/0x320 block/blk-sysfs.c:766 kobject_cleanup lib/kobject.c:705 [inline] kobject_release lib/kobject.c:736 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x1c8/0x540 lib/kobject.c:753 blkg_free.part.0+0x112/0x1f0 block/blk-cgroup.c:86 blkg_free block/blk-cgroup.c:78 [inline] __blkg_release+0x105/0x160 block/blk-cgroup.c:102 rcu_do_batch kernel/rcu/tree.c:2535 [inline] rcu_core+0x7b1/0x1880 kernel/rcu/tree.c:2786 __do_softirq+0x29b/0x9c2 kernel/softirq.c:558 invoke_softirq kernel/softirq.c:432 [inline] __irq_exit_rcu+0x123/0x180 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x93/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:29 [inline] RIP: 0010:arch_local_save_flags arch/x86/include/asm/irqflags.h:70 [inline] RIP: 0010:arch_irqs_disabled arch/x86/include/asm/irqflags.h:130 [inline] RIP: 0010:acpi_safe_halt drivers/acpi/processor_idle.c:116 [inline] RIP: 0010:acpi_idle_do_entry+0x1c6/0x250 drivers/acpi/processor_idle.c:556 Code: 89 de e8 fd f4 17 f8 84 db 75 ac e8 14 f1 17 f8 e8 4f 38 1e f8 eb 0c e8 08 f1 17 f8 0f 00 2d 41 74 d1 00 e8 fc f0 17 f8 fb f4 <9c> 5b 81 e3 00 02 00 00 fa 31 ff 48 89 de e8 77 f3 17 f8 48 85 db RSP: 0018:ffffffff8ba07d60 EFLAGS: 00000293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffffffff8babc700 RSI: ffffffff8960ac24 RDI: ffffffff8960ac11 RBP: ffff8881401fc064 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff817ee498 R11: 0000000000000000 R12: 0000000000000001 R13: ffff8881401fc000 R14: ffff8881401fc064 R15: ffff8881473f3804 acpi_idle_enter+0x361/0x500 drivers/acpi/processor_idle.c:692 cpuidle_enter_state+0x1b1/0xc80 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x4a/0xa0 drivers/cpuidle/cpuidle.c:351 call_cpuidle kernel/sched/idle.c:155 [inline] cpuidle_idle_call kernel/sched/idle.c:236 [inline] do_idle+0x3e8/0x590 kernel/sched/idle.c:303 cpu_startup_entry+0x14/0x20 kernel/sched/idle.c:400 start_kernel+0x47f/0x4a0 init/main.c:1140 secondary_startup_64_no_verify+0xc3/0xcb ---------------- Code disassembly (best guess): 0: 89 de mov %ebx,%esi 2: e8 fd f4 17 f8 callq 0xf817f504 7: 84 db test %bl,%bl 9: 75 ac jne 0xffffffb7 b: e8 14 f1 17 f8 callq 0xf817f124 10: e8 4f 38 1e f8 callq 0xf81e3864 15: eb 0c jmp 0x23 17: e8 08 f1 17 f8 callq 0xf817f124 1c: 0f 00 2d 41 74 d1 00 verw 0xd17441(%rip) # 0xd17464 23: e8 fc f0 17 f8 callq 0xf817f124 28: fb sti 29: f4 hlt * 2a: 9c pushfq <-- trapping instruction 2b: 5b pop %rbx 2c: 81 e3 00 02 00 00 and $0x200,%ebx 32: fa cli 33: 31 ff xor %edi,%edi 35: 48 89 de mov %rbx,%rsi 38: e8 77 f3 17 f8 callq 0xf817f3b4 3d: 48 85 db test %rbx,%rbx