BUG: scheduling while atomic: syz-executor.3/15304/0x00000002 Modules linked in: Preemption disabled at: [] kmap_atomic include/linux/highmem-internal.h:196 [inline] [] clear_highpage include/linux/highmem.h:180 [inline] [] kernel_init_free_pages+0x47/0xf0 mm/page_alloc.c:1407 CPU: 1 PID: 15304 Comm: syz-executor.3 Not tainted 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 wait_transaction_locked+0x1e5/0x280 fs/jbd2/transaction.c:179 add_transaction_credits fs/jbd2/transaction.c:242 [inline] start_this_handle+0x7c2/0x1fb0 fs/jbd2/transaction.c:423 jbd2__journal_start+0x2ea/0x710 fs/jbd2/transaction.c:521 __ext4_journal_start_sb+0xfa/0x2c0 fs/ext4/ext4_jbd2.c:105 __ext4_journal_start fs/ext4/ext4_jbd2.h:326 [inline] ext4_dirty_inode+0x8f/0x100 fs/ext4/inode.c:6021 __mark_inode_dirty+0x200/0xa50 fs/fs-writeback.c:2464 generic_update_time+0x1e9/0x210 fs/inode.c:1817 inode_update_time fs/inode.c:1830 [inline] file_update_time+0x3eb/0x460 fs/inode.c:2019 file_modified+0x7a/0xb0 fs/inode.c:2042 ext4_write_checks fs/ext4/file.c:249 [inline] ext4_buffered_write_iter+0x2f0/0x610 fs/ext4/file.c:265 ext4_file_write_iter+0x443/0x1c80 __kernel_write+0x5ab/0xa60 fs/read_write.c:539 __dump_emit+0x261/0x3a0 fs/coredump.c:875 dump_emit+0x381/0x3f0 fs/coredump.c:912 dump_user_range+0x86/0x1c0 fs/coredump.c:949 elf_core_dump+0x3663/0x3e80 fs/binfmt_elf.c:2285 do_coredump+0x1834/0x3050 fs/coredump.c:826 get_signal+0x4c8/0x1630 kernel/signal.c:2882 arch_do_signal_or_restart+0xbd/0x1680 arch/x86/kernel/signal.c:867 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop+0xa0/0xe0 kernel/entry/common.c:172 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:208 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:314 irqentry_exit+0x12/0x40 kernel/entry/common.c:405 exc_page_fault+0x47a/0x830 arch/x86/mm/fault.c:1608 asm_exc_page_fault+0x27/0x30 arch/x86/include/asm/idtentry.h:568 RIP: 0033:0x7efddeeffe71 Code: c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 48 3d 01 f0 ff ff 73 01 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:0000000001000000 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007efddf02df80 RCX: 00007efddeeffe69 RDX: 0000000000000000 RSI: 0000000001000000 RDI: 0000000075848409 RBP: 00007efddef4c47a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007efddf02df80 R15: 00007ffd1c04fa58