From nobody Wed Sep 17 12:19:10 2025 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 4cRd9W1FpNz67Hn9; Wed, 17 Sep 2025 12:19:11 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cRd9V4Zmjz3W1P; Wed, 17 Sep 2025 12:19:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758111550; 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=JoWA9LS9i4hQ6/DdMoLGyFjIP5WHLUEveviNtOrLJVc=; b=KqjxYCpwCz0XX77uTtWRhykr4oWbDpAm4ev9K9cCzIN/avQujT3CEt7+shjwn+lJSPToe/ StD7Ymoe4x5WtrKTLmPZGH1dW9uUcWpz38X2i856LL9JhquX411Q5V4wIxUKFLRizqqk5n Yq0toEc5+QqU/sM6c0dYrAYcxq00V2eLjBf1IUVLdGpIyLY8uaYWorIrYQzClLjlg9Rpil Vh5XJGiFe4SkuKzlImRehgYUel9ujtT9DIwFdFQC1funmhxpe0TaOcq1btHFMrFfMPJ3Gi RNYofQSeM5o/J2cpX0kDN/CLCO2YHdAh+ceYNALOOsqu/7FdEvGszTj/UCHLCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1758111550; 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=JoWA9LS9i4hQ6/DdMoLGyFjIP5WHLUEveviNtOrLJVc=; b=ROo46mpPweGG5+tRkL0x+Wd1x68zyizIekAYw+eC1QleirfMv1VaeifloX50iJOTTzeHcf lDgQdjfRYvvgA/dwz+1l1P6Ef0Cfyaz9eAMF1IVtLT11F7C2r2M/psz+569VS8/vbki/mk UkXtdJB/urgFBVAh25H3uFQ31kFbu2StY31oFITKas1znVH+/iBcssE9HcV7g/eAT7pnBr s5CNPeyDVdJWn03he63Yk0gCUDRZedHZuO1HNhaaeZs/OPHEjXRy6z+d/251lodmqh+ZCF fhvPjHNpOlcsaqBIO9bx31DtbthOJYeySfKLxLPDbx87tiyx0L1G+DzZ1zv/NQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1758111550; a=rsa-sha256; cv=none; b=UXay9GinYj6wvlgtLHMLKvQYf3w3YZug773ZEb5CWbnazWOmaTnqeoOknwShlC0NYDZ6tL l8bzF0YxiPkFHGRDbSZkF5/v7xN9aIsOFpwjyFs6/VulKcpP5BvrOZ/QX6DG2hFnUGEpf6 STigrv81dz06tGoO2YMKrdw8CwLFCa6kRcQkn5S8qoQv/hDE3W7fsTvfT7J/7dgfc289lI HyP8YfRrDhJrx2U9hW//OMg2KdgbkSiuMmmog/uxpxJI0NV8ZmwzM9exiZNjuFVgVuLT8i dCRdO1NoDWWAAfQq494b4xpTW5e3004iN7l5gnCHuTmMbNCVPj8wc8Nuoa9MmA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cRd9V42cJz9Lq; Wed, 17 Sep 2025 12:19:10 +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 58HCJAwq085925; Wed, 17 Sep 2025 12:19:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58HCJAdv085922; Wed, 17 Sep 2025 12:19:10 GMT (envelope-from git) Date: Wed, 17 Sep 2025 12:19:10 GMT Message-Id: <202509171219.58HCJAdv085922@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: b1326edddb30 - main - linux: setgroups16(): Pre-extend the groups array 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: b1326edddb302a28fc9418ab60df6210513cc07c Auto-Submitted: auto-generated The branch main has been updated by olce: URL: https://cgit.FreeBSD.org/src/commit/?id=b1326edddb302a28fc9418ab60df6210513cc07c commit b1326edddb302a28fc9418ab60df6210513cc07c Author: Olivier Certner AuthorDate: 2025-08-28 16:27:30 +0000 Commit: Olivier Certner CommitDate: 2025-09-17 12:16:05 +0000 linux: setgroups16(): Pre-extend the groups array For the size we know we will need in the end. No functional change (intended). MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D52279 --- sys/compat/linux/linux_uid16.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/compat/linux/linux_uid16.c b/sys/compat/linux/linux_uid16.c index dd681f971746..8ac093e004d0 100644 --- a/sys/compat/linux/linux_uid16.c +++ b/sys/compat/linux/linux_uid16.c @@ -102,6 +102,7 @@ linux_setgroups16(struct thread *td, struct linux_setgroups16_args *args) } newcred = crget(); + crextend(newcred, ngrp); p = td->td_proc; PROC_LOCK(p); oldcred = crcopysafe(p, newcred);