Re: [PATCH 0/4] vfs: if RESOLVE_NO_XDEV passed to openat2, don't *trigger* automounts
Christian Brauner <[email protected]> Tue, 19 Aug 2025 10:21:33 +0200
| Newsgroups | gmane.linux.file-systems,gmane.linux.kernel.autofs |
|---|---|
| Message-ID | <20250819-direkt-unsympathisch-27ffa5cefb4e@brauner> |
On Mon, Aug 18, 2025 at 03:31:27PM +1000, Aleksa Sarai wrote: > On 2025-08-17, Askar Safin <[email protected]> wrote: > > openat2 had a bug: if we pass RESOLVE_NO_XDEV, then openat2 > > doesn't traverse through automounts, but may still trigger them. > > See this link for full bug report with reproducer: > > https://lore.kernel.org/linux-fsdevel/[email protected]/ > > > > This patchset fixes the bug. > > > > RESOLVE_NO_XDEV logic hopefully becomes more clear: > > now we immediately fail when we cross mountpoints. > > > > I think this patchset should get to -fixes and stable trees. > > You need to add > > Cc: <[email protected]> # v5.2+ > > (along with a Fixes: ... tag) for each commit you would like to be > backported. > > > I split everything to very small commits to make > > everything as bisectable as possible. > > I would merge the first three patches -- adding and removing code like Agreed.