From nobody Fri May 03 00:26:06 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 4VVs6Q6gp9z5KL2X; Fri, 3 May 2024 00:26:06 +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 4VVs6Q6B8bz4f7d; Fri, 3 May 2024 00:26:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714695966; 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=8nYqqT16D6PAwux7yiwzLWsXaWnRMref+nNpv1e2pOc=; b=U6/OI+/1UhYyC6RiH2WXVruIXjugijejjWDRV6kFTPmeFoGQhmTXz45NnPR4fP8QNC+VoS SYFTixZes6X0jVp2gqvTiagDcVMRXi0n4B2wU0uzcipBDdtvRO6xHS/ZaiH9w2LtymNIBR AcSv6Qfv2TW097/dQ5t/LckT1O6NJ0oqNwQJxw4F/1Az23eXAYKXIDbIoNdRtpNMdelL7N 8PBIGPjtJgn0qld41yx0t07ByC69QUMGZCnXhKBjbbyRJjhyk/RQcF6d7xBqxfWZx478SR y6YPeajnQ2Edu5A2vSaCRlOO760ybVChjuaIrSFdwpVUNQnOM0i3dywe/oo5FQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714695966; a=rsa-sha256; cv=none; b=o3ukD96R69s7SKksTx0TXn9Yg4fW3JUn2AlusFE4or9OTG/pDA+1tpz5ytGEWa+A3vXcki n1agfcuvqCqYdC03BwBCuITthM/n2X7X5Wr0xMy5u70JVe1Q7A5+Yg51+qaWxzW4C7D0cu JjfCGGt4hKpO+u0ewkPLUc/8sYm9ap7UUEHTQYQupeKNVinwCQzYJueAgzwGBdODoWg2BU +jv6DD98RI9WjVcDkCujpcyRdW0eixmv9LWOlrgulLM66HF7gVTXVp7VXZQxn1XylIXW7B ZhlcD4edGPGU5WEA2Scinq+jfw+ykeMrcQSsv0BzyBgVbY+tABbp+M0WiKnvzA== 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=1714695966; 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=8nYqqT16D6PAwux7yiwzLWsXaWnRMref+nNpv1e2pOc=; b=N3SmyuT5jH09L9Dz9jDCaQqX0XQUhsqG00xp5TVyobvd1ltlyhJ6O2Z/PeN66z7tsrUtIN //NRdYe+UhvAE9hSCAzmvrsmCQ72tTEJCSydB1b83dtWE9wL91EHlxrntgOnC2d9CmsK/C HrSQL1gZQXroPl0smkLms0ZUSLozXemM7s1wnx61dVt4bJaUyVqJUuYIU+hDQIWM5+iI5P fpsRp0dQdmQz3stcdMMzGoWQsWiYhB7afrlm6KuVOP0ZHVP+7LWkjTmhjSCfKZgdnn+bZV l9vRvjNtXH7KGpR/aj4ZBojmXFsF24ZBaW8sCvNMr5azsY5NA/2EEAmoV9rSYA== 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 4VVs6Q5n76zP1j; Fri, 3 May 2024 00:26:06 +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 4430Q6A5097438; Fri, 3 May 2024 00:26:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4430Q6tu097435; Fri, 3 May 2024 00:26:06 GMT (envelope-from git) Date: Fri, 3 May 2024 00:26:06 GMT Message-Id: <202405030026.4430Q6tu097435@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 33cac296a266 - stable/14 - kcmp_pget(): do not accept TIDs 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 33cac296a2668ffe142950238baac2aea6fad709 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=33cac296a2668ffe142950238baac2aea6fad709 commit 33cac296a2668ffe142950238baac2aea6fad709 Author: Konstantin Belousov AuthorDate: 2024-04-29 21:04:25 +0000 Commit: Konstantin Belousov CommitDate: 2024-05-03 00:25:33 +0000 kcmp_pget(): do not accept TIDs (cherry picked from commit 5b3e5c6ce3e552dae3e84d6bc781bc9f53c22d71) --- sys/kern/sys_generic.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/sys_generic.c b/sys/kern/sys_generic.c index dd845e653929..77e4c13d4390 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -2100,7 +2100,8 @@ kcmp_pget(struct thread *td, pid_t pid, struct proc **pp) *pp = td->td_proc; return (0); } - error = pget(pid, PGET_CANDEBUG | PGET_NOTWEXIT | PGET_HOLD, pp); + error = pget(pid, PGET_NOTID | PGET_CANDEBUG | PGET_NOTWEXIT | + PGET_HOLD, pp); MPASS(*pp != td->td_proc); return (error); }