Re: [PATCH] selftests/pidfd: skip setns tests without namespace ioctls

From: Christian Brauner

Date: Fri Oct 30 2026 - 11:19:04 EST


On Thu, 29 Oct 2026 22:00:42 +0800, linfordWu wrote:
> Kernels without the pidfd namespace ioctls return ENOTTY. The
> current_nsset fixture expects only EOPNOTSUPP and reports a failure for
> every namespace before running the tests.
>
> Skip the fixture when ENOTTY is returned so unsupported kernels report
> skipped tests instead of failures.
>
> [...]

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] selftests/pidfd: skip setns tests without namespace ioctls
https://git.kernel.org/vfs/vfs/c/5ac2bfaaafaa