From nobody Wed Feb 14 06:05:42 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TZSNl06gTz5B56N; Wed, 14 Feb 2024 06:05:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TZSNk6LXsz4RZ9; Wed, 14 Feb 2024 06:05:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B7L/Z/2DOvbKcloZWWN/OdOnj43QsHgXqCBbdPt1f0E=; b=O/SKXAqyZ43HHTCIyYCVAx6vsOIhM4hHyZBh7MeQ+mR8jb38BTyuViXKfrKpZhvMcWuTVx RRAx+vFVJE9g2QD2C5y6Nl1qWl44mz1/gQnCn5hUvZZBM1A9lZ8M3rMztlzSlEL6+IenEq 14Dnyply3iw1FLPBrTjVMteJ5Yfhw0FQoPCie6wAPkFILHeIP81n85RyoU178HGSTWgTNp pEMIvWKTdSrWNHhmQqvixaLMv0gJnNhYAiwgZn+kQEAoIPXofCs15DxqfRhlC7SqoK3QXT XoHgdht4fWL4J6EH4Y0jxyOPuRxkjX7Zu5cvnwafSEVYVsFv1J9zcVvK0ZE7fA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890742; a=rsa-sha256; cv=none; b=haVVrKrtYwOB1cTGLSQB8ZYHXP8ABm6zIOvlDh0XElYqN29l3HUxE/gzRBiiQYGtVKI388 C2hohuIDR2kWsQ3w/dHC4GSZfVfjXH4AA+aYftr6z4DSN+viF4963U71kLO2DlzTcehXOY a762IuEAR7MRcZCbm6/4a3swU6aP1qjIRirL8pypjh6l9YkedZPBrT7H2R/WIvzAunAATi BcHzhj2KJm7kY5TN9oFg/FW/WwZAzEpbs10jInaAi+7umBhrj4AJLENJKJr6bf9Kk4nyuc /BCqPDcBAGEPhKt/qwgB0Ez383pkp7s2EyyH0maS3XBrGLWLCOaIcxvImM2tUw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890742; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B7L/Z/2DOvbKcloZWWN/OdOnj43QsHgXqCBbdPt1f0E=; b=Mvg4Y7S/nWxqGPDbM01hYUU1mMic54AZR3O8V/F92Hn24T81TeC0LaLa/tkxu/3e6M97tf TD8s7Zui8VIzLddvK6EIEsdaF0o0etzdXebXfoGc3OrOOwiVRo5wIxl0e/IYYiuysH0hTC fnh/eI73xfGq+C6AVIna2FJZcoIj7oUODnJZbwIyHBFpXxnMLK90m+MslZcoSOGpM4sEXd v9lKIuFwM8RlQVx8tfmw4Fg5qkmkNoXGoROJOqLghGAyPscZhyN94nrc+gqjzN2io/g3/R hK1mDgmHsZ6B17S2zm3NgdFj2lrPn79eKD85gdkuWtqoJh/MBCeY85IG03mGlA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TZSNk5RL4zmKh; Wed, 14 Feb 2024 06:05:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41E65gcO084586; Wed, 14 Feb 2024 06:05:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65gf4084582; Wed, 14 Feb 2024 06:05:42 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:42 GMT Message-Id: <202402140605.41E65gf4084582@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Gordon Tetlow Subject: git: bb06104dce0b - releng/14.0 - EVFILT_SIGNAL: do not use target process pointer on detach List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: gordon X-Git-Repository: src X-Git-Refname: refs/heads/releng/14.0 X-Git-Reftype: branch X-Git-Commit: bb06104dce0b2d471772fefe2ce5b7e651287479 Auto-Submitted: auto-generated The branch releng/14.0 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=bb06104dce0b2d471772fefe2ce5b7e651287479 commit bb06104dce0b2d471772fefe2ce5b7e651287479 Author: Konstantin Belousov AuthorDate: 2023-11-28 12:51:54 +0000 Commit: Gordon Tetlow 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); } /*