[Devel] [PATCH RH7 0/4] vz7: fix child-reaper reparenting

Konstantin Khorenko khorenko at virtuozzo.com
Mon Jun 20 21:14:06 MSK 2022


JFYI: all those patches already exist in vz9 kernel.

--
Best regards,

Konstantin Khorenko,
Virtuozzo Linux Kernel Team

On 15.06.2022 17:54, Pavel Tikhomirov wrote:
> Forth patch is needed as kernel can reparent process to a dead thread
> which is wrong.
> 
> Third patch is needed as kernel could reparent process from father from
> one pidns to process from different pidns, which creates configurations
> not supported by CRIU. Found it when reproducing problem from CRIU
> mainstream issue in VZ7 ct.
> 
> https://github.com/checkpoint-restore/criu/issues/1914
> 
> First and Second are just to make it apply cleaner.
> 
> Oleg Nesterov (4):
>    exit: reparent: fix the cross-namespace PR_SET_CHILD_SUBREAPER
>      reparenting
>    exit: reparent: document the ->has_child_subreaper checks
>    exit: fix the setns() && PR_SET_CHILD_SUBREAPER interaction
>    exit: reparent: fix the dead-parent PR_SET_CHILD_SUBREAPER reparenting
> 
>   kernel/exit.c | 23 +++++++++++++----------
>   1 file changed, 13 insertions(+), 10 deletions(-)
> 


More information about the Devel mailing list