Re: [PATCH v2] cgroup: Avoid iteration of dying tasks with zero refcount

From: Michal Koutný

Date: Mon Sep 07 2026 - 13:09:07 EST


On Mon, Sep 07, 2026 at 07:03:44PM +0200, Michal Koutný <mkoutny@xxxxxxxx> wrote:
> cgroup_task_release() is not synced via css_set_lock hence the race
> possibility. (I'm not 100% convinced about this LLM-assisted
> interleaving, multiple css_task_iter_next() calls may be involved with
> css_set_lock released.)

This paragraph should be editted out too because of

> Changes from v1 (https://lore.kernel.org/r/20260902161653.1051794-1-mkoutny@xxxxxxxx)
> - add css_set_lock release to sequence diagram

(Sorry for multi-messaging.)

Michal

Attachment: signature.asc
Description: PGP signature