Re: [PATCH v2] xattrat: accept empty O_PATH file descriptors
From: Christian Brauner
Date: Mon Nov 30 2026 - 10:48:21 EST
On Mon, Nov 30, 2026 at 03:05:04PM +0100, Christian Brauner wrote:
> On Wed, 22 Jul 2026 17:10:22 +0200, Andreas Gruenbacher wrote:
> > Christian,
> >
> > here's an updated patch for making the *xattrat() system calls accept
> > O_PATH file descriptors.
> >
> > Compared to the previous version (see the discussion at [*]), this
> > version adds a fd_maybe_raw cleanup class that uses either fdget() or
> > fdget_raw() depending on which kinds of file descriptors are acceptable.
> > That's still a but ugly, but all the alternatives I could come up with
> > are much worse.
> >
> > [...]
>
> Applied to the vfs-7.5.misc branch of the vfs/vfs.git tree.
> Patches in the vfs-7.5.misc branch should appear in linux-next soon.
Actually I found a AT_FDCWD bug and to fix that we need to split some
stuff up so maybe we can even elide the new class.