------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:2984! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 431 Comm: syz-executor.0 Not tainted 5.4.283-syzkaller-04981-g1cca65ac6abc #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_find_by_goal+0xc36/0xc70 fs/ext4/mballoc.c:1830 Code: fb ff ff 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c f6 fb ff ff 48 89 d7 e8 19 70 c8 ff 48 8b 54 24 20 e9 e4 fb ff ff e8 7a 88 98 ff <0f> 0b e8 53 3e 6f ff e8 6e 88 98 ff 0f 0b e8 67 88 98 ff 0f 0b e8 RSP: 0018:ffff8881ef0366a0 EFLAGS: 00010293 RAX: ffffffff81cbae26 RBX: 0000000000000001 RCX: ffff8881f31cee40 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8881ef0367b0 R08: ffffffff81cba311 R09: ffffed103b624f22 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881ef2803f0 R14: 0000000000000001 R15: 1ffff1103de5007e FS: 00007f02ac09f6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200400bf CR3: 00000001f0afa000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_regular_allocator+0x229/0x10d0 fs/ext4/mballoc.c:2131 ext4_mb_new_blocks+0x59a/0x2d10 fs/ext4/mballoc.c:4603 ext4_ext_map_blocks+0x1e70/0x7450 fs/ext4/extents.c:4512 ext4_map_blocks+0xa2f/0x1ba0 fs/ext4/inode.c:661 _ext4_get_block+0x21b/0x610 fs/ext4/inode.c:802 ext4_get_block_trans+0x41a/0x5b0 fs/ext4/inode.c:863 get_more_blocks fs/direct-io.c:714 [inline] do_direct_IO fs/direct-io.c:1008 [inline] do_blockdev_direct_IO fs/direct-io.c:1340 [inline] __blockdev_direct_IO+0x16b1/0x49b0 fs/direct-io.c:1426 ext4_direct_IO_write fs/ext4/inode.c:3830 [inline] ext4_direct_IO+0xc36/0x19a0 fs/ext4/inode.c:3992 generic_file_direct_write+0x509/0x740 mm/filemap.c:3353 __generic_file_write_iter+0x27d/0x530 mm/filemap.c:3536 ext4_file_write_iter+0x8f8/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 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 RIP: 0033:0x7f02ac51c959 Code: 28 00 00 00 75 05 48 83 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 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f02ac09f0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f02ac63bf80 RCX: 00007f02ac51c959 RDX: 000000000002a000 RSI: 0000000020000000 RDI: 0000000000000004 RBP: 00007f02ac578c88 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007f02ac63bf80 R15: 00007fff913384d8 Modules linked in: ---[ end trace ef2642c22d017c7f ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline] RIP: 0010:ext4_mb_find_by_goal+0xc36/0xc70 fs/ext4/mballoc.c:1830 Code: fb ff ff 89 d1 80 e1 07 80 c1 03 38 c1 0f 8c f6 fb ff ff 48 89 d7 e8 19 70 c8 ff 48 8b 54 24 20 e9 e4 fb ff ff e8 7a 88 98 ff <0f> 0b e8 53 3e 6f ff e8 6e 88 98 ff 0f 0b e8 67 88 98 ff 0f 0b e8 RSP: 0018:ffff8881ef0366a0 EFLAGS: 00010293 RAX: ffffffff81cbae26 RBX: 0000000000000001 RCX: ffff8881f31cee40 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff8881ef0367b0 R08: ffffffff81cba311 R09: ffffed103b624f22 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: ffff8881ef2803f0 R14: 0000000000000001 R15: 1ffff1103de5007e FS: 00007f02ac09f6c0(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00000000200400bf CR3: 00000001f0afa000 CR4: 00000000003406b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400