EXT4-fs error (device loop4): ext4_find_inline_data_nolock:163: inode #12: comm syz.4.2416: inline data xattr refers to an external xattr inode EXT4-fs error (device loop4): ext4_orphan_get:1396: comm syz.4.2416: couldn't read orphan inode 12 (err -117) EXT4-fs (loop4): mounted filesystem without journal. Opts: inode_readahead_blks=0x0000000000200000,user_xattr,grpjquota=,resuid=0x0000000000000000,prjquota,usrjquota=,usrjquota=,min_batch_time=0x000000000000409e,nodiscard,,errors=continue ------------[ cut here ]------------ kernel BUG at fs/ext4/inode.c:5246! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 7849 Comm: syz.4.2416 Tainted: G W 5.10.218-syzkaller-00638-g3feee789f446 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5245 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x3e51/0x3e60 fs/ext4/inode.c:5841 Code: 6f ca ff e9 0f f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 21 f1 ff ff 48 89 df e8 49 70 ca ff e9 14 f1 ff ff e8 0f dc 8c ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 RSP: 0018:ffffc900010f7280 EFLAGS: 00010287 RAX: ffffffff81ddce71 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000313b000 RSI: 0000000000000527 RDI: 0000000000000528 RBP: ffffc900010f7390 R08: ffffffff81ddaa8d R09: ffffed10251e1e67 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000ffffffff R14: 0000000000000000 R15: ffff888119025000 FS: 00007fca748c86c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011294c000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __ext4_mark_inode_dirty+0x4fc/0x7b0 fs/ext4/inode.c:6043 add_dirent_to_buf+0x64c/0x780 fs/ext4/namei.c:2176 ext4_add_entry+0x921/0x1280 fs/ext4/namei.c:2404 ext4_add_nondir+0x97/0x270 fs/ext4/namei.c:2737 ext4_create+0x348/0x530 fs/ext4/namei.c:2782 lookup_open fs/namei.c:3247 [inline] open_last_lookups fs/namei.c:3317 [inline] path_openat+0x1377/0x3000 fs/namei.c:3506 do_filp_open+0x21c/0x460 fs/namei.c:3536 do_sys_openat2+0x13f/0x6f0 fs/open.c:1217 do_sys_open fs/open.c:1233 [inline] __do_sys_openat fs/open.c:1249 [inline] __se_sys_openat fs/open.c:1244 [inline] __x64_sys_openat+0x243/0x290 fs/open.c:1244 do_syscall_64+0x34/0x70 entry_SYSCALL_64_after_hwframe+0x61/0xcb RIP: 0033:0x7fca75646bd9 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:00007fca748c8048 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fca757d4f60 RCX: 00007fca75646bd9 RDX: 00000000000026e1 RSI: 0000000020000240 RDI: ffffffffffffff9c RBP: 00007fca756b5e60 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 000000000000000b R14: 00007fca757d4f60 R15: 00007fffd40e7f98 Modules linked in: ---[ end trace 6841f112ce68451b ]--- RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5245 [inline] RIP: 0010:ext4_mark_iloc_dirty+0x3e51/0x3e60 fs/ext4/inode.c:5841 Code: 6f ca ff e9 0f f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 21 f1 ff ff 48 89 df e8 49 70 ca ff e9 14 f1 ff ff e8 0f dc 8c ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 55 48 89 e5 41 57 41 RSP: 0018:ffffc900010f7280 EFLAGS: 00010287 RAX: ffffffff81ddce71 RBX: 0000000000000000 RCX: 0000000000040000 RDX: ffffc9000313b000 RSI: 0000000000000527 RDI: 0000000000000528 RBP: ffffc900010f7390 R08: ffffffff81ddaa8d R09: ffffed10251e1e67 R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000 R13: 00000000ffffffff R14: 0000000000000000 R15: ffff888119025000 FS: 00007fca748c86c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000000000 CR3: 000000011294c000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400