BUG: scheduling while atomic: syz-executor.2/12104/0x00000002 Modules linked in: Preemption disabled at: [] spin_lock include/linux/spinlock.h:350 [inline] [] ext4_mb_put_pa fs/ext4/mballoc.c:4586 [inline] [] ext4_mb_release_context fs/ext4/mballoc.c:5513 [inline] [] ext4_mb_new_blocks+0x2422/0x48f0 fs/ext4/mballoc.c:5714 CPU: 1 PID: 12104 Comm: syz-executor.2 Tainted: G W 6.1.75-syzkaller-00120-gebcdb9dc211f #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/0x1b lib/dump_stack.c:113 __schedule_bug+0x195/0x260 kernel/sched/core.c:5960 schedule_debug kernel/sched/core.c:5987 [inline] __schedule+0xcf7/0x1550 kernel/sched/core.c:6622 schedule+0xc3/0x180 kernel/sched/core.c:6805 jbd2_log_wait_commit+0x197/0x360 fs/jbd2/journal.c:709 __jbd2_journal_force_commit+0x163/0x1e0 fs/jbd2/journal.c:558 jbd2_journal_force_commit_nested+0x15/0x30 fs/jbd2/journal.c:579 ext4_should_retry_alloc+0x173/0x2d0 fs/ext4/balloc.c:709 ext4_da_write_begin+0x6e6/0x920 fs/ext4/inode.c:3030 generic_perform_write+0x2f9/0x5c0 mm/filemap.c:3838 ext4_buffered_write_iter+0x360/0x640 fs/ext4/file.c:285 ext4_file_write_iter+0x194/0x1570 __kernel_write_iter+0x2ff/0x710 fs/read_write.c:517 dump_emit_page fs/coredump.c:881 [inline] dump_user_range+0x469/0x6f0 fs/coredump.c:908 elf_core_dump+0x3746/0x4030 fs/binfmt_elf.c:2312 do_coredump+0x1909/0x2730 fs/coredump.c:755 get_signal+0x13ff/0x1820 kernel/signal.c:2865 arch_do_signal_or_restart+0xb0/0x16f0 arch/x86/kernel/signal.c:871 exit_to_user_mode_loop+0x74/0xa0 kernel/entry/common.c:168 exit_to_user_mode_prepare+0x5a/0xa0 kernel/entry/common.c:204 irqentry_exit_to_user_mode+0x9/0x20 kernel/entry/common.c:310 irqentry_exit+0x12/0x40 kernel/entry/common.c:413 exc_general_protection+0x32d/0x4c0 arch/x86/kernel/traps.c:729 asm_exc_general_protection+0x27/0x30 arch/x86/include/asm/idtentry.h:564 RIP: 0033:0x7f7d2087de71 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:0000000020000390 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f7d209abf80 RCX: 00007f7d2087de69 RDX: 00000000200003c0 RSI: 0000000020000390 RDI: 0000000000040000 RBP: 00007f7d208ca47a R08: 00000000200004c0 R09: 00000000200004c0 R10: 0000000020000400 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007f7d209abf80 R15: 00007ffcd2c536c8