EXT4-fs error (device loop1): ext4_xattr_block_get:551: inode #18: comm syz-executor.1: corrupted xattr block 176
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3354!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 30898 Comm: syz-executor.1 Not tainted 5.15.80-syzkaller-00318-g72d681a01da5 #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:3354 [inline]
RIP: 0010:ext4_free_blocks+0x2bd4/0x2cb0 fs/ext4/mballoc.c:5996
Code: f6 48 0f a3 05 2d d4 11 05 0f 92 c3 40 0f 92 c6 31 ff e8 ff ad 7e ff 84 db 75 18 e8 e6 aa 7e ff e9 bb 00 00 00 e8 dc aa 7e ff <0f> 0b e8 d5 aa 7e ff 0f 0b 65 ff 05 e4 79 0f 7e 48 c7 c0 18 aa 02
RSP: 0018:ffffc90008dc76c0 EFLAGS: 00010283
RAX: ffffffff81f2f394 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000750a000 RSI: 0000000000000778 RDI: 0000000000000779
RBP: ffffc90008dc7940 R08: ffffffff81f2d366 R09: ffffc90008dc7880
R10: fffff520011b8f17 R11: 1ffff920011b8f10 R12: ffff88810e6b0000
R13: dffffc0000000000 R14: 000000006e617070 R15: 0000000000000dcc
FS: 00007f69575ca700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f00de0d6000 CR3: 0000000111da2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_clear_blocks+0x3b5/0x420 fs/ext4/indirect.c:880
ext4_free_data fs/ext4/indirect.c:941 [inline]
ext4_ind_truncate+0x45d/0xd70 fs/ext4/indirect.c:1146
ext4_truncate+0x923/0xf50 fs/ext4/inode.c:4270
ext4_setattr+0xfe4/0x1920 fs/ext4/inode.c:5529
notify_change+0xd8f/0x1040 fs/attr.c:426
do_truncate fs/open.c:66 [inline]
do_sys_ftruncate+0x55d/0x7d0 fs/open.c:194
__do_sys_ftruncate fs/open.c:205 [inline]
__se_sys_ftruncate fs/open.c:203 [inline]
__x64_sys_ftruncate+0x60/0x70 fs/open.c:203
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6960b780c9
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:00007f69575ca168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f6960c98050 RCX: 00007f6960b780c9
RDX: 0000000000000000 RSI: 00000000000000fc RDI: 0000000000000004
RBP: 00007f6960bd3ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff0785b48f R14: 00007f69575ca300 R15: 0000000000022000
</TASK>
Modules linked in:
---[ end trace 284d167deada310f ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3354 [inline]
RIP: 0010:ext4_free_blocks+0x2bd4/0x2cb0 fs/ext4/mballoc.c:5996
Code: f6 48 0f a3 05 2d d4 11 05 0f 92 c3 40 0f 92 c6 31 ff e8 ff ad 7e ff 84 db 75 18 e8 e6 aa 7e ff e9 bb 00 00 00 e8 dc aa 7e ff <0f> 0b e8 d5 aa 7e ff 0f 0b 65 ff 05 e4 79 0f 7e 48 c7 c0 18 aa 02
RSP: 0018:ffffc90008dc76c0 EFLAGS: 00010283
RAX: ffffffff81f2f394 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000750a000 RSI: 0000000000000778 RDI: 0000000000000779
RBP: ffffc90008dc7940 R08: ffffffff81f2d366 R09: ffffc90008dc7880
R10: fffff520011b8f17 R11: 1ffff920011b8f10 R12: ffff88810e6b0000
R13: dffffc0000000000 R14: 000000006e617070 R15: 0000000000000dcc
FS: 00007f69575ca700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 0000000111da2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400