EXT4-fs error (device loop0): ext4_xattr_ibody_get:681: inode #18: comm syz-executor.0: corrupted in-inode xattr: bad magic number in in-inode xattr EXT4-fs error (device loop0): ext4_xattr_ibody_get:683: inode #18: comm syz-executor.0: xattr_check_inode returns -117 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5401 at fs/ext4/xattr.c:684 ext4_xattr_ibody_get+0x2be/0x780 fs/ext4/xattr.c:683 Modules linked in: CPU: 0 PID: 5401 Comm: syz-executor.0 Not tainted 6.4.0-rc1-syzkaller-00013-g3b217639bd26-dirty #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/28/2023 RIP: 0010:ext4_xattr_ibody_get+0x2be/0x780 fs/ext4/xattr.c:684 Code: 3e ff 48 8b 7c 24 10 48 c7 c6 70 f0 84 8c ba ab 02 00 00 31 c9 45 31 c0 49 c7 c1 60 d1 fd 8a 41 56 e8 36 64 fc ff 48 83 c4 08 <0f> 0b 48 8b 44 24 50 42 80 3c 20 00 74 08 48 89 df e8 7c ec 95 ff RSP: 0018:ffffc900048a75e0 EFLAGS: 00010292 RAX: e450bee5393ebb00 RBX: ffffc900048a7660 RCX: ffff88807ab38000 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: ffffc900048a7700 R08: ffffffff82496f2d R09: ffffed100e9a043b R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff92000914ec8 R14: 00000000ffffff8b R15: ffff8880214b21a4 FS: 00007fb4e9ba4700(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055b29512f048 CR3: 0000000071600000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_xattr_get+0x131/0x840 fs/ext4/xattr.c:742 __vfs_getxattr+0x436/0x470 fs/xattr.c:424 cap_inode_need_killpriv+0x45/0x60 security/commoncap.c:301 security_inode_need_killpriv+0x61/0x90 security/security.c:2329 dentry_needs_remove_privs fs/inode.c:1967 [inline] __file_remove_privs+0x252/0x640 fs/inode.c:1998 file_modified_flags+0x106/0x480 fs/inode.c:2117 ext4_write_checks+0x24a/0x2c0 fs/ext4/file.c:268 ext4_buffered_write_iter+0xbd/0x3a0 fs/ext4/file.c:284 ext4_file_write_iter+0x1d6/0x1930 call_write_iter include/linux/fs.h:1868 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x790/0xb20 fs/read_write.c:584 ksys_write+0x1a0/0x2c0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0xc0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb4e8e8c0f9 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:00007fb4e9ba4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fb4e8fabf80 RCX: 00007fb4e8e8c0f9 RDX: 0000000000000010 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007fb4e8ee7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff076ead3f R14: 00007fb4e9ba4300 R15: 0000000000022000