Re: [PATCH v2 5/5] freezer,sched: Rewrite core freezer logic
From: Oleg Nesterov
Date: Thu Apr 21 2022 - 13:58:01 EST
On 04/21, Eric W. Biederman wrote:
>
> I would like to say that we can do without the wait_task_inactive,
> but it looks like it is necessary to ensure that all of the userspace
> registers are saved where the tracer can get at them.
Yes, for example, fpu regs.
But there are more problems. For example, if debugger changes TIF_BLOCKSTEP
we need to ensure the child is already inactive and it will do another
switch_to() after that.
Oleg.