Re: [MEH PATCH] fs: sort out a stale comment about races between fd alloc and dup2

From: Christian Brauner
Date: Fri Dec 06 2024 - 07:14:01 EST


On Thu, 05 Dec 2024 16:47:43 +0100, Mateusz Guzik wrote:
> It claims the issue is only relevant for shared descriptor tables which
> is of no concern for POSIX (but then is POSIX of concern to anyone
> today?), which I presume predates standarized threading.
>
> The comment also mentions the following systems:
> - OpenBSD installing a larval file -- this remains accurate
> - FreeBSD returning EBADF -- not accurate, the system uses the same
> idea as OpenBSD
> - NetBSD "deadlocks in amusing ways" -- their solution looks
> Solaris-inspired (not a compliment) and I would not be particularly
> surprised if it indeed deadlocked, in amusing ways or otherwise
>
> [...]

Applied to the vfs-6.14.misc branch of the vfs/vfs.git tree.
Patches in the vfs-6.14.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-6.14.misc

[1/1] fs: sort out a stale comment about races between fd alloc and dup2
https://git.kernel.org/vfs/vfs/c/9c9e176d7546