Date: Tue, 09 Jun 2026 19:18:34 +0000 From: Mark Johnston <markj@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: fa5581c379fe - releng/14.3 - thr_kill2: Respect p_cansignal() Message-ID: <6a28670a.3cd7f.6c4f2f81@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch releng/14.3 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=fa5581c379fec9855e88df49534a973752bbec3f commit fa5581c379fec9855e88df49534a973752bbec3f Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2026-05-25 15:12:57 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2026-06-07 15:53:09 +0000 thr_kill2: Respect p_cansignal() Approved by: so Security: FreeBSD-SA-26:25.thr Security: CVE-2026-45256 Reported by: Igor Gabriel Sousa e Souza Reported by: Yuxiang Yang, Yizhou Zhao, Ao Wang, Xuewei Feng, Qi Li, and Ke Xu from Tsinghua University using GLM-5.1 from Z.ai Reviewed by: emaste, kib Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57237 --- sys/kern/kern_thr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c index 0ab4cb5f7970..de6b141a918b 100644 --- a/sys/kern/kern_thr.c +++ b/sys/kern/kern_thr.c @@ -477,7 +477,7 @@ sys_thr_kill2(struct thread *td, struct thr_kill2_args *uap) p = ttd->td_proc; AUDIT_ARG_PROCESS(p); error = p_cansignal(td, p, uap->sig); - if (uap->sig == 0) + if (error != 0 || uap->sig == 0) ; else if (!_SIG_VALID(uap->sig)) error = EINVAL;home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a28670a.3cd7f.6c4f2f81>
