]> www.infradead.org Git - users/dwmw2/linux.git/commit
gfs2_drevalidate(): use stable parent inode and name passed by caller
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 3 Jan 2025 06:23:50 +0000 (01:23 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 28 Jan 2025 00:25:24 +0000 (19:25 -0500)
commiteab2a11e5be68e42832957f6ad813db4bee4d18c
tree34c6ea996f18937c0ddddf58c059a70b862b1afb
parent19e1dbdc6b9e9b069bef94c6856364781338eb76
gfs2_drevalidate(): 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.  Theoretically a UAF, but it's
hard to exfiltrate the information...

Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/gfs2/dentry.c