On Mon, Aug 18, 2025 at 03:31:27PM +1000, Aleksa Sarai wrote: > On 2025-08-17, Askar Safin <safinaskar@xxxxxxxxxxxx> 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/20250817075252.4137628-1-safinaskar@xxxxxxxxxxxx/ > > > > 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: <stable@xxxxxxxxxxxxxxx> # 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.