]> www.infradead.org Git - users/willy/pagecache.git/commit
fuse_dentry_revalidate(): use stable parent inode and name passed by caller
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 Jan 2025 06:20:35 +0000 (01:20 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Jan 2025 00:25:24 +0000 (19:25 -0500)
commit19e1dbdc6b9e9b069bef94c6856364781338eb76
tree6591ea74b1a9aa03a27681ed1d7e9d27726a1d05
parent464361133e6af521d1307ed89a54c4c181162c91
fuse_dentry_revalidate(): use stable parent inode and name passed by caller

No need to mess with dget_parent() for the former; for the latter we really should
not rely upon ->d_name.name remaining stable - it's a real-life UAF.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Acked-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/fuse/dir.c