From nobody Mon Dec 16 15:41:29 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 4YBkgs6jp8z5hZdR; Mon, 16 Dec 2024 15:41:29 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YBkgs600qz4JJW; Mon, 16 Dec 2024 15:41:29 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734363689; 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=b1o7GqksQGdbPUBVcb6XLGGTBB5ltFQNfpOxMYDBlR8=; b=R2ml7YNXw+LOBrrbbM8TVyIp560yUMk9uwH6rWd/ZN+dBj5rca6b00JqbeYAFNWJNtX7ow rdDv/em8NcKIKttNHdBt3CG58pBjNi5P8l95ApmcC7EVCkLRSIBQ3NWpF55ocSXFbcp9Zi er/OGGVRTYtCAgggKCyN5M11r/StNo5+px7fdQK4LDBU6LFSueV+eSNbtYM3vbAVuPUsFo dM/9iTdpi+pY5wBCDNshGQvkNYgFCs71pAK+a7fzTmNvxKc6UWBC4/6+I/Dgr12xQRyhwG AW6aTo6qu5ITCJfHYt9mYNb62JEBPRkJ63SlPKN4cEUXnNwhzt2CMsvXpuylQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1734363689; 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=b1o7GqksQGdbPUBVcb6XLGGTBB5ltFQNfpOxMYDBlR8=; b=wVLTxo3t+zmO0jJutc5o+kGLf5go8TSARPDDZNJvN0JH8dpY0NhVGSM71WjpOkNJDdkKJH Ks7GA34w6eE5lMxjTRqICVQzO+GczIQDxxKgFcm+0//XVBdj1cyzxtJIYUPNzdsTvdxRMe yMvjkggOZjfmmCRTH5gv4DiEeIRsJCGwdODUwDd8HCsVo1GZa4At4w6LuBnjt+LwIH0Izb RoTHCKTx8FjDrV7BFemItEec3xR3ShZGugjvidia29cNACzGfqag+IH6cfWFeYVty7zH0k lWxqqfJ8g+asg4bof7TcuJ28QzMXw8fq3X52Kmp4DYGS1jDaA4rEtTxYzuO+Yw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1734363689; a=rsa-sha256; cv=none; b=gFQWxCKJhc4iA21XDol4UcaJuNJvB1PZL7bAEU6vagZKLRS5iDM146yV6K1t2bTdYd1cWx kLmm8XHBZpI8SJSkT0ierlXCbq5aEdNd4Ael4MihTeeIep9u12Cb3GmgeiPBJXfAaBRXSn 3LubaCy6ASZOuFuHUThGw73f2EVCuY3iuf40HR8UQZo6q8JWdw4eUAeE44EUEtCyrFR70+ YQsDD4JagdZv/MRoZXQXy/JDxv1fkdzlA/bfx16hbLGXNKlvaKxBHnB6smz2UKXQ9MizA9 g379bXpY38c6sEfLLeBgeMgKFoCIC1sFEYmzwPUFAxK0E/DAl+8CMZ1zf+zkhA== 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 4YBkgs5bJ0z103B; Mon, 16 Dec 2024 15:41:29 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4BGFfT2x062531; Mon, 16 Dec 2024 15:41:29 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4BGFfTKB062528; Mon, 16 Dec 2024 15:41:29 GMT (envelope-from git) Date: Mon, 16 Dec 2024 15:41:29 GMT Message-Id: <202412161541.4BGFfTKB062528@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Olivier Certner Subject: git: 675708aa402a - main - proc_set_cred(): Fix compilation of GENERIC-NODEBUG 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: olce X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 675708aa402a06d9ced98c8a12d9ef29625d3c66 Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=675708aa402a06d9ced98c8a12d9ef29625d3c66 commit 675708aa402a06d9ced98c8a12d9ef29625d3c66 Author: Olivier Certner AuthorDate: 2024-12-16 15:38:26 +0000 Commit: Olivier Certner CommitDate: 2024-12-16 15:39:54 +0000 proc_set_cred(): Fix compilation of GENERIC-NODEBUG Approved by: mark (mentor) Fixes: d2be7ed63aff ("cred: proc_set_cred(), proc_unset_cred(): Update user's process count") --- sys/kern/kern_prot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c index 8edbb7f18f1a..2517b2bc2d4d 100644 --- a/sys/kern/kern_prot.c +++ b/sys/kern/kern_prot.c @@ -2694,7 +2694,7 @@ _proc_set_cred(struct proc *p, struct ucred *newcred, bool enforce_proc_lim) void proc_set_cred(struct proc *p, struct ucred *newcred) { - bool success = _proc_set_cred(p, newcred, false); + bool success __diagused = _proc_set_cred(p, newcred, false); MPASS(success); }