Re: [PATCH 4/7] proc: Use d_invalidate in proc_prune_siblings_dcache

From
Al Viro <viro@zeniv.linux.org.uk>
Date
2020-02-20 22:54:33
Also in
linux-fsdevel, linux-security-module, lkml
Reply to
Eric W. Biederman, 2020-02-20
On Thu, Feb 20, 2020 at 02:49:53PM -0600, Eric W. Biederman wrote:
The function d_prune_aliases has the problem that it will only prune
aliases thare are completely unused.  It will not remove aliases for
the dcache or even think of removing mounts from the dcache.  For that
behavior d_invalidate is needed.

To use d_invalidate replace d_prune_aliases with d_find_alias
followed by d_invalidate and dput.  This is safe and complete
because no inode in proc has any hardlinks or aliases.
s/no inode.*/it's a fucking directory inode./
Thread (5 messages) 5 messages, 3 authors, last reply 2020-02-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help