diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2023-11-28 12:51:54 +0000 |
|---|---|---|
| committer | Gordon Tetlow <gordon@FreeBSD.org> | 2024-02-14 05:37:56 +0000 |
| commit | bb06104dce0b2d471772fefe2ce5b7e651287479 (patch) | |
| tree | d8d6363b707aab82da0b596fc874201f1f2929a5 | |
| parent | c2a9cfc55046127176c74f86c24509ceb9da3551 (diff) | |
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)
| -rw-r--r-- | sys/kern/kern_sig.c | 4 |
1 files changed, 1 insertions, 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); } /* |
