------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3248! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 0 PID: 2985 Comm: syz-executor.2 Not tainted 5.10.161-syzkaller-00019-g416c4356f372 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3248 [inline] RIP: 0010:ext4_free_blocks+0x29ed/0x2ad0 fs/ext4/mballoc.c:5411 Code: f6 48 0f a3 05 d4 10 bf 04 0f 92 c3 40 0f 92 c6 31 ff e8 26 39 8d ff 84 db 75 18 e8 0d 36 8d ff e9 b8 00 00 00 e8 03 36 8d ff <0f> 0b e8 fc 35 8d ff 0f 0b 65 ff 05 cf 81 22 7e 48 c7 c0 e8 d3 9c RSP: 0018:ffffc90001ad6f60 EFLAGS: 00010293 RAX: ffffffff81dfebad RBX: 0000000000000001 RCX: ffff88818649a780 RDX: 0000000000000000 RSI: 00000000ffffe428 RDI: 0000000000000001 RBP: ffffc90001ad71d0 R08: ffffffff81dfcd6e R09: 0000000000000000 R10: 0000000000000003 R11: ffff88818649a780 R12: 00000000000000d0 R13: dffffc0000000000 R14: 00000000ffffe428 R15: ffff888106bd2000 FS: 00007f3cfe5cc700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000002032a0bf CR3: 000000010f1c6000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_ext_rm_idx+0x2f4/0x730 fs/ext4/extents.c:2325 ext4_ext_rm_leaf+0x1430/0x18c0 fs/ext4/extents.c:2780 ext4_ext_remove_space+0xf25/0x22a0 fs/ext4/extents.c:2952 ext4_ext_truncate+0x18a/0x210 fs/ext4/extents.c:4413 ext4_truncate+0xba0/0x1270 fs/ext4/inode.c:4356 ext4_setattr+0xf7b/0x17f0 fs/ext4/inode.c:5599 notify_change+0xb76/0xe10 fs/attr.c:338 do_truncate+0x1ea/0x2d0 fs/open.c:65 handle_truncate fs/namei.c:2991 [inline] do_open fs/namei.c:3333 [inline] path_openat+0x294e/0x2fd0 fs/namei.c:3448 do_filp_open+0x200/0x440 fs/namei.c:3475 do_sys_openat2+0x13b/0x470 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_openat fs/open.c:1243 [inline] __se_sys_openat fs/open.c:1238 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1238 do_syscall_64+0x34/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7f3d07b7a0c9 Code: 28 00 00 00 75 05 48 83 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 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f3cfe5cc168 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007f3d07c9a050 RCX: 00007f3d07b7a0c9 RDX: 000000000000275a RSI: 00000000200001c0 RDI: ffffffffffffff9c RBP: 00007f3d07bd5ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffead463c9f R14: 00007f3cfe5cc300 R15: 0000000000022000 Modules linked in: ---[ end trace 44d2beb8db247b57 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3248 [inline] RIP: 0010:ext4_free_blocks+0x29ed/0x2ad0 fs/ext4/mballoc.c:5411 Code: f6 48 0f a3 05 d4 10 bf 04 0f 92 c3 40 0f 92 c6 31 ff e8 26 39 8d ff 84 db 75 18 e8 0d 36 8d ff e9 b8 00 00 00 e8 03 36 8d ff <0f> 0b e8 fc 35 8d ff 0f 0b 65 ff 05 cf 81 22 7e 48 c7 c0 e8 d3 9c RSP: 0018:ffffc90001ad6f60 EFLAGS: 00010293 RAX: ffffffff81dfebad RBX: 0000000000000001 RCX: ffff88818649a780 RDX: 0000000000000000 RSI: 00000000ffffe428 RDI: 0000000000000001 RBP: ffffc90001ad71d0 R08: ffffffff81dfcd6e R09: 0000000000000000 R10: 0000000000000003 R11: ffff88818649a780 R12: 00000000000000d0 R13: dffffc0000000000 R14: 00000000ffffe428 R15: ffff888106bd2000 FS: 00007f3cfe5cc700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b31f25000 CR3: 000000010f1c6000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400