BUG: scheduling while atomic: syz-executor.3/21230/0x00000002 Modules linked in: Preemption disabled at: [] percpu_down_read include/linux/percpu-rwsem.h:63 [inline] [] __sb_start_write include/linux/fs.h:1831 [inline] [] sb_start_intwrite include/linux/fs.h:1948 [inline] [] ext4_evict_inode+0x5aa/0x14e0 fs/ext4/inode.c:244 CPU: 1 PID: 21230 Comm: syz-executor.3 Tainted: G W 5.15.148-syzkaller-00718-g993bed180178 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x151/0x1b7 lib/dump_stack.c:106 dump_stack+0x15/0x17 lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5707 schedule_debug kernel/sched/core.c:5734 [inline] __schedule+0xd19/0x1590 kernel/sched/core.c:6402 schedule+0x11f/0x1e0 kernel/sched/core.c:6595 io_schedule+0x8f/0x120 kernel/sched/core.c:8641 bit_wait_io+0x15/0xd0 kernel/sched/wait_bit.c:209 __wait_on_bit+0xb0/0x180 kernel/sched/wait_bit.c:49 out_of_line_wait_on_bit+0x1ab/0x230 kernel/sched/wait_bit.c:64 wait_on_bit_io include/linux/wait_bit.h:101 [inline] do_get_write_access+0x124/0xdb0 fs/jbd2/transaction.c:1116 jbd2_journal_get_write_access+0x195/0x2d0 fs/jbd2/transaction.c:1251 __ext4_journal_get_write_access+0x244/0x690 fs/ext4/ext4_jbd2.c:235 ext4_reserve_inode_write+0x2bd/0x3d0 fs/ext4/inode.c:5813 __ext4_mark_inode_dirty+0x129/0x7a0 fs/ext4/inode.c:5987 ext4_evict_inode+0xc30/0x14e0 fs/ext4/inode.c:283 evict+0x2a3/0x630 fs/inode.c:587 iput_final fs/inode.c:1705 [inline] iput+0x63b/0x7e0 fs/inode.c:1731 do_unlinkat+0x4e1/0x920 fs/namei.c:4361 __do_sys_unlink fs/namei.c:4402 [inline] __se_sys_unlink fs/namei.c:4400 [inline] __x64_sys_unlink+0x49/0x50 fs/namei.c:4400 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fb63cf1e617 Code: 73 01 c3 48 c7 c1 b0 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffe23f57f28 EFLAGS: 00000206 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb63cf1e617 RDX: 00007ffe23f57f50 RSI: 00007ffe23f57fe0 RDI: 00007ffe23f57fe0 RBP: 00007ffe23f57fe0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000100 R11: 0000000000000206 R12: 00007ffe23f590a0 R13: 00007fb63cf6a3b9 R14: 0000000000045560 R15: 000000000000000c