------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3248! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 19185 Comm: syz-executor.4 Not tainted 5.10.161-syzkaller-00019-g416c4356f372 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3248 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xe54/0xec0 fs/ext4/mballoc.c:1174 Code: ff e8 40 13 c8 ff e9 c8 f3 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 14 f4 ff ff e8 46 13 c8 ff e9 0a f4 ff ff e8 ec 10 8e ff <0f> 0b e8 e5 10 8e ff 4c 89 ef e8 5d 64 cd ff e9 34 fc ff ff e8 d3 RSP: 0018:ffffc9000952e618 EFLAGS: 00010293 RAX: ffffffff81df10c4 RBX: 0000000000000001 RCX: ffff8881115dbb40 RDX: 0000000000000000 RSI: 00000000ffffd72f RDI: 0000000000000001 RBP: ffffc9000952e6b0 R08: ffffffff81df034c R09: ffffed102346a7f2 R10: ffffed102346a7f2 R11: 1ffff1102346a7f1 R12: 1ffff1102b8d0e79 R13: ffff88815c685000 R14: 00000000ffffd72f R15: dffffc0000000000 FS: 00007f1a02783700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f50dd57e000 CR3: 00000001786ad000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_discard_preallocations+0x803/0xf10 fs/ext4/mballoc.c:4451 ext4_truncate+0xa8b/0x1270 fs/ext4/inode.c:4353 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline] ext4_write_begin+0xd12/0x16f0 fs/ext4/inode.c:1254 ext4_da_write_begin+0x4a8/0xf10 fs/ext4/inode.c:3022 generic_perform_write+0x309/0x5b0 mm/filemap.c:3468 ext4_buffered_write_iter+0x47c/0x610 fs/ext4/file.c:272 ext4_file_write_iter+0x192/0x1c70 fs/ext4/file.c:689 __kernel_write+0x5ad/0x9d0 fs/read_write.c:550 dump_emit fs/coredump.c:849 [inline] dump_user_range+0x25b/0x3b0 fs/coredump.c:902 elf_core_dump+0x3156/0x3cd0 fs/binfmt_elf.c:2287 do_coredump+0x1f7c/0x2dc0 fs/coredump.c:811 get_signal+0xdde/0x1440 kernel/signal.c:2774 arch_do_signal+0x8e/0x650 arch/x86/kernel/signal.c:805 exit_to_user_mode_loop+0xa3/0xe0 kernel/entry/common.c:161 exit_to_user_mode_prepare kernel/entry/common.c:191 [inline] irqentry_exit_to_user_mode+0x56/0x80 kernel/entry/common.c:279 irqentry_exit+0x12/0x60 kernel/entry/common.c:367 exc_general_protection+0x2ef/0x490 arch/x86/kernel/traps.c:557 asm_exc_general_protection+0x1e/0x30 arch/x86/include/asm/idtentry.h:565 RIP: 0033:0x7f1a03a73101 Code: c4 28 c3 e8 f1 19 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 b8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f RSP: 002b:00000000200000d0 EFLAGS: 00010217 RAX: 0000000000000000 RBX: 00007f1a03b931f0 RCX: 00007f1a03a730f9 RDX: 0000000020000100 RSI: 00000000200000d0 RDI: 0000000001000000 RBP: 00007f1a03aceae9 R08: 0000000020001f40 R09: 0000000020001f40 R10: 0000000020000140 R11: 0000000000000206 R12: 0000000000000000 R13: 00007fffa7f2c22f R14: 00007f1a02783300 R15: 0000000000022000 Modules linked in: ---[ end trace 5d85382a381f80c1 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3248 [inline] RIP: 0010:ext4_mb_load_buddy_gfp+0xe54/0xec0 fs/ext4/mballoc.c:1174 Code: ff e8 40 13 c8 ff e9 c8 f3 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 14 f4 ff ff e8 46 13 c8 ff e9 0a f4 ff ff e8 ec 10 8e ff <0f> 0b e8 e5 10 8e ff 4c 89 ef e8 5d 64 cd ff e9 34 fc ff ff e8 d3 RSP: 0018:ffffc9000952e618 EFLAGS: 00010293 RAX: ffffffff81df10c4 RBX: 0000000000000001 RCX: ffff8881115dbb40 RDX: 0000000000000000 RSI: 00000000ffffd72f RDI: 0000000000000001 RBP: ffffc9000952e6b0 R08: ffffffff81df034c R09: ffffed102346a7f2 R10: ffffed102346a7f2 R11: 1ffff1102346a7f1 R12: 1ffff1102b8d0e79 R13: ffff88815c685000 R14: 00000000ffffd72f R15: dffffc0000000000 FS: 00007f1a02783700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc5769fd718 CR3: 00000001786ad000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400