REISERFS (device loop3): Created .reiserfs_priv - reserved for xattr storage. ====================================================== WARNING: possible circular locking dependency detected syzkaller #0 Not tainted ------------------------------------------------------ syz.3.208/5645 is trying to acquire lock: ffff0000e19a16c0 (&type->i_mutex_dir_key#13){++++}-{3:3}, at: inode_lock include/linux/fs.h:764 [inline] ffff0000e19a16c0 (&type->i_mutex_dir_key#13){++++}-{3:3}, at: vfs_rename+0x6a8/0xe3c fs/namei.c:4894 but task is already holding lock: ffff0000e19a02e0 (&type->i_mutex_dir_key#13/2){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:799 [inline] ffff0000e19a02e0 (&type->i_mutex_dir_key#13/2){+.+.}-{3:3}, at: vfs_rename+0x648/0xe3c fs/namei.c:4892 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #2 (&type->i_mutex_dir_key#13/2){+.+.}-{3:3}: down_write_nested+0x64/0x94 kernel/locking/rwsem.c:1689 inode_lock_nested include/linux/fs.h:799 [inline] xattr_rmdir fs/reiserfs/xattr.c:106 [inline] delete_one_xattr+0xe8/0x2c8 fs/reiserfs/xattr.c:338 reiserfs_for_each_xattr+0x5d0/0x6f8 fs/reiserfs/xattr.c:311 reiserfs_delete_xattrs+0x2c/0xa4 fs/reiserfs/xattr.c:364 reiserfs_evict_inode+0x1f0/0x408 fs/reiserfs/inode.c:53 evict+0x3d8/0x81c fs/inode.c:703 iput_final fs/inode.c:1832 [inline] iput+0x728/0x7e8 fs/inode.c:1858 dentry_unlink_inode+0x360/0x438 fs/dcache.c:405 __dentry_kill+0x318/0x590 fs/dcache.c:611 dentry_kill+0xcc/0x24c fs/dcache.c:-1 dput+0x228/0x444 fs/dcache.c:918 __fput+0x480/0x7b0 fs/file_table.c:328 ____fput+0x20/0x30 fs/file_table.c:348 task_work_run+0x1f4/0x280 kernel/task_work.c:203 exit_task_work include/linux/task_work.h:39 [inline] do_exit+0x54c/0x19ac kernel/exit.c:887 do_group_exit+0x198/0x238 kernel/exit.c:1030 get_signal+0x11f4/0x133c kernel/signal.c:2884 do_signal arch/arm64/kernel/signal.c:1110 [inline] do_notify_resume+0x364/0x2c84 arch/arm64/kernel/signal.c:1163 prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline] exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline] el0_svc+0x9c/0x12c arch/arm64/kernel/entry-common.c:638 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 -> #1 (&type->i_mutex_dir_key#13/3){+.+.}-{3:3}: down_write_nested+0x64/0x94 kernel/locking/rwsem.c:1689 inode_lock_nested include/linux/fs.h:799 [inline] open_xa_root fs/reiserfs/xattr.c:127 [inline] open_xa_dir+0x124/0x5ec fs/reiserfs/xattr.c:152 xattr_lookup+0x3c/0x268 fs/reiserfs/xattr.c:395 reiserfs_xattr_get+0xe8/0x944 fs/reiserfs/xattr.c:677 reiserfs_get_acl+0x94/0x664 fs/reiserfs/xattr_acl.c:214 get_acl+0x160/0x32c fs/posix_acl.c:153 reiserfs_cache_default_acl+0x74/0x458 fs/reiserfs/xattr_acl.c:374 reiserfs_create+0x220/0x5f4 fs/reiserfs/namei.c:652 lookup_open fs/namei.c:3533 [inline] open_last_lookups fs/namei.c:3601 [inline] path_openat+0xda8/0x27a0 fs/namei.c:3835 do_filp_open+0x198/0x38c fs/namei.c:3865 do_sys_openat2+0x134/0x3fc fs/open.c:1320 do_sys_open fs/open.c:1336 [inline] __do_sys_openat fs/open.c:1352 [inline] __se_sys_openat fs/open.c:1347 [inline] __arm64_sys_openat+0x11c/0x150 fs/open.c:1347 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 -> #0 (&type->i_mutex_dir_key#13){++++}-{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+0x3504/0x7280 kernel/locking/lockdep.c:5171 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 down_write+0x5c/0x88 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:764 [inline] vfs_rename+0x6a8/0xe3c fs/namei.c:4894 do_renameat2+0x760/0xaa4 fs/namei.c:5082 __do_sys_renameat2 fs/namei.c:5115 [inline] __se_sys_renameat2 fs/namei.c:5112 [inline] __arm64_sys_renameat2+0xe8/0x104 fs/namei.c:5112 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589 other info that might help us debug this: Chain exists of: &type->i_mutex_dir_key#13 --> &type->i_mutex_dir_key#13/3 --> &type->i_mutex_dir_key#13/2 Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(&type->i_mutex_dir_key#13/2); lock(&type->i_mutex_dir_key#13/3); lock(&type->i_mutex_dir_key#13/2); lock(&type->i_mutex_dir_key#13); *** DEADLOCK *** 5 locks held by syz.3.208/5645: #0: ffff0000ee550460 (sb_writers#22){.+.+}-{0:0}, at: mnt_want_write+0x44/0x9c fs/namespace.c:402 #1: ffff0000ee550748 (&type->s_vfs_rename_key#2){+.+.}-{3:3}, at: lock_rename fs/namei.c:3089 [inline] #1: ffff0000ee550748 (&type->s_vfs_rename_key#2){+.+.}-{3:3}, at: do_renameat2+0x314/0xaa4 fs/namei.c:5021 #2: ffff0000e19a37e0 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:799 [inline] #2: ffff0000e19a37e0 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: lock_two_directories fs/namei.c:-1 [inline] #2: ffff0000e19a37e0 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: lock_rename fs/namei.c:3090 [inline] #2: ffff0000e19a37e0 (&type->i_mutex_dir_key#13/1){+.+.}-{3:3}, at: do_renameat2+0x390/0xaa4 fs/namei.c:5021 #3: ffff0000e19a0980 (&type->i_mutex_dir_key#13/5){+.+.}-{3:3}, at: lock_rename include/linux/fs.h:-1 [inline] #3: ffff0000e19a0980 (&type->i_mutex_dir_key#13/5){+.+.}-{3:3}, at: do_renameat2+0x3c4/0xaa4 fs/namei.c:5021 #4: ffff0000e19a02e0 (&type->i_mutex_dir_key#13/2){+.+.}-{3:3}, at: inode_lock_nested include/linux/fs.h:799 [inline] #4: ffff0000e19a02e0 (&type->i_mutex_dir_key#13/2){+.+.}-{3:3}, at: vfs_rename+0x648/0xe3c fs/namei.c:4892 stack backtrace: CPU: 1 PID: 5645 Comm: syz.3.208 Not tainted syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/06/2026 Call trace: dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165 __dump_stack+0x30/0x40 lib/dump_stack.c:88 dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106 dump_stack+0x1c/0x5c lib/dump_stack.c:113 print_circular_bug+0x148/0x1b0 kernel/locking/lockdep.c:2088 check_noncircular+0x290/0x370 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+0x3504/0x7280 kernel/locking/lockdep.c:5171 lock_acquire+0x210/0x63c kernel/locking/lockdep.c:5790 down_write+0x5c/0x88 kernel/locking/rwsem.c:1573 inode_lock include/linux/fs.h:764 [inline] vfs_rename+0x6a8/0xe3c fs/namei.c:4894 do_renameat2+0x760/0xaa4 fs/namei.c:5082 __do_sys_renameat2 fs/namei.c:5115 [inline] __se_sys_renameat2 fs/namei.c:5112 [inline] __arm64_sys_renameat2+0xe8/0x104 fs/namei.c:5112 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline] invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52 el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140 do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204 el0_svc+0x58/0x12c arch/arm64/kernel/entry-common.c:637 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:589