BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 9297, name: syz-executor.3 preempt_count: 100, expected: 0 RCU nest depth: 0, expected: 0 INFO: lockdep is turned off. Preemption disabled at: [] softirq_handle_begin kernel/softirq.c:396 [inline] [] __do_softirq+0xe1/0x9c2 kernel/softirq.c:534 CPU: 0 PID: 9297 Comm: syz-executor.3 Tainted: G W 5.17.0-syzkaller-10748-g2975dbdc3989 #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+0x45/0xc0 arch/x86/kernel/apic/apic.c:1097 asm_sysvec_apic_timer_interrupt+0x12/0x20 arch/x86/include/asm/idtentry.h:645 RIP: 0033:0x7f6dd3c371f5 Code: 4c 89 ee e8 4d fa ff ff 4d 39 ec 74 40 0f 1f 84 00 00 00 00 00 49 8b 4d 00 49 8b 55 f8 49 8d 45 f8 48 39 d1 0f 83 f0 00 00 00 <0f> 1f 00 48 89 50 08 48 89 c6 48 8b 50 f8 48 83 e8 08 48 39 d1 72 RSP: 002b:00007ffdfac5c3a0 EFLAGS: 00000283 RAX: 00007f6dd3a00b38 RBX: 00007f6dd3a00008 RCX: ffffffff817edebf RDX: ffffffff817eded6 RSI: 00007f6dd3a00b38 RDI: 00007f6dd3a00008 RBP: 0000000000001080 R08: 00007f6dd3a000a0 R09: 00000000af7aa34f R10: 00007ffdfac5c570 R11: 0000000000000246 R12: 00007f6dd3a08408 R13: 00007f6dd3a00b40 R14: 00007f6dd3d9bff8 R15: ffffffff895db4f1