Re: [PATCH 4/4] vfs: fs/namei.c: if RESOLVE_NO_XDEV passed to openat2, don't *trigger* automounts
Al Viro <[email protected]>
| Newsgroups | gmane.linux.file-systems,gmane.linux.kernel.autofs |
|---|---|
| Message-ID | <20250817175319.GY222315@ZenIV> |
On Sun, Aug 17, 2025 at 05:15:13PM +0000, Askar Safin wrote:
> @@ -1472,6 +1484,10 @@ static int __traverse_mounts(struct path *path, unsigned flags, bool *jumped,
> /* Allow the filesystem to manage the transit without i_rwsem
> * being held. */
> if (flags & DCACHE_MANAGE_TRANSIT) {
> + if (lookup_flags & LOOKUP_NO_XDEV) {
> + ret = -EXDEV;
> + break;
I don't thing it's right in RCU mode, if nothing else...