Re: [patch V3 8/8] posix-timers: Handle exit in do_exit() completely
From: Oleg Nesterov
Date: Fri Sep 11 2026 - 10:20:19 EST
On 09/11, Thomas Gleixner wrote:
>
> From: Thomas Gleixner <tglx@xxxxxxxxxx>
>
> Now that POSIX CPU timers cannot be enqueued on a task after PF_EXITING is
> set and process wide timers cannot be enqueued when PF_EXITING is set and
> the last thread in the group is exiting, it is possible to mop up POSIX
> timers in do_exit() completely.
>
> This requires to cancel an eventually pending POSIX CPU timer task work
> right there because do_exit() invokes exit_task_work() later, which would
> be acting on torn down data.
> Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxx>
> ---
> V3: Don't touch pending posix timer work on exec() - Oleg
Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>