lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250717013158.GF16401@redhat.com>
Date: Thu, 17 Jul 2025 03:31:59 +0200
From: Oleg Nesterov <oleg@...hat.com>
To: Zihuan Zhang <zhangzihuan@...inos.cn>
Cc: "rafael J . wysocki" <rafael@...nel.org>,
	Peter Zijlstra <peterz@...radead.org>,
	len brown <len.brown@...el.com>, pavel machek <pavel@...nel.org>,
	linux-pm@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v4] PM / Freezer: Skip zombie/dead processes to reduce
 freeze latency

Hi Zihuan,

On 07/17, Zihuan Zhang wrote:
>
> >>+			 */
> >>+			if (p == current || p->exit_state || !freeze_task(p))
> >>  				continue;
> >I leave this to you and Rafael, but this change doesn't look safe to me.
> >What if the exiting task does some IO after exit_notify() ?
>
> Tasks that have passed exit_notify() and entered EXIT_ZOMBIE are no longer
> schedulable,

How so? please look at do_exit(). The exiting task is still running
until it does its last __schedule() in do_task_dead().

> so they cannot do I/O anymore. Skipping them during freezing
> should be safe

Oleg.


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ