BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3589, name: syz-fuzzer 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: 3589 Comm: syz-fuzzer Tainted: G W 5.17.0-syzkaller-13573-g8e9d0d7a76c5 #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:0x411aff Code: 48 8b 7c 24 20 41 89 c8 4c 8b 4c 24 30 4c 8b 54 24 40 4c 8b 5c 24 48 44 0f b6 64 24 1e 4c 8b 6c 24 28 4e 8b 7c 2c 58 41 84 07 <4e> 8b 4c 2c 60 49 83 e1 07 47 88 24 0f 4c 8b 48 30 49 83 79 08 00 RSP: 002b:000000c01148cc78 EFLAGS: 00000286 RAX: 00000000006715c0 RBX: 000000c01148d058 RCX: 0000000000000001 RDX: 0000000000000000 RSI: 000000c011e0a900 RDI: 0000000000000004 RBP: 000000c01148cd10 R08: 0000000000000001 R09: 0000000000000002 R10: 000000c011e0a928 R11: 000000c011e0a968 R12: 00000000000000ca R13: 0000000000000020 R14: 000000c000083860 R15: 000000c011d945a0