EXT4-fs error (device loop3): ext4_xattr_block_get:562: inode #16: comm syz-executor.3: corrupted xattr block 37 EXT4-fs error (device loop3) in ext4_reserve_inode_write:5877: Out of memory EXT4-fs error (device loop3): ext4_dirty_inode:6087: inode #16: comm syz-executor.3: mark_inode_dirty error ------------[ cut here ]------------ kernel BUG at fs/ext4/ext4.h:3247! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7796 Comm: syz-executor.3 Not tainted 5.10.178-syzkaller-00238-g8a30c9beebe8 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023 RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline] RIP: 0010:ext4_mb_find_by_goal+0xe18/0xe50 fs/ext4/mballoc.c:1885 Code: 24 30 e9 be fb ff ff e8 06 c1 89 ff 48 bb 00 00 00 00 00 fc ff df e9 23 f7 ff ff e8 f2 c0 89 ff e9 05 f7 ff ff e8 e8 c0 89 ff <0f> 0b e8 81 c7 c8 02 e8 dc c0 89 ff 0f 0b e8 d5 c0 89 ff 0f 0b e8 RSP: 0018:ffffc900081e6540 EFLAGS: 00010287 RAX: ffffffff81e0b8c8 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc90004d5c000 RSI: 00000000000016f5 RDI: 00000000000016f6 RBP: ffffc900081e6650 R08: ffffffff81e0abdf R09: ffffed102c5a3c98 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88815d0ad3c8 R13: 0000000000000001 R14: 1ffff1102ba15a79 R15: 1ffff9200103ccb8 FS: 00007fa5df08e700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2e323000 CR3: 000000014fbd3000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_mb_regular_allocator+0x249/0x2030 fs/ext4/mballoc.c:2321 ext4_mb_new_blocks+0xfb1/0x4430 fs/ext4/mballoc.c:5038 ext4_ext_map_blocks+0x190e/0x6be0 fs/ext4/extents.c:4281 ext4_map_blocks+0xaa7/0x1f00 fs/ext4/inode.c:646 _ext4_get_block+0x21b/0x610 fs/ext4/inode.c:803 ext4_get_block+0x39/0x50 fs/ext4/inode.c:820 ext4_block_write_begin+0x61e/0x13b0 fs/ext4/inode.c:1087 ext4_write_begin+0x6fa/0x1730 ext4_da_write_begin+0x49d/0xf60 fs/ext4/inode.c:3031 generic_perform_write+0x2cd/0x570 mm/filemap.c:3506 ext4_buffered_write_iter+0x47d/0x610 fs/ext4/file.c:272 ext4_file_write_iter+0x193/0x1ca0 fs/ext4/file.c:689 do_iter_readv_writev+0x58e/0x790 do_iter_write+0x183/0x650 fs/read_write.c:866 vfs_writev+0x26e/0x510 fs/read_write.c:939 do_writev+0x1aa/0x340 fs/read_write.c:982 __do_sys_writev fs/read_write.c:1055 [inline] __se_sys_writev fs/read_write.c:1052 [inline] __x64_sys_writev+0x7d/0x90 fs/read_write.c:1052 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xc6 RIP: 0033:0x7fa5e031b389 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:00007fa5df08e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fa5e043af80 RCX: 00007fa5e031b389 RDX: 0000000000000001 RSI: 00000000200004c0 RDI: 0000000000000004 RBP: 00007fa5e0366493 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc0d0a0b2f R14: 00007fa5df08e300 R15: 0000000000022000 Modules linked in: ---[ end trace 4467a740bd9fa195 ]--- RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3247 [inline] RIP: 0010:ext4_mb_find_by_goal+0xe18/0xe50 fs/ext4/mballoc.c:1885 Code: 24 30 e9 be fb ff ff e8 06 c1 89 ff 48 bb 00 00 00 00 00 fc ff df e9 23 f7 ff ff e8 f2 c0 89 ff e9 05 f7 ff ff e8 e8 c0 89 ff <0f> 0b e8 81 c7 c8 02 e8 dc c0 89 ff 0f 0b e8 d5 c0 89 ff 0f 0b e8 RSP: 0018:ffffc900081e6540 EFLAGS: 00010287 RAX: ffffffff81e0b8c8 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc90004d5c000 RSI: 00000000000016f5 RDI: 00000000000016f6 RBP: ffffc900081e6650 R08: ffffffff81e0abdf R09: ffffed102c5a3c98 R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88815d0ad3c8 R13: 0000000000000001 R14: 1ffff1102ba15a79 R15: 1ffff9200103ccb8 FS: 00007fa5df08e700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c02fec1000 CR3: 000000014fbd3000 CR4: 00000000003506b0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400