From nobody Fri May 3 00:26:45 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 4VVs792b11z5KL2f; Fri, 3 May 2024 00:26:45 +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 4VVs791x2gz4g1w; Fri, 3 May 2024 00:26:45 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714696005; 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=NqWF66lTSzQ431hEUus+rJyDs27DXQbHgxtX4amoTyY=; b=Actczap42HRBakZlHzs5beGp4gwVcsPfA6hQwtbudcY+lqpGs/vd97n85ME3DAvJRu2iCe ZtCJt3oiaNeOe/pM0nT1O4bfz/mtmegCr1yD6IEl9SkZIOFkJFOHa+OeKkUqzXi9s9yTSh YG91cOHP5c3eWv5YnVQIz8DKfjJa4rlImuA4DVI5r4d1J5pfJxwKkHj+jXEpqa81Jt5eOr pWpi64oMqJ5zLxjzMBRVw365N6M4AjnmvFPCIorAWu08RhHihk2ydLfz038BJ3NOhrkZD9 6M7wm3QuDnEOnZXsRuCGCk9KkZHjf5hWw8zzS8ayeoRLMe40vX/TbCTMpCaIQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714696005; a=rsa-sha256; cv=none; b=CqJn5UPkrRW+8n3ilzmf3jIfwEaxDG3C3KQeDR4G3MfkmUhEH5c0rJLUQ40sAbK3WhFhZv M7bDumf20cexVwgabSo4Zp6P1vKn8AzLcw4AqzEcoa2VDa2/eD07sCzld6fzD3E+67mYG3 kdaq6MhOvc9pklu3feoCq1w2qmd8FrgW9Fr7yGpf7o87Ify7cOXgFUjpYiwXWlYkY+az5B NuFY0eSGiOPeH4Zc9euV/SMdR99zZ9xJfTAHNvlVpMvpEZvc/Sg/GOlJVBEtOQTbZX1OiW y0usLp1OZA6I2i3Hzhr3fHNWqH0MJ0BvSP6gkFaLsdGpYTAWVUrD+J3vMeXCJg== 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=1714696005; 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=NqWF66lTSzQ431hEUus+rJyDs27DXQbHgxtX4amoTyY=; b=ScRrT8BLbXxh140ZlQ7WJSuSSUJy2XDMXNkbTE+UwYyCer6Np9X8psBhLID536yA0PBRbS bFYFJhoA3VLiCcf397gd3b6FjRGMA2OyIKzdV5mObusb3bhbbBXwjDCDhKJzYbAYELFXOh 7eM4rN+VKqcBnvsFgGEPyqgCnpVSUijA5qZkKX/GVt2ewGW/800vNpo+Ox6PSk9/ZN0XAN XwlOzytnbhlZkOsXMgeDtopdpwO0SzOYo9idziGxW3tKlEHjrdJuG4heE7bUFE28P6GZI6 UU1pynVr/AW+7eofHRPYI3utAQ+KHD1jd/c49QKtQoitzpYl0Ejstm5kKa39nQ== 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 4VVs791W5SzNdZ; Fri, 3 May 2024 00:26:45 +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 4430Qj8w097790; Fri, 3 May 2024 00:26:45 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4430Qjca097787; Fri, 3 May 2024 00:26:45 GMT (envelope-from git) Date: Fri, 3 May 2024 00:26:45 GMT Message-Id: <202405030026.4430Qjca097787@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: cf2750be9e32 - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: cf2750be9e3234f7fd8b1534118a562e4128d222 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=cf2750be9e3234f7fd8b1534118a562e4128d222 commit cf2750be9e3234f7fd8b1534118a562e4128d222 Author: Konstantin Belousov AuthorDate: 2024-04-29 21:04:25 +0000 Commit: Konstantin Belousov CommitDate: 2024-05-03 00:26:26 +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 f2d099f7a0c4..a0a13e77131b 100644 --- a/sys/kern/sys_generic.c +++ b/sys/kern/sys_generic.c @@ -2024,7 +2024,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); }