Re: [PATCH v2] xattrat: accept empty O_PATH file descriptors

From: Christian Brauner

Date: Mon Nov 30 2026 - 09:05:16 EST


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.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-7.5.misc

[1/1] xattrat: accept empty O_PATH file descriptors
https://git.kernel.org/vfs/vfs/c/b2199d941c5d