Re: [PATCH] pidfd: cleanup the usage of __pidfd_prepare's flags
From: Christian Brauner
Date: Thu Jan 25 2024 - 11:35:06 EST
On Thu, 25 Jan 2024 17:17:34 +0100, Oleg Nesterov wrote:
> - make pidfd_create() static.
>
> - Don't pass O_RDWR | O_CLOEXEC to __pidfd_prepare() in copy_process(),
> __pidfd_prepare() adds these flags unconditionally.
>
> - Kill the flags check in __pidfd_prepare(). sys_pidfd_open() checks the
> flags itself, all other users of pidfd_prepare() pass flags = 0.
>
> [...]
Thanks!
---
Applied to the vfs.misc branch of the vfs/vfs.git tree.
Patches in the vfs.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.misc
[1/1] pidfd: cleanup the usage of __pidfd_prepare's flags
https://git.kernel.org/vfs/vfs/c/2502da713861