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-13673-ge8b767f5e040 #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+0x201/0x2d8 lib/dump_stack.c:106 __might_resched+0x5ce/0x790 kernel/sched/core.c:9733 blk_release_queue+0x2e/0x2a0 block/blk-sysfs.c:766 kobject_cleanup+0x1c0/0x280 lib/kobject.c:705 blkg_free+0x2d0/0x320 block/blk-cgroup.c:86 rcu_do_batch kernel/rcu/tree.c:2535 [inline] rcu_core+0xa85/0x1700 kernel/rcu/tree.c:2786 __do_softirq+0x392/0x7a3 kernel/softirq.c:558 __irq_exit_rcu+0xec/0x170 kernel/softirq.c:637 irq_exit_rcu+0x5/0x20 kernel/softirq.c:649 sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 RIP: 0010:native_save_fl arch/x86/include/asm/irqflags.h:22 [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 drivers/acpi/processor_idle.c:556 [inline] RIP: 0010:acpi_idle_enter+0x42d/0x790 drivers/acpi/processor_idle.c:692 Code: fc 48 83 e3 08 44 8b 7c 24 04 0f 85 22 01 00 00 4c 8d 74 24 40 e8 f3 29 04 fd eb 0c e8 ac 82 fd fc 0f 00 2d 85 58 7b 06 fb f4 <4c> 89 f3 48 c1 eb 03 42 80 3c 23 00 74 08 4c 89 f7 e8 6d 60 4f fd RSP: 0018:ffffffff8ca07ba0 EFLAGS: 00000286 RAX: 97d252bd44646100 RBX: 0000000000000000 RCX: ffffffff8cabb700 RDX: dffffc0000000000 RSI: 0000000000000000 RDI: ffffffff8488848d RBP: ffffffff8ca07c50 R08: ffffffff818caeb0 R09: fffffbfff19576e1 R10: fffffbfff19576e1 R11: 0000000000000000 R12: dffffc0000000000 R13: ffff888140169064 R14: ffffffff8ca07be0 R15: 0000000000000001 cpuidle_enter_state+0x507/0xea0 drivers/cpuidle/cpuidle.c:237 cpuidle_enter+0x59/0x90 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/0x670 kernel/sched/idle.c:303 cpu_startup_entry+0x15/0x20 kernel/sched/idle.c:400 start_kernel+0x4c5/0x574 init/main.c:1140 secondary_startup_64_no_verify+0xc4/0xcb ---------------- Code disassembly (best guess): 0: fc cld 1: 48 83 e3 08 and $0x8,%rbx 5: 44 8b 7c 24 04 mov 0x4(%rsp),%r15d a: 0f 85 22 01 00 00 jne 0x132 10: 4c 8d 74 24 40 lea 0x40(%rsp),%r14 15: e8 f3 29 04 fd callq 0xfd042a0d 1a: eb 0c jmp 0x28 1c: e8 ac 82 fd fc callq 0xfcfd82cd 21: 0f 00 2d 85 58 7b 06 verw 0x67b5885(%rip) # 0x67b58ad 28: fb sti 29: f4 hlt * 2a: 4c 89 f3 mov %r14,%rbx <-- trapping instruction 2d: 48 c1 eb 03 shr $0x3,%rbx 31: 42 80 3c 23 00 cmpb $0x0,(%rbx,%r12,1) 36: 74 08 je 0x40 38: 4c 89 f7 mov %r14,%rdi 3b: e8 6d 60 4f fd callq 0xfd4f60ad