EXT4-fs error (device loop0): ext4_discard_preallocations:4463: comm syz-executor228: Error -117 reading block bitmap for 0 ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3247! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 301 Comm: syz-executor228 Not tainted 5.10.177-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/14/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xf5d/0x1020 fs/ext4/mballoc.c:1174 Code: ff e8 47 3c c8 ff e9 f0 f2 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 4d 3c c8 ff e9 48 f3 ff ff e8 83 2e 8b ff <0f> 0b e9 62 00 00 00 e8 77 2e 8b ff e9 ef fb ff ff e9 65 00 00 00 RSP: 0018:ffffc90000c36590 EFLAGS: 00010293 RAX: ffffffff81df3e6d RBX: 00000000fffff01a RCX: ffff88810b2ecf00 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc90000c36610 R08: ffffffff81df2ffc R09: fffff94000852c07 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff88810ac67000 R14: 1ffff1102158c079 R15: ffff88810ac603c8 FS: 00005555571db300(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000562ed30d0278 CR3: 000000010ac35000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x79c/0xef0 fs/ext4/mballoc.c:4451 ext4_truncate+0xa95/0x1220 fs/ext4/inode.c:4362 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_write_begin+0xce0/0x1730 fs/ext4/inode.c:1262 ext4_da_write_begin+0x49d/0xf60 fs/ext4/inode.c:3031 generic_perform_write+0x2cd/0x570 mm/filemap.c:3501 ext4_buffered_write_iter+0x47d/0x610 fs/ext4/file.c:272 ext4_file_write_iter+0x193/0x1ca0 fs/ext4/file.c:689 __kernel_write+0x5ab/0x9d0 fs/read_write.c:550 dump_emit+0x261/0x3a0 fs/coredump.c:849 dump_user_range+0x71/0x1a0 fs/coredump.c:902 elf_core_dump+0x33bd/0x3c10 fs/binfmt_elf.c:2287 do_coredump+0x1eb8/0x2d60 fs/coredump.c:811 get_signal+0x102c/0x1410 kernel/signal.c:2768 arch_do_signal_or_restart+0xbd/0x17c0 arch/x86/kernel/signal.c:805 handle_signal_work kernel/entry/common.c:145 [inline] exit_to_user_mode_loop+0x9b/0xd0 kernel/entry/common.c:169 exit_to_user_mode_prepare kernel/entry/common.c:199 [inline] irqentry_exit_to_user_mode+0x55/0x80 kernel/entry/common.c:287 irqentry_exit+0x12/0x60 kernel/entry/common.c:375 exc_page_fault+0x33d/0x5b0 arch/x86/mm/fault.c:1521 asm_exc_page_fault+0x1e/0x30 arch/x86/include/asm/idtentry.h:571 RIP: 0033:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 002b:0000000020000473 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007fa2915b84e8 RCX: 00007fa291540609 RDX: 00007fa2914fdaa3 RSI: 0000000000000058 RDI: 00007fffcf40ee00 RBP: 0000000000000000 R08: 0000000000000755 R09: 00007fffcf40edb0 R10: 00007fffcf40ec50 R11: 0000000000000206 R12: 00007fffcf40eda8 R13: 00007fffcf40ee00 R14: 00007fffcf40edc0 R15: 0000000000000000 Modules linked in: ---[ end trace a3baf27b5dc9ec7e ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xf5d/0x1020 fs/ext4/mballoc.c:1174 Code: ff e8 47 3c c8 ff e9 f0 f2 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 4d 3c c8 ff e9 48 f3 ff ff e8 83 2e 8b ff <0f> 0b e9 62 00 00 00 e8 77 2e 8b ff e9 ef fb ff ff e9 65 00 00 00 RSP: 0018:ffffc90000c36590 EFLAGS: 00010293 RAX: ffffffff81df3e6d RBX: 00000000fffff01a RCX: ffff88810b2ecf00 RDX: 0000000000000000 RSI: 00000000fffff01a RDI: 0000000000000001 RBP: ffffc90000c36610 R08: ffffffff81df2ffc R09: fffff94000852c07 R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000001 R13: ffff88810ac67000 R14: 1ffff1102158c079 R15: ffff88810ac603c8 FS: 00005555571db300(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005555571e4628 CR3: 000000010ac35000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400