EXT4-fs: Ignoring removed oldalloc option EXT4-fs: Ignoring removed orlov option EXT4-fs (loop0): mounted filesystem 00000000-0000-0000-0000-000000000000 r/w without journal. Quota mode: none. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.0.1599/12651 is trying to acquire lock: ffff88805babb610 (&sb->s_type->i_mutex_key#9/1){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] ffff88805babb610 (&sb->s_type->i_mutex_key#9/1){+.+.}-{3:3}, at: ext4_xattr_inode_create fs/ext4/xattr.c:1518 [inline] ffff88805babb610 (&sb->s_type->i_mutex_key#9/1){+.+.}-{3:3}, at: ext4_xattr_inode_lookup_create+0x1a02/0x1ea0 fs/ext4/xattr.c:1600 but task is already holding lock: ffff88805babdc88 (&ei->i_data_sem/3){++++}-{3:3}, at: ext4_setattr+0x1867/0x1fb0 fs/ext4/inode.c:5653 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #1 (&ei->i_data_sem/3){++++}-{3:3}: down_write+0x97/0x200 kernel/locking/rwsem.c:1573 ext4_update_i_disksize fs/ext4/ext4.h:3396 [inline] ext4_xattr_inode_write fs/ext4/xattr.c:1456 [inline] ext4_xattr_inode_lookup_create+0x167c/0x1ea0 fs/ext4/xattr.c:1606 ext4_xattr_ibody_set+0x212/0x700 fs/ext4/xattr.c:2267 ext4_xattr_set_handle+0xd3e/0x1540 fs/ext4/xattr.c:2444 ext4_xattr_set+0x254/0x340 fs/ext4/xattr.c:2558 __vfs_setxattr+0x437/0x470 fs/xattr.c:201 __vfs_setxattr_noperm+0x12a/0x5e0 fs/xattr.c:235 vfs_setxattr+0x16b/0x2f0 fs/xattr.c:322 do_setxattr fs/xattr.c:630 [inline] path_setxattr+0x33a/0x590 fs/xattr.c:659 __do_sys_setxattr fs/xattr.c:677 [inline] __se_sys_setxattr fs/xattr.c:673 [inline] __x64_sys_setxattr+0xbb/0xd0 fs/xattr.c:673 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 -> #0 (&sb->s_type->i_mutex_key#9/1){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a07/0x7eb0 kernel/locking/lockdep.c:5171 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 down_write+0x97/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:804 [inline] ext4_xattr_inode_create fs/ext4/xattr.c:1518 [inline] ext4_xattr_inode_lookup_create+0x1a02/0x1ea0 fs/ext4/xattr.c:1600 ext4_xattr_block_set+0x21a/0x3000 fs/ext4/xattr.c:1920 ext4_xattr_move_to_block fs/ext4/xattr.c:2668 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2743 [inline] ext4_expand_extra_isize_ea+0x1111/0x1ea0 fs/ext4/xattr.c:2831 __ext4_expand_extra_isize+0x306/0x400 fs/ext4/inode.c:6025 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6078 [inline] __ext4_mark_inode_dirty+0x4a1/0x720 fs/ext4/inode.c:6156 ext4_setattr+0x18dd/0x1fb0 fs/ext4/inode.c:5656 notify_change+0xb05/0xde0 fs/attr.c:509 do_truncate+0x1b0/0x240 fs/open.c:66 handle_truncate fs/namei.c:3354 [inline] do_open fs/namei.c:3699 [inline] path_openat+0x2a7e/0x3270 fs/namei.c:3856 do_filp_open+0x1f2/0x430 fs/namei.c:3883 do_sys_openat2+0x134/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_creat fs/open.c:1515 [inline] __se_sys_creat fs/open.c:1509 [inline] __x64_sys_creat+0x90/0xb0 fs/open.c:1509 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 other info that might help us debug this: Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&ei->i_data_sem/3); lock(&sb->s_type->i_mutex_key#9/1); lock(&ei->i_data_sem/3); lock(&sb->s_type->i_mutex_key#9/1); *** DEADLOCK *** 5 locks held by syz.0.1599/12651: #0: ffff88807bfb0418 (sb_writers#4){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:412 #1: ffff88805babde10 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #1: ffff88805babde10 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: do_truncate+0x19c/0x240 fs/open.c:64 #2: ffff88805babdfa0 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:849 [inline] #2: ffff88805babdfa0 (mapping.invalidate_lock#2){++++}-{3:3}, at: ext4_setattr+0x1167/0x1fb0 fs/ext4/inode.c:5601 #3: ffff88805babdc88 (&ei->i_data_sem/3){++++}-{3:3}, at: ext4_setattr+0x1867/0x1fb0 fs/ext4/inode.c:5653 #4: ffff88805babdac8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_write_trylock_xattr fs/ext4/xattr.h:165 [inline] #4: ffff88805babdac8 (&ei->xattr_sem){++++}-{3:3}, at: ext4_try_to_expand_extra_isize fs/ext4/inode.c:6075 [inline] #4: ffff88805babdac8 (&ei->xattr_sem){++++}-{3:3}, at: __ext4_mark_inode_dirty+0x41c/0x720 fs/ext4/inode.c:6156 stack backtrace: CPU: 0 PID: 12651 Comm: syz.0.1599 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 Call Trace: dump_stack_lvl+0x18c/0x250 lib/dump_stack.c:106 check_noncircular+0x2fc/0x400 kernel/locking/lockdep.c:2215 check_prev_add kernel/locking/lockdep.c:3162 [inline] check_prevs_add kernel/locking/lockdep.c:3281 [inline] validate_chain kernel/locking/lockdep.c:3897 [inline] __lock_acquire+0x3a07/0x7eb0 kernel/locking/lockdep.c:5171 lock_acquire+0x19e/0x420 kernel/locking/lockdep.c:5790 down_write+0x97/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:804 [inline] ext4_xattr_inode_create fs/ext4/xattr.c:1518 [inline] ext4_xattr_inode_lookup_create+0x1a02/0x1ea0 fs/ext4/xattr.c:1600 ext4_xattr_block_set+0x21a/0x3000 fs/ext4/xattr.c:1920 ext4_xattr_move_to_block fs/ext4/xattr.c:2668 [inline] ext4_xattr_make_inode_space fs/ext4/xattr.c:2743 [inline] ext4_expand_extra_isize_ea+0x1111/0x1ea0 fs/ext4/xattr.c:2831 __ext4_expand_extra_isize+0x306/0x400 fs/ext4/inode.c:6025 ext4_try_to_expand_extra_isize fs/ext4/inode.c:6078 [inline] __ext4_mark_inode_dirty+0x4a1/0x720 fs/ext4/inode.c:6156 ext4_setattr+0x18dd/0x1fb0 fs/ext4/inode.c:5656 notify_change+0xb05/0xde0 fs/attr.c:509 do_truncate+0x1b0/0x240 fs/open.c:66 handle_truncate fs/namei.c:3354 [inline] do_open fs/namei.c:3699 [inline] path_openat+0x2a7e/0x3270 fs/namei.c:3856 do_filp_open+0x1f2/0x430 fs/namei.c:3883 do_sys_openat2+0x134/0x1d0 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_creat fs/open.c:1515 [inline] __se_sys_creat fs/open.c:1509 [inline] __x64_sys_creat+0x90/0xb0 fs/open.c:1509 do_syscall_x64 arch/x86/entry/common.c:46 [inline] do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:76 entry_SYSCALL_64_after_hwframe+0x68/0xd2 RIP: 0033:0x7f6b14d9f559 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f6b15c30028 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007f6b15025fa0 RCX: 00007f6b14d9f559 RDX: 0000000000000000 RSI: 0000000000000020 RDI: 0000200000001000 RBP: 00007f6b14e36b20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f6b15026038 R14: 00007f6b15025fa0 R15: 00007ffdfc87a528