Adjust lock requirements for ps_pptr, ps_ppid and ps_oppid.
authorclaudio <claudio@openbsd.org>
Tue, 8 Oct 2024 09:05:40 +0000 (09:05 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 8 Oct 2024 09:05:40 +0000 (09:05 +0000)
commit561287022138d9cf7f16116f71cec83195ad7046
tree0294cc9ba8a93987189a3888c7a1fb5b77c71ae7
parent2b436e6ef95997e52d3d237ce79a332330212e81
Adjust lock requirements for ps_pptr, ps_ppid and ps_oppid.

ps_pptr, ps_ppid and ps_oppid require the KERNEL_LOCK and the process mutex
to be modified. At the same time either KERNEL_LOCK or process mutex needs
to be taken to read the values.

This is needed to further unlock ptsignal().
OK kettenis@, mvs@
sys/kern/kern_exit.c
sys/kern/kern_fork.c
sys/kern/kern_prot.c
sys/kern/sys_process.c
sys/sys/proc.h