EXT4-fs error (device loop0): ext4_map_blocks:731: inode #19: block 143: comm syz-executor.0: lblock 8207 mapped to illegal pblock 143 (length 1) ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2984! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 1093 Comm: syz-executor.0 Not tainted 5.4.283-syzkaller-04984-ge6ac8beecb16 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xf29/0xf40 fs/ext4/mballoc.c:1117 Code: ff e8 fb aa c9 ff e9 0a f3 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 01 ab c9 ff e9 48 f3 ff ff e8 a7 c1 99 ff <0f> 0b e8 a0 c1 99 ff 0f 0b e8 99 c1 99 ff 0f 0b e8 92 c1 99 ff 0f RSP: 0018:ffff8881e9ff6708 EFLAGS: 00010293 RAX: ffffffff81ca74f9 RBX: 0000000000000001 RCX: ffff8881ee794ec0 RDX: 0000000000000000 RSI: 00000000ffffd331 RDI: 0000000000000001 RBP: ffff8881ea6ce000 R08: ffffffff81ca66a2 R09: ffffed103b636718 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1103d4d9a7e R13: dffffc0000000000 R14: 00000000ffffd331 R15: ffff8881ea6cd3f0 FS: 00007fd2b14526c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020006000 CR3: 00000001e9baa000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x603/0xb90 fs/ext4/mballoc.c:4127 ext4_truncate+0xa9a/0x1290 fs/ext4/inode.c:4638 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_write_begin+0xd5e/0x1900 fs/ext4/inode.c:1388 ext4_da_write_begin+0x4a3/0xfe0 fs/ext4/inode.c:3110 generic_perform_write+0x2c7/0x560 mm/filemap.c:3450 __generic_file_write_iter+0x224/0x530 mm/filemap.c:3579 ext4_file_write_iter+0x499/0x10e0 fs/ext4/file.c:270 call_write_iter include/linux/fs.h:1989 [inline] new_sync_write fs/read_write.c:483 [inline] __vfs_write+0x5d3/0x750 fs/read_write.c:496 __kernel_write+0x10f/0x350 fs/read_write.c:515 dump_emit+0x213/0x350 fs/coredump.c:838 elf_core_dump+0x3e1b/0x4740 fs/binfmt_elf.c:2352 do_coredump+0x20fb/0x2f00 fs/coredump.c:801 get_signal+0xd83/0x1440 kernel/signal.c:2729 do_signal+0xb0/0x11f0 arch/x86/kernel/signal.c:809 exit_to_usermode_loop+0xc0/0x1a0 arch/x86/entry/common.c:159 prepare_exit_to_usermode+0x199/0x200 arch/x86/entry/common.c:194 ret_from_intr+0x1c/0x1c RIP: 0033:0x0 Code: Bad RIP value. RSP: 002b:0000000020000008 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fd2b19eef80 RCX: 00007fd2b18cf8d9 RDX: 0000000020000100 RSI: 0000000020000000 RDI: 0000000041808000 RBP: 00007fd2b192bb20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000020000140 R11: 0000000000000206 R12: 0000000000000000 R13: 000000000000000b R14: 00007fd2b19eef80 R15: 00007ffcce72c148 Modules linked in: ---[ end trace 1079d13667e4ef72 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xf29/0xf40 fs/ext4/mballoc.c:1117 Code: ff e8 fb aa c9 ff e9 0a f3 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 01 ab c9 ff e9 48 f3 ff ff e8 a7 c1 99 ff <0f> 0b e8 a0 c1 99 ff 0f 0b e8 99 c1 99 ff 0f 0b e8 92 c1 99 ff 0f RSP: 0018:ffff8881e9ff6708 EFLAGS: 00010293 RAX: ffffffff81ca74f9 RBX: 0000000000000001 RCX: ffff8881ee794ec0 RDX: 0000000000000000 RSI: 00000000ffffd331 RDI: 0000000000000001 RBP: ffff8881ea6ce000 R08: ffffffff81ca66a2 R09: ffffed103b636718 R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1103d4d9a7e R13: dffffc0000000000 R14: 00000000ffffd331 R15: ffff8881ea6cd3f0 FS: 00007fd2b14526c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002010003f CR3: 00000001e9baa000 CR4: 00000000003406a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400