------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:2984!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 617 Comm: syz-executor.3 Not tainted 5.4.249-syzkaller-00007-g50533a8b511b #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023
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:1116
Code: ff e8 db bd c9 ff e9 0a f3 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 e1 bd c9 ff e9 48 f3 ff ff e8 37 fd 99 ff <0f> 0b e8 30 fd 99 ff 0f 0b e8 29 fd 99 ff 0f 0b e8 22 fd 99 ff 0f
RSP: 0018:ffff8881e724f0e8 EFLAGS: 00010293
RAX: ffffffff81ca38d9 RBX: 0000000000000001 RCX: ffff8881e7555e80
RDX: 0000000000000000 RSI: 000000002039d2f8 RDI: 0000000000000001
RBP: ffff8881e6c06000 R08: ffffffff81ca2a82 R09: ffffed103ad8865b
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1103cd8087e
R13: dffffc0000000000 R14: 000000002039d2f8 R15: ffff8881e6c043f0
FS:  00007f2f63c8c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000200296ff CR3: 00000001f36c5000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_discard_preallocations+0x603/0xb90 fs/ext4/mballoc.c:4122
 ext4_truncate+0xa9a/0x1290 fs/ext4/inode.c:4648
 ext4_truncate_failed_write fs/ext4/truncate.h:20 [inline]
 ext4_write_begin+0xd5e/0x1900 fs/ext4/inode.c:1398
 ext4_da_write_begin+0x4a3/0xfe0 fs/ext4/inode.c:3120
 generic_perform_write+0x2c7/0x560 mm/filemap.c:3352
 __generic_file_write_iter+0x224/0x530 mm/filemap.c:3481
 ext4_file_write_iter+0x499/0x10e0 fs/ext4/file.c:270
 call_write_iter include/linux/fs.h:1981 [inline]
 new_sync_write fs/read_write.c:483 [inline]
 __vfs_write+0x5d3/0x750 fs/read_write.c:496
 vfs_write+0x206/0x4e0 fs/read_write.c:558
 ksys_write+0x199/0x2c0 fs/read_write.c:611
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 32478601d1801d55 ]---
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:1116
Code: ff e8 db bd c9 ff e9 0a f3 ff ff 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c 52 f3 ff ff e8 e1 bd c9 ff e9 48 f3 ff ff e8 37 fd 99 ff <0f> 0b e8 30 fd 99 ff 0f 0b e8 29 fd 99 ff 0f 0b e8 22 fd 99 ff 0f
RSP: 0018:ffff8881e724f0e8 EFLAGS: 00010293
RAX: ffffffff81ca38d9 RBX: 0000000000000001 RCX: ffff8881e7555e80
RDX: 0000000000000000 RSI: 000000002039d2f8 RDI: 0000000000000001
RBP: ffff8881e6c06000 R08: ffffffff81ca2a82 R09: ffffed103ad8865b
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff1103cd8087e
R13: dffffc0000000000 R14: 000000002039d2f8 R15: ffff8881e6c043f0
FS:  00007f2f63c8c6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc9459d1988 CR3: 00000001f36c5000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400