BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 3615, name: syz-executor.4 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: 1 PID: 3615 Comm: syz-executor.4 Tainted: G W 5.17.0-syzkaller-13547-g11f8e7c122ce #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:__find_get_block+0x229/0xe20 fs/buffer.c:1305 Code: 7d 30 96 ff 49 8d 7f 60 be 04 00 00 00 e8 ff dd e1 ff f0 41 ff 47 60 eb 03 45 31 ed e8 60 30 96 ff e8 9b 77 9c ff fb 4d 85 ed <0f> 84 b2 01 00 00 e8 4c 30 96 ff 0f 1f 44 00 00 e8 42 30 96 ff e8 RSP: 0018:ffffc90003ccf8b0 EFLAGS: 00000282 RAX: 0000000000000007 RBX: 0000000000000000 RCX: 1ffffffff1b6d6c5 RDX: 0000000000000000 RSI: ffffffff817ee4b1 RDI: ffffffff81e26cc5 RBP: ffff888073cfe1d0 R08: 0000000000000000 R09: 0000000000000000 R10: ffffffff817ee498 R11: 0000000000000000 R12: 00000000000000da R13: ffff888073d22658 R14: 0000000000036000 R15: ffff888073d22658 __getblk_gfp+0x28/0x80 fs/buffer.c:1329 sb_getblk include/linux/buffer_head.h:326 [inline] __ext4_get_inode_loc+0x366/0x12e0 fs/ext4/inode.c:4439 ext4_get_inode_loc+0xba/0x160 fs/ext4/inode.c:4567 ext4_reserve_inode_write+0xca/0x270 fs/ext4/inode.c:5729 ext4_orphan_add+0x8b0/0x1440 fs/ext4/orphan.c:144 __ext4_unlink+0x661/0x920 fs/ext4/namei.c:3195 ext4_unlink+0x346/0x9e0 fs/ext4/namei.c:3231 vfs_unlink+0x351/0x920 fs/namei.c:4150 do_unlinkat+0x3c9/0x650 fs/namei.c:4218 __do_sys_unlink fs/namei.c:4266 [inline] __se_sys_unlink fs/namei.c:4264 [inline] __x64_sys_unlink+0xc6/0x110 fs/namei.c:4264 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7f0fb5a88987 Code: 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 57 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffc5f179828 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0fb5a88987 RDX: 00007ffc5f179860 RSI: 00007ffc5f179860 RDI: 00007ffc5f1798f0 RBP: 00007ffc5f1798f0 R08: 0000000000000001 R09: 00007ffc5f1796c0 R10: 000055555736b853 R11: 0000000000000206 R12: 00007f0fb5ae21ea R13: 00007ffc5f17a9b0 R14: 000055555736b810 R15: 00007ffc5f17a9f0 BUG: sleeping function called from invalid context at block/blk-sysfs.c:766 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 21, name: ksoftirqd/1 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: 1 PID: 21 Comm: ksoftirqd/1 Tainted: G W 5.17.0-syzkaller-13547-g11f8e7c122ce #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 run_ksoftirqd kernel/softirq.c:921 [inline] run_ksoftirqd+0x2d/0x60 kernel/softirq.c:913 smpboot_thread_fn+0x645/0x9c0 kernel/smpboot.c:164 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:298 ---------------- Code disassembly (best guess): 0: 7d 30 jge 0x32 2: 96 xchg %eax,%esi 3: ff 49 8d decl -0x73(%rcx) 6: 7f 60 jg 0x68 8: be 04 00 00 00 mov $0x4,%esi d: e8 ff dd e1 ff callq 0xffe1de11 12: f0 41 ff 47 60 lock incl 0x60(%r15) 17: eb 03 jmp 0x1c 19: 45 31 ed xor %r13d,%r13d 1c: e8 60 30 96 ff callq 0xff963081 21: e8 9b 77 9c ff callq 0xff9c77c1 26: fb sti 27: 4d 85 ed test %r13,%r13 * 2a: 0f 84 b2 01 00 00 je 0x1e2 <-- trapping instruction 30: e8 4c 30 96 ff callq 0xff963081 35: 0f 1f 44 00 00 nopl 0x0(%rax,%rax,1) 3a: e8 42 30 96 ff callq 0xff963081 3f: e8 .byte 0xe8