Re: [PATCH] fork: Don't let copy_exec_state() fail before rt_mutex_init_task()
From: Christian Brauner
Date: Wed Nov 18 2026 - 05:39:53 EST
On Mon, 02 Nov 2026 21:21:57 -0300, Christian Aurich Zanettini Martins wrote:
> Since commit 6b1c66c9cca9 ("exec_state: relocate dumpable information"),
> copy_exec_state() can fail before rt_mutex_init_task() has reset the PI
> state that dup_task_struct() copied from the parent. If the allocation
> fails while the parent owns an rt_mutex with waiters, such as a
> contended PI futex, free_task() finds the parent's waiters in the child
> and warns with CONFIG_DEBUG_RT_MUTEXES=y:
>
> [...]
Applied to the vfs.fixes branch of the vfs/vfs.git tree.
Patches in the vfs.fixes 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.fixes
[1/1] fork: Don't let copy_exec_state() fail before rt_mutex_init_task()
https://git.kernel.org/vfs/vfs/c/b7cf4cd1f76d