Re: [PATCH 2/2] autofs: dont trigger mount if it cant succeed

Al Viro <[email protected]> Tue, 11 Nov 2025 10:24:35 +0000
Newsgroups gmane.linux.kernel,gmane.linux.kernel.autofs,gmane.linux.file-systems
Message-ID <20251111102435.GW2441659@ZenIV>
On Tue, Nov 11, 2025 at 11:19:59AM +0100, Christian Brauner wrote:

> > +	sbi->owner = current->nsproxy->mnt_ns;
> 
> ns_ref_get()
> Can be called directly on the mount namespace.

... and would leak all mounts in the mount tree, unless I'm missing
something subtle.