REISERFS (device loop6): Created .reiserfs_priv - reserved for xattr storage. REISERFS warning (device loop6): vs-13060 reiserfs_update_sd_size: stat data of object [2 5 0x0 SD] (nlink == 2) not found (pos 4) ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.6.1496/10858 is trying to acquire lock: ffff88805ed22410 (&type->i_mutex_dir_key#13/3){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:839 [inline] ffff88805ed22410 (&type->i_mutex_dir_key#13/3){+.+.}-{3:3}, at: open_xa_root fs/reiserfs/xattr.c:128 [inline] ffff88805ed22410 (&type->i_mutex_dir_key#13/3){+.+.}-{3:3}, at: open_xa_dir+0x146/0x6f0 fs/reiserfs/xattr.c:153 but task is already holding lock: ffff88805ecc0990 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] ffff88805ecc0990 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x2e0 mm/filemap.c:4154 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}: down_write+0x97/0x200 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:804 [inline] vfs_rename+0x6f4/0xe60 fs/namei.c:-1 do_renameat2+0x8b0/0xc80 fs/namei.c:5080 __do_sys_renameat2 fs/namei.c:5113 [inline] __se_sys_renameat2 fs/namei.c:5110 [inline] __x64_sys_renameat2+0xd2/0xe0 fs/namei.c:5110 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 -> #1 (&type->i_mutex_dir_key#13/2){+.+.}-{3:3}: down_write_nested+0x9e/0x200 kernel/locking/rwsem.c:1689 inode_lock_nested include/linux/fs.h:839 [inline] xattr_rmdir fs/reiserfs/xattr.c:107 [inline] delete_one_xattr+0xfa/0x2d0 fs/reiserfs/xattr.c:339 reiserfs_for_each_xattr+0x8a6/0xa30 fs/reiserfs/xattr.c:312 reiserfs_delete_xattrs+0x20/0x90 fs/reiserfs/xattr.c:365 reiserfs_evict_inode+0x24a/0x4c0 fs/reiserfs/inode.c:53 evict+0x4b7/0x8a0 fs/inode.c:705 d_delete_notify include/linux/fsnotify.h:269 [inline] vfs_rmdir+0x378/0x4b0 fs/namei.c:4264 do_rmdir+0x29f/0x590 fs/namei.c:4310 __do_sys_unlinkat fs/namei.c:4488 [inline] __se_sys_unlinkat fs/namei.c:4482 [inline] __x64_sys_unlinkat+0xc4/0xe0 fs/namei.c:4482 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 (&type->i_mutex_dir_key#13/3){+.+.}-{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_nested+0x9e/0x200 kernel/locking/rwsem.c:1689 inode_lock_nested include/linux/fs.h:839 [inline] open_xa_root fs/reiserfs/xattr.c:128 [inline] open_xa_dir+0x146/0x6f0 fs/reiserfs/xattr.c:153 xattr_lookup+0x22/0x2a0 fs/reiserfs/xattr.c:396 reiserfs_xattr_get+0x114/0x5a0 fs/reiserfs/xattr.c:679 __vfs_getxattr+0x406/0x440 fs/xattr.c:424 cap_inode_need_killpriv+0x45/0x60 security/commoncap.c:301 security_inode_need_killpriv+0x62/0x90 security/security.c:2405 dentry_needs_remove_privs fs/inode.c:2088 [inline] __file_remove_privs+0x23f/0x600 fs/inode.c:2119 __generic_file_write_iter+0x7c/0x230 mm/filemap.c:4108 generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4157 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x747/0xc50 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_writev+0x27f/0x480 fs/read_write.c:976 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: Chain exists of: &type->i_mutex_dir_key#13/3 --> &type->i_mutex_dir_key#13/2 --> &sb->s_type->i_mutex_key#30 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&sb->s_type->i_mutex_key#30); lock(&type->i_mutex_dir_key#13/2); lock(&sb->s_type->i_mutex_key#30); lock(&type->i_mutex_dir_key#13/3); *** DEADLOCK *** 3 locks held by syz.6.1496/10858: #0: ffff88801fb839c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x2a3/0x330 fs/file.c:1040 #1: ffff8880301ac418 (sb_writers#25){.+.+}-{0:0}, at: vfs_writev fs/read_write.c:932 [inline] #1: ffff8880301ac418 (sb_writers#25){.+.+}-{0:0}, at: do_writev+0x261/0x480 fs/read_write.c:976 #2: ffff88805ecc0990 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: inode_lock include/linux/fs.h:804 [inline] #2: ffff88805ecc0990 (&sb->s_type->i_mutex_key#30){+.+.}-{3:3}, at: generic_file_write_iter+0x83/0x2e0 mm/filemap.c:4154 stack backtrace: CPU: 1 PID: 10858 Comm: syz.6.1496 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_nested+0x9e/0x200 kernel/locking/rwsem.c:1689 inode_lock_nested include/linux/fs.h:839 [inline] open_xa_root fs/reiserfs/xattr.c:128 [inline] open_xa_dir+0x146/0x6f0 fs/reiserfs/xattr.c:153 xattr_lookup+0x22/0x2a0 fs/reiserfs/xattr.c:396 reiserfs_xattr_get+0x114/0x5a0 fs/reiserfs/xattr.c:679 __vfs_getxattr+0x406/0x440 fs/xattr.c:424 cap_inode_need_killpriv+0x45/0x60 security/commoncap.c:301 security_inode_need_killpriv+0x62/0x90 security/security.c:2405 dentry_needs_remove_privs fs/inode.c:2088 [inline] __file_remove_privs+0x23f/0x600 fs/inode.c:2119 __generic_file_write_iter+0x7c/0x230 mm/filemap.c:4108 generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4157 do_iter_readv_writev fs/read_write.c:-1 [inline] do_iter_write+0x747/0xc50 fs/read_write.c:860 vfs_writev fs/read_write.c:933 [inline] do_writev+0x27f/0x480 fs/read_write.c:976 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:0x7fb7bfb9e159 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:00007fb7c09d1028 EFLAGS: 00000246 ORIG_RAX: 0000000000000014 RAX: ffffffffffffffda RBX: 00007fb7bfe25fa0 RCX: 00007fb7bfb9e159 RDX: 0000000000000001 RSI: 0000200000000240 RDI: 0000000000000004 RBP: 00007fb7bfc3506b R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fb7bfe26038 R14: 00007fb7bfe25fa0 R15: 00007fffa0ae1d68