loop2: detected capacity change from 0 to 512 EXT4-fs: Ignoring removed nobh option ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.2.334/7081 is trying to acquire lock: ffff88807d6e6b98 (&sbi->s_writepages_rwsem){++++}-{0:0}, at: do_writepages+0x278/0x600 mm/page-writeback.c:2598 but task is already holding lock: ffff88807adca610 (sb_internal){++++}-{0:0}, at: evict+0x3c2/0xad0 fs/inode.c:837 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (sb_internal){++++}-{0:0}: percpu_down_read_internal include/linux/percpu-rwsem.h:53 [inline] percpu_down_read_freezable include/linux/percpu-rwsem.h:83 [inline] __sb_start_write include/linux/fs/super.h:19 [inline] sb_start_intwrite include/linux/fs/super.h:177 [inline] ext4_evict_inode+0xcef/0x1760 fs/ext4/inode.c:214 evict+0x3c2/0xad0 fs/inode.c:837 iput_final fs/inode.c:1954 [inline] iput.part.0+0x624/0x1150 fs/inode.c:2006 iput+0x35/0x40 fs/inode.c:1969 ext4_ext_migrate+0xd4d/0x1ff0 fs/ext4/migrate.c:588 __ext4_ioctl+0xd7e/0x4230 fs/ext4/ioctl.c:1688 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f -> #0 (&sbi->s_writepages_rwsem){++++}-{0:0}: check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x14b8/0x2630 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x17c/0x330 kernel/locking/lockdep.c:5825 percpu_down_read_internal include/linux/percpu-rwsem.h:53 [inline] percpu_down_read include/linux/percpu-rwsem.h:77 [inline] ext4_writepages_down_read fs/ext4/ext4.h:1820 [inline] ext4_writepages+0x21d/0x790 fs/ext4/inode.c:3025 do_writepages+0x278/0x600 mm/page-writeback.c:2598 __writeback_single_inode+0x164/0x13c0 fs/fs-writeback.c:1737 writeback_single_inode+0x4d3/0xf30 fs/fs-writeback.c:1858 write_inode_now+0x174/0x1f0 fs/fs-writeback.c:2937 iput_final fs/inode.c:1944 [inline] iput.part.0+0x818/0x1150 fs/inode.c:2006 iput+0x35/0x40 fs/inode.c:1969 ext4_xattr_block_set+0x6f7/0x3660 fs/ext4/xattr.c:2204 ext4_xattr_move_to_block fs/ext4/xattr.c:2669 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2744 [inline] ext4_expand_extra_isize_ea+0x17c6/0x1d70 fs/ext4/xattr.c:2832 __ext4_expand_extra_isize+0x346/0x480 fs/ext4/inode.c:6349 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6392 [inline] __ext4_mark_inode_dirty+0x63a/0x840 fs/ext4/inode.c:6470 ext4_evict_inode+0x813/0x1760 fs/ext4/inode.c:253 evict+0x3c2/0xad0 fs/inode.c:837 iput_final fs/inode.c:1954 [inline] iput.part.0+0x624/0x1150 fs/inode.c:2006 iput+0x35/0x40 fs/inode.c:1969 ext4_orphan_cleanup+0x71e/0x11e0 fs/ext4/orphan.c:472 __ext4_fill_super fs/ext4/super.c:5658 [inline] ext4_fill_super+0x90b8/0xb3f0 fs/ext4/super.c:5777 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1691 vfs_get_tree+0x92/0x320 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7d0/0x23c0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- rlock(sb_internal); lock(&sbi->s_writepages_rwsem); lock(sb_internal); rlock(&sbi->s_writepages_rwsem); *** DEADLOCK *** 3 locks held by syz.2.334/7081: #0: ffff88807adca0e0 (&type->s_umount_key#27/1){+.+.}-{4:4}, at: alloc_super+0x244/0xd20 fs/super.c:344 #1: ffff88807adca610 (sb_internal){++++}-{0:0}, at: evict+0x3c2/0xad0 fs/inode.c:837 #2: ffff888055f030e8 (&ei->xattr_sem){++++}-{4:4}, at: ext4_write_trylock_xattr fs/ext4/xattr.h:164 [inline] #2: ffff888055f030e8 (&ei->xattr_sem){++++}-{4:4}, at: ext4_try_to_expand_extra_isize fs/ext4/inode.c:6389 [inline] #2: ffff888055f030e8 (&ei->xattr_sem){++++}-{4:4}, at: __ext4_mark_inode_dirty+0x5ad/0x840 fs/ext4/inode.c:6470 stack backtrace: CPU: 0 UID: 0 PID: 7081 Comm: syz.2.334 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/24/2026 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120 print_circular_bug.cold+0x178/0x1c7 kernel/locking/lockdep.c:2043 check_noncircular+0x146/0x160 kernel/locking/lockdep.c:2175 check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3284 [inline] validate_chain kernel/locking/lockdep.c:3908 [inline] __lock_acquire+0x14b8/0x2630 kernel/locking/lockdep.c:5237 lock_acquire kernel/locking/lockdep.c:5868 [inline] lock_acquire+0x17c/0x330 kernel/locking/lockdep.c:5825 percpu_down_read_internal include/linux/percpu-rwsem.h:53 [inline] percpu_down_read include/linux/percpu-rwsem.h:77 [inline] ext4_writepages_down_read fs/ext4/ext4.h:1820 [inline] ext4_writepages+0x21d/0x790 fs/ext4/inode.c:3025 do_writepages+0x278/0x600 mm/page-writeback.c:2598 __writeback_single_inode+0x164/0x13c0 fs/fs-writeback.c:1737 writeback_single_inode+0x4d3/0xf30 fs/fs-writeback.c:1858 write_inode_now+0x174/0x1f0 fs/fs-writeback.c:2937 iput_final fs/inode.c:1944 [inline] iput.part.0+0x818/0x1150 fs/inode.c:2006 iput+0x35/0x40 fs/inode.c:1969 ext4_xattr_block_set+0x6f7/0x3660 fs/ext4/xattr.c:2204 ext4_xattr_move_to_block fs/ext4/xattr.c:2669 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2744 [inline] ext4_expand_extra_isize_ea+0x17c6/0x1d70 fs/ext4/xattr.c:2832 __ext4_expand_extra_isize+0x346/0x480 fs/ext4/inode.c:6349 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6392 [inline] __ext4_mark_inode_dirty+0x63a/0x840 fs/ext4/inode.c:6470 ext4_evict_inode+0x813/0x1760 fs/ext4/inode.c:253 evict+0x3c2/0xad0 fs/inode.c:837 iput_final fs/inode.c:1954 [inline] iput.part.0+0x624/0x1150 fs/inode.c:2006 iput+0x35/0x40 fs/inode.c:1969 ext4_orphan_cleanup+0x71e/0x11e0 fs/ext4/orphan.c:472 __ext4_fill_super fs/ext4/super.c:5658 [inline] ext4_fill_super+0x90b8/0xb3f0 fs/ext4/super.c:5777 get_tree_bdev_flags+0x38c/0x620 fs/super.c:1691 vfs_get_tree+0x92/0x320 fs/super.c:1751 fc_mount fs/namespace.c:1199 [inline] do_new_mount_fc fs/namespace.c:3636 [inline] do_new_mount fs/namespace.c:3712 [inline] path_mount+0x7d0/0x23c0 fs/namespace.c:4022 do_mount fs/namespace.c:4035 [inline] __do_sys_mount fs/namespace.c:4224 [inline] __se_sys_mount fs/namespace.c:4201 [inline] __x64_sys_mount+0x293/0x310 fs/namespace.c:4201 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f1749f9c14a 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:00007f174ae1be58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f174ae1bee0 RCX: 00007f1749f9c14a RDX: 0000200000000180 RSI: 0000200000000000 RDI: 00007f174ae1bea0 RBP: 0000200000000180 R08: 00007f174ae1bee0 R09: 0000000000800700 R10: 0000000000800700 R11: 0000000000000246 R12: 0000200000000000 R13: 00007f174ae1bea0 R14: 000000000000046f R15: 000000000000002c EXT4-fs error (device loop2): ext4_xattr_inode_iget:441: inode #11: comm syz.2.334: iget: bad extra_isize 90 (inode size 256) EXT4-fs (loop2): Remounting filesystem read-only EXT4-fs warning (device loop2): ext4_expand_extra_isize_ea:2857: Unable to expand inode 15. Delete some EAs or run e2fsck. EXT4-fs warning (device loop2): ext4_evict_inode:255: couldn't mark inode dirty (err -30) EXT4-fs (loop2): 1 orphan inode deleted EXT4-fs (loop2): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none.