loop0: detected capacity change from 0 to 2048 EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 without journal. Quota mode: none. EXT4-fs error (device loop0): ext4_xattr_ibody_get:680: inode #18: comm syz-executor.0: corrupted in-inode xattr: bad magic number in in-inode xattr ------------[ cut here ]------------ WARNING: CPU: 1 PID: 5419 at fs/ext4/xattr.c:681 ext4_xattr_ibody_get+0x654/0x740 Modules linked in: CPU: 1 PID: 5419 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+0x654/0x740 fs/ext4/xattr.c:681 Code: 25 28 00 00 00 48 3b 84 24 c0 00 00 00 0f 85 f1 00 00 00 44 89 f0 48 8d 65 d8 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 8c 2e 3e ff <0f> 0b e9 7c ff ff ff e8 80 2e 3e ff 41 be de ff ff ff e9 67 ff ff RSP: 0018:ffffc9000561f5e0 EFLAGS: 00010293 RAX: ffffffff824d1044 RBX: ffffc9000561f660 RCX: ffff888023ea3b80 RDX: 0000000000000000 RSI: 00000000ffffff8b RDI: 0000000000000000 RBP: ffffc9000561f700 R08: ffffffff824d0c79 R09: ffffed100eab7bb4 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 1ffff92000ac3ec8 R14: 00000000ffffff8b R15: ffff88807a4cc1a4 FS: 00007fc48aa6b700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000020003000 CR3: 000000007a477000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ext4_xattr_get+0x131/0x840 fs/ext4/xattr.c:739 __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:0x7fc489c8c0f9 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:00007fc48aa6b168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007fc489dabf80 RCX: 00007fc489c8c0f9 RDX: 0000000000000010 RSI: 0000000020000100 RDI: 0000000000000004 RBP: 00007fc489ce7b39 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffeecb3103f R14: 00007fc48aa6b300 R15: 0000000000022000