Re: [PATCH v3 1/4] pid_namespace: avoid optimization of accesses to ->child_reaper

From: Oleg Nesterov

Date: Wed Feb 25 2026 - 07:30:51 EST


On 02/24, Pavel Tikhomirov wrote:
>
> Also let's add ASSERT_EXCLUSIVE_WRITER before write to identify to KCSAN
> that we don't expect any concurrent ->child_reaper modifications, and
> those must be detected.

Not sure this makes a lot of sense in this case, but I won't argue.

> Suggested-by: Oleg Nesterov <oleg@xxxxxxxxxx>
> Signed-off-by: Pavel Tikhomirov <ptikhomirov@xxxxxxxxxxxxx>

Acked-by: Oleg Nesterov <oleg@xxxxxxxxxx>