Re: [PATCH v4] reboot: fix cad_pid use-after-free race

From: Oleg Nesterov

Date: Fri Aug 14 2026 - 14:04:08 EST


On 08/14, Cen Zhang (Microsoft) wrote:
>
> v4:
> - Rebase on sysctl-next after Oleg's cad_pid sysctl placement change.
> - Fold the two-patch v3 series into a single lifetime fix.
> - Move kill_cad_pid() implementation to kernel/signal.c.
> - Export kill_cad_pid() and stop exporting the raw cad_pid pointer.
> - Update proc_do_cad_pid() in kernel/reboot.c.
> - Add explicit includes for the RCU API and kill_cad_pid().
> - Preserve the original unprivileged impact context while noting that
> the namespace permission path has been fixed separately.

I don't see other changes in this version, so

Reviewed-by: Oleg Nesterov <oleg@xxxxxxxxxx>