EXT4-fs error (device loop5): ext4_iget_extra_inode:5075: inode #12: comm syz.5.268: corrupted in-inode xattr: e_name out of bounds EXT4-fs error (device loop5): ext4_iget_extra_inode:5075: inode #12: comm syz.5.268: corrupted in-inode xattr: e_name out of bounds ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:2809! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 0 UID: 0 PID: 8097 Comm: syz.5.268 Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025 RIP: 0010:ext4_do_writepages+0x45f0/0x4600 fs/ext4/inode.c:2808 Code: c6 e0 2f fe 8a e8 20 ea ba fe 90 0f 0b e8 68 0f 52 ff 4c 89 f7 48 c7 c6 c0 33 fe 8a e8 09 ea ba fe 90 0f 0b e8 51 0f 52 ff 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900042af160 EFLAGS: 00010283 RAX: ffffffff826caeaf RBX: 0000004210000000 RCX: 0000000000080000 RDX: ffffc9001b365000 RSI: 00000000000007ad RDI: 00000000000007ae RBP: ffffc900042af590 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100bddb5f7 R12: 0000000000000001 R13: ffffc900042af5e0 R14: 0000004000000000 R15: dffffc0000000000 FS: 00007fd87cefe6c0(0000) GS:ffff888126dfc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd152c1f420 CR3: 000000006b5dc000 CR4: 00000000003526f0 Call Trace: ext4_writepages+0x205/0x350 fs/ext4/inode.c:3025 do_writepages+0x32e/0x550 mm/page-writeback.c:2604 filemap_fdatawrite_wbc mm/filemap.c:389 [inline] __filemap_fdatawrite_range mm/filemap.c:422 [inline] file_write_and_wait_range+0x244/0x340 mm/filemap.c:797 generic_buffers_fsync_noflush+0x6f/0x180 fs/buffer.c:609 ext4_fsync_nojournal fs/ext4/fsync.c:88 [inline] ext4_sync_file+0x33b/0xb20 fs/ext4/fsync.c:147 generic_write_sync include/linux/fs.h:3046 [inline] ext4_buffered_write_iter+0x2ce/0x3a0 fs/ext4/file.c:305 ext4_file_write_iter+0x299/0x1be0 fs/ext4/file.c:-1 new_sync_write fs/read_write.c:593 [inline] vfs_write+0x5d5/0xb40 fs/read_write.c:686 ksys_pwrite64 fs/read_write.c:793 [inline] __do_sys_pwrite64 fs/read_write.c:801 [inline] __se_sys_pwrite64 fs/read_write.c:798 [inline] __x64_sys_pwrite64+0x196/0x220 fs/read_write.c:798 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fd87ec9efc9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd87cefe038 EFLAGS: 00000246 ORIG_RAX: 0000000000000012 RAX: ffffffffffffffda RBX: 00007fd87eef5fa0 RCX: 00007fd87ec9efc9 RDX: 0000000000000001 RSI: 0000200000000000 RDI: 0000000000000005 RBP: 00007fd87ed21f91 R08: 0000000000000000 R09: 0000000000000000 R10: 000000000004fed0 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fd87eef6038 R14: 00007fd87eef5fa0 R15: 00007ffcb09e7ad8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:ext4_do_writepages+0x45f0/0x4600 fs/ext4/inode.c:2808 Code: c6 e0 2f fe 8a e8 20 ea ba fe 90 0f 0b e8 68 0f 52 ff 4c 89 f7 48 c7 c6 c0 33 fe 8a e8 09 ea ba fe 90 0f 0b e8 51 0f 52 ff 90 <0f> 0b 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 90 90 90 90 90 90 RSP: 0018:ffffc900042af160 EFLAGS: 00010283 RAX: ffffffff826caeaf RBX: 0000004210000000 RCX: 0000000000080000 RDX: ffffc9001b365000 RSI: 00000000000007ad RDI: 00000000000007ae RBP: ffffc900042af590 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffed100bddb5f7 R12: 0000000000000001 R13: ffffc900042af5e0 R14: 0000004000000000 R15: dffffc0000000000 FS: 00007fd87cefe6c0(0000) GS:ffff888126dfc000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd152c1f420 CR3: 000000006b5dc000 CR4: 00000000003526f0