Protect the ps_pgrp pointer by either the KERNEL_LOCK or the ps_mtx.
authorclaudio <claudio@openbsd.org>
Tue, 22 Oct 2024 11:54:04 +0000 (11:54 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 22 Oct 2024 11:54:04 +0000 (11:54 +0000)
commit07d260329accf8a3f24fb96d1c9b7b981fd53f1b
tree860fa9816828387a0692c1f2a5c976fc9b74c7cc
parent1a81a8e6e44bd2257ef7a22fd415dc9869080982
Protect the ps_pgrp pointer by either the KERNEL_LOCK or the ps_mtx.

This should be enough to be on the safe side when unlocking ptsignal
where a pr->ps_pgrp->pg_jobc == 0 check happens.
OK mpi@ kettenis@
sys/kern/kern_proc.c
sys/kern/kern_sig.c
sys/sys/proc.h