git: bb06104dce0b - releng/14.0 - EVFILT_SIGNAL: do not use target process pointer on detach
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 14 Feb 2024 06:05:42 UTC
The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=bb06104dce0b2d471772fefe2ce5b7e651287479 commit bb06104dce0b2d471772fefe2ce5b7e651287479 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-11-28 12:51:54 +0000 Commit: Gordon Tetlow <gordon@FreeBSD.org> CommitDate: 2024-02-14 05:37:56 +0000 EVFILT_SIGNAL: do not use target process pointer on detach PR: 275286 Approved by: so Security: FreeBSD-EN-24:03.kqueue (cherry picked from commit ed410b78edc53e17b5a3e93ace2adbeb3a734ae9) (cherry picked from commit 24346a2f777598272caffbd7e4fb6d85cafe64ed) --- sys/kern/kern_sig.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 964ad2398bd9..b7afc8b327ed 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -4291,9 +4291,7 @@ filt_sigattach(struct knote *kn) static void filt_sigdetach(struct knote *kn) { - struct proc *p = kn->kn_ptr.p_proc; - - knlist_remove(p->p_klist, kn, 0); + knlist_remove(kn->kn_knlist, kn, 0); } /*