loop0: detected capacity change from 0 to 512 EXT4-fs error (device loop0): ext4_map_blocks:783: inode #11: block 530: comm syz.0.0: lblock 4 mapped to illegal pblock 530 (length 1) EXT4-fs warning (device loop0): ext4_expand_extra_isize_ea:2858: Unable to expand inode 15. Delete some EAs or run e2fsck. ------------[ cut here ]------------ EA inode 11 i_nlink=2 WARNING: fs/ext4/xattr.c:1059 at ext4_xattr_inode_update_ref+0x4c9/0x5a0 fs/ext4/xattr.c:1057, CPU#0: syz.0.0/5327 Modules linked in: CPU: 0 UID: 0 PID: 5327 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:ext4_xattr_inode_update_ref+0x511/0x5a0 fs/ext4/xattr.c:1057 Code: 74 08 4c 89 ef e8 bf 22 98 ff 4d 8b 6d 00 48 b8 00 00 00 00 00 fc ff df 41 0f b6 04 06 84 c0 75 77 41 8b 17 4c 89 e7 4c 89 ee <67> 48 0f b9 3a 4c 8b 6c 24 28 e9 59 fe ff ff e8 8b bf 02 09 44 89 RSP: 0018:ffffc9000a79f240 EFLAGS: 00010246 RAX: 0000000000000000 RBX: 00000000ffffffff RCX: dffffc0000000000 RDX: 0000000000000002 RSI: 000000000000000b RDI: ffffffff8ff5d550 RBP: ffffc9000a79f330 R08: ffff88804fcd216f R09: 1ffff11009f9a42d R10: dffffc0000000000 R11: ffffed1009f9a42e R12: ffffffff8ff5d550 R13: 000000000000000b R14: 1ffff11009f9a3f8 R15: ffff88804fcd1fc0 FS: 00007fc3a777c6c0(0000) GS:ffff88808ccea000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1cd29909c0 CR3: 000000001fc50000 CR4: 0000000000352ef0 Call Trace: ext4_xattr_inode_dec_ref fs/ext4/xattr.c:1082 [inline] ext4_xattr_inode_dec_ref_all+0x8cb/0xe40 fs/ext4/xattr.c:1228 ext4_xattr_delete_inode+0xb45/0xd10 fs/ext4/xattr.c:2952 ext4_evict_inode+0xa63/0xe60 fs/ext4/inode.c:270 evict+0x61e/0xb10 fs/inode.c:837 ext4_orphan_cleanup+0xc38/0x1470 fs/ext4/orphan.c:472 __ext4_fill_super fs/ext4/super.c:5658 [inline] ext4_fill_super+0x5932/0x61f0 fs/ext4/super.c:5777 get_tree_bdev_flags+0x431/0x4f0 fs/super.c:1691 vfs_get_tree+0x92/0x2a0 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount+0x329/0xa50 fs/namespace.c:3712 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount+0x31d/0x420 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xe2/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc3a699c14a Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc3a777be58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fc3a777bee0 RCX: 00007fc3a699c14a RDX: 0000200000000180 RSI: 00002000000001c0 RDI: 00007fc3a777bea0 RBP: 0000200000000180 R08: 00007fc3a777bee0 R09: 0000000000800718 R10: 0000000000800718 R11: 0000000000000246 R12: 00002000000001c0 R13: 00007fc3a777bea0 R14: 0000000000000482 R15: 0000200000000200 ---------------- Code disassembly (best guess): 0: 74 08 je 0xa 2: 4c 89 ef mov %r13,%rdi 5: e8 bf 22 98 ff call 0xff9822c9 a: 4d 8b 6d 00 mov 0x0(%r13),%r13 e: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 15: fc ff df 18: 41 0f b6 04 06 movzbl (%r14,%rax,1),%eax 1d: 84 c0 test %al,%al 1f: 75 77 jne 0x98 21: 41 8b 17 mov (%r15),%edx 24: 4c 89 e7 mov %r12,%rdi 27: 4c 89 ee mov %r13,%rsi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 4c 8b 6c 24 28 mov 0x28(%rsp),%r13 34: e9 59 fe ff ff jmp 0xfffffe92 39: e8 8b bf 02 09 call 0x902bfc9 3e: 44 rex.R 3f: 89 .byte 0x89