Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 May 2024 00:26:45 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: cf2750be9e32 - stable/13 - kcmp_pget(): do not accept TIDs
Message-ID:  <202405030026.4430Qjca097787@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=cf2750be9e3234f7fd8b1534118a562e4128d222

commit cf2750be9e3234f7fd8b1534118a562e4128d222
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-04-29 21:04:25 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405030026.4430Qjca097787>