untrusted comment: verify with openbsd-79-base.pub RWTSdNN9A3yvWFrYMePnN3CfeNADpryxz+XWN6gkWzMShCHiJyz2vVaezdrC+defXAqMzZ1A5Mx1OnhZeyLgxsf5Oj+IfyBKSwg= OpenBSD 7.9 errata 057, November 19, 2026: A kqueue(2) EVFILT_PROC registration could race with the exit of the process. Apply by doing: signify -Vep /etc/signify/openbsd-79-base.pub -x 057_kqueue.patch.sig \ -m - | (cd /usr/src && patch -p0) And then rebuild and install a new kernel: KK=`sysctl -n kern.osversion | cut -d# -f1` cd /usr/src/sys/arch/`machine`/compile/$KK make obj make config make make install Index: sys/kern/kern_event.c =================================================================== RCS file: /cvs/src/sys/kern/kern_event.c,v diff -u -p -r1.205 kern_event.c --- sys/kern/kern_event.c 21 May 2025 14:10:16 -0000 1.205 +++ sys/kern/kern_event.c 13 Nov 2026 21:39:31 -0000 @@ -380,6 +380,8 @@ filt_procattach(struct knote *kn) if (pr->ps_flags & PS_EXITING) goto fail; + /* Keep exit1() from passing us while the list lock can sleep. */ + refcnt_take(&pr->ps_refcnt); kn->kn_ptr.p_process = pr; kn->kn_flags |= EV_CLEAR; /* automatically set */ @@ -402,6 +404,7 @@ filt_procattach(struct knote *kn) mtx_leave(&pr->ps_mtx); if (!nolock) rw_exit_write(&kqueue_ps_list_lock); + refcnt_rele_wake(&pr->ps_refcnt); KERNEL_UNLOCK();