Re: [PATCH v2] audit: Avoid excessive dput/dget in audit_context setup and reset paths

Al Viro <[email protected]>
Newsgroups org.kernel.vger.audit,org.kernel.vger.linux-kernel
Message-ID <20260203215002.GI3183987@ZenIV>
On Tue, Feb 03, 2026 at 03:32:04PM -0500, Waiman Long wrote:

> That is actually a concern that I have at the back of my mind. I can modify
> the patch to cache only the dentry and do get/put the mount every time which
> is much cheaper as it is a percpu counter.  In that way, a chdir(2) followed
> by a umount(2) shouldn't cause a -EBUSY. Right?

Quite - it will just retain a reference to dentry, with filesystem shutdown
being very unhappy about somebody retaining references to objects on the
filesystem about to be taken out...
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.