From nobody Wed Feb 14 06:05:58 2024 X-Original-To: dev-commits-src-all@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 4TZSP32QWLz5B56P; Wed, 14 Feb 2024 06:05:59 +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 4TZSP31Cc4z4RrC; Wed, 14 Feb 2024 06:05:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1707890759; 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=bf95asAncuiwaojBEM/DwGFCVAHbzBHKPsnMeCyDw8o=; b=UpjHMSfE7XmfekIEoqEoe4lwYxeEpW4RBgMTLX34gcbfomrkav1yLaSk/LNx9wHschzurN iS59qcRbp6Y1nVOWStNzGQmMN+QBLDGHG8WmINQte0CQRnSd1bTE9+PLpxS9xZAVkAKagJ atdrAOQZ9/ZP0yKg5P0tFIAMXWXTlH7vW9SCrljDWm2qgwD1/By1mXoBaCYVjZynZLWRjI A9KoRhAn0TYukArDKX02Nku5kZXV50OFrVoyAigwvZAq3VZAaT2XnASztBVI4AtLpMRQrk OlxWXF1abpoMjWb072WgRbUZht7zIDzqHI8/v+UA0D15P8mFxJ8qkAsNTQYzhg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1707890759; a=rsa-sha256; cv=none; b=ZcQeP22kmcyZUQEU9LV0u3+O8Oui2Afi0IlPTC9QxfLJzb+XLNCzotlwgqY5Rg3gV9Ruer +uSxd2lqVlqVJLW0vf2vRDSVob+KJmGvJ3Nt3KNGlpZMX2FfoYbL1p8WE5X+NEMl9nWbco fh3a/+srDMlKsohH9ZZjXkzd5GY9ZHU+88Sq2TdE1qSAOu77pLhVYQKKwy0fD0fMHZyZSO j9J1+GSF6tjauSDwrtJpv3j8wtYIG4Nr1IDDnLFzlNJTBwXIJ5OJdZ83PwLg/drSBXSmtP f2ul0wPt8ZrbLhd7qeeg9hbMUTW1AWdgY5X6vCAqVaC6huWkvM1B2eYrB6Cvmg== 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=1707890759; 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=bf95asAncuiwaojBEM/DwGFCVAHbzBHKPsnMeCyDw8o=; b=e33v0zrA3bnqrzn97w73ylNsDOEdGSv0WNBPlSxfXmfOnOwX7FMgaxxZn5bPH2ZqtZNbf1 a7GpAOTcoBXP4b/+NV8zJnQSEdx05rkNnsXEoIPSMAHn+QMjlU3xmsVoMB9cESE3Zr5/VG z/hroC8gsqXdgcqMQQiJsqyqgnM3x9wLrgrCz3NQrgygZLcNuieI+4sg48xZZCzNcly8BK JxhUX/BUIbr7uhsOVydrGMaE5MnrqMPMdA4hXNY08oTjUyRWLB6VMdyPWDGB/umHh3yq8G JKl/5IQleGxEqTBxW//q4H7GjaxuVO5Oy45X/1uHvg/KumH9UexUiO9E/HicgQ== 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 4TZSP30Jk3zmtr; Wed, 14 Feb 2024 06:05:59 +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 41E65wrc085173; Wed, 14 Feb 2024 06:05:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41E65wSH085170; Wed, 14 Feb 2024 06:05:58 GMT (envelope-from git) Date: Wed, 14 Feb 2024 06:05:58 GMT Message-Id: <202402140605.41E65wSH085170@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: 154dedade465 - releng/13.2 - EVFILT_SIGNAL: do not use target process pointer on detach List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/13.2 X-Git-Reftype: branch X-Git-Commit: 154dedade4654516dfd3737ae56d5b3e3721029a Auto-Submitted: auto-generated The branch releng/13.2 has been updated by gordon: URL: https://cgit.FreeBSD.org/src/commit/?id=154dedade4654516dfd3737ae56d5b3e3721029a commit 154dedade4654516dfd3737ae56d5b3e3721029a Author: Konstantin Belousov AuthorDate: 2023-11-28 12:51:54 +0000 Commit: Gordon Tetlow CommitDate: 2024-02-14 05:37:16 +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 55e91944998c128d74b94b9b48a04ef41ff5e9d0) --- 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 63d73cf7a909..067e5a0aaa05 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -4209,9 +4209,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); } /*