EXT4-fs error (device loop1): ext4_dirty_inode:5995: inode #17: comm syz-executor.1: mark_inode_dirty error ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3246! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 8156 Comm: syz-executor.1 Not tainted 5.10.82-syzkaller-00155-g8d21bcc704ea #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3246 [inline] RIP: 0010:ext4_free_blocks+0x297a/0x2a60 fs/ext4/mballoc.c:5370 Code: f6 48 0f a3 1d 77 5f da 04 0f 92 c3 40 0f 92 c6 31 ff e8 29 6d 87 ff 84 db 75 18 e8 40 6a 87 ff e9 ba 00 00 00 e8 36 6a 87 ff <0f> 0b e8 2f 6a 87 ff 0f 0b 65 83 05 31 fc 1c 7e 01 48 c7 c0 98 b3 RSP: 0018:ffffc9001046efa0 EFLAGS: 00010283 RAX: ffffffff81e5714a RBX: 0000000000000055 RCX: 0000000000040000 RDX: ffffc9000311b000 RSI: 0000000000004ee5 RDI: 0000000000004ee6 RBP: ffffc9001046f1f0 R08: ffffffff81e5533f R09: ffffc9001046f140 R10: fffff5200208de2f R11: 0000000000000000 R12: ffffc9001046f100 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888154cea000 FS: 00007f467e479700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000010d448000 CR4: 00000000003526a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_clear_blocks+0x3b3/0x420 fs/ext4/indirect.c:877 ext4_free_data+0x12d/0x330 fs/ext4/indirect.c:937 ext4_free_branches+0x6f/0x640 fs/ext4/indirect.c:1095 ext4_free_branches+0x2df/0x640 fs/ext4/indirect.c:1030 ext4_ind_truncate+0xb68/0x1080 fs/ext4/indirect.c:1181 ext4_truncate+0xae0/0x1270 fs/ext4/inode.c:4307 ext4_setattr+0x1097/0x1930 fs/ext4/inode.c:5546 notify_change+0xb78/0x1020 fs/attr.c:336 do_truncate+0x1ea/0x2d0 fs/open.c:65 handle_truncate fs/namei.c:2989 [inline] do_open fs/namei.c:3331 [inline] path_openat+0x294e/0x3500 fs/namei.c:3444 do_filp_open+0x200/0x440 fs/namei.c:3471 do_sys_openat2+0x13b/0x470 fs/open.c:1211 do_sys_open fs/open.c:1227 [inline] __do_sys_open fs/open.c:1235 [inline] __se_sys_open fs/open.c:1231 [inline] __x64_sys_open+0x221/0x270 fs/open.c:1231 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x7f4680744ae9 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f467e479188 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 RAX: ffffffffffffffda RBX: 00007f46808580e0 RCX: 00007f4680744ae9 RDX: 0000000000000000 RSI: 00000000001c5b42 RDI: 0000000020000080 RBP: 00007f468079ef6d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff8fb49e6f R14: 00007f467e479300 R15: 0000000000022000 Modules linked in: ---[ end trace f1d80feb65d50e53 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3246 [inline] RIP: 0010:ext4_free_blocks+0x297a/0x2a60 fs/ext4/mballoc.c:5370 Code: f6 48 0f a3 1d 77 5f da 04 0f 92 c3 40 0f 92 c6 31 ff e8 29 6d 87 ff 84 db 75 18 e8 40 6a 87 ff e9 ba 00 00 00 e8 36 6a 87 ff <0f> 0b e8 2f 6a 87 ff 0f 0b 65 83 05 31 fc 1c 7e 01 48 c7 c0 98 b3 RSP: 0018:ffffc9001046efa0 EFLAGS: 00010283 RAX: ffffffff81e5714a RBX: 0000000000000055 RCX: 0000000000040000 RDX: ffffc9000311b000 RSI: 0000000000004ee5 RDI: 0000000000004ee6 RBP: ffffc9001046f1f0 R08: ffffffff81e5533f R09: ffffc9001046f140 R10: fffff5200208de2f R11: 0000000000000000 R12: ffffc9001046f100 R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888154cea000 FS: 00007f467e479700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020001000 CR3: 000000010d448000 CR4: 00000000003526a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400