[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tencent_7CCE5C7B1E6DB02E756D609404E99EEEE20A@qq.com>
Date: Tue, 13 May 2025 20:00:28 +0800
From: Edward Adam Davis <eadavis@...com>
To: syzbot+321477fad98ea6dd35b7@...kaller.appspotmail.com
Cc: linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [fs?] INFO: task hung in vfs_rename (2)
#syz test
diff --git a/fs/namei.c b/fs/namei.c
index 84a0e0b0111c..ff843007ca94 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -5013,7 +5013,7 @@ int vfs_rename(struct renamedata *rd)
struct name_snapshot old_name;
bool lock_old_subdir, lock_new_subdir;
- if (source == target)
+ if (source == target || old_dir == target)
return 0;
error = may_delete(rd->old_mnt_idmap, old_dir, old_dentry, is_dir);
Powered by blists - more mailing lists