From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: from second.openwall.net (second.openwall.net [193.110.157.125]) by inbox.vuxu.org (Postfix) with SMTP id 2E4842232E for ; Tue, 9 Apr 2024 14:54:19 +0200 (CEST) Received: (qmail 32398 invoked by uid 550); 9 Apr 2024 12:54:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 32355 invoked from network); 9 Apr 2024 12:54:14 -0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JN8Unkw2/QiPHicxB6FEvQVBqrs5TTVpDRmiLJdTBIG3fTkFHUF1ZI/VDrSpHn2vNNwnAHsPs+u19QSTkk6E+LJCW1qTU+Pz16CgoZvhXJ4Nqfv4lMvF/sKROxon16//EzRqV14hVpj3T1s9e+XUZQjDJxEFQ7p1Gb67b4rb5PGd7wkXwSpa2UyjuaugKs2AjqBAv3H30mR5vNK0FoIl3j2ZxefD+Y4EyUPxLzHHmKpSd9j1WwBi/Dj73Q6Q60AD/8qfgXvmtdxBR3e9H/nwGlT0VnA5dRpb0AQlmf5HepxfeEZG9xRWf0jQrcjebvi73VN51YIlNIyJyYyNXNoV7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=wSKMyw5h7pSlpURAPUSMjyVxe1lAlCrMU4qBSlllTPI=; b=BVyA1DPoDNcHJ/+vIC/pXkeaU/SNUyORjrxxAW//VM/YDwxc6l/99WBzgL1OsMBGq1wuYcg2IhBx8QKPd1AGNRCUmw8//gOsI7OEZ7oB9F8Z2QkM4eAT9xPG96ZpGDMFEseDPMpSidn1cgQphBu/w3dPTtG+9sbK4zCUZQmMWf/abD5L119iEr+KOhAU4OCbGrWvR3iE3W4/JyrP5Xr/4u8005WMkfijIUUz67RclnbBigBkBa0zQmA9q+UpUZHSUNzwGDYPyHVy4MPYpfFkK9eo538ug1I9UHg2q6pt4/WDPwLXzs2qPLahSHE5XjgHeJFDg+gHbvH0JGYQC3qCug== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=wSKMyw5h7pSlpURAPUSMjyVxe1lAlCrMU4qBSlllTPI=; b=bKVyjVMKTSgf2JRwx7qXyoaesm8lVM4KAxIoab0L7cQOu2adswO7np7ynLMrNkQd+JMtUghMcHDdMrctut0T9zdWvTuHfK3Ohuxwb7EbmL/MkglbNIZNmk1ArtAFQUxxxK92StjLUem9Kr4rU2D753boYRmPa8Tdn/FvbgodCxRHjnwXKp8Xbv06w1ro/Sxw0Ljr/V1l2CYby0pAEJPF50K+YcclSM2+t7tDSrAeh6z1X67EL1WQw0Pt7lwkC4E7njqxDT8m6Al9UfgEfscVMvyNI58Sc4459wXr4nIDcrWlxnEdpDSB8XmS4DjpY7Es70Leh65wY11QrX73pCt6gA== From: Kate Deplaix To: Rich Felker CC: "musl@lists.openwall.com" Thread-Topic: [musl] Re: [PATCH] Increase NGROUPS_MAX from 32 to 1024 Thread-Index: AQHaF1GzKihnOc5A+USW4zyi/GxOQLEzlbctgABpJQCALMvbTw== Date: Tue, 9 Apr 2024 12:54:04 +0000 Message-ID: References: <20240312004641.GA4163@brightrain.aerifal.cx> In-Reply-To: <20240312004641.GA4163@brightrain.aerifal.cx> Accept-Language: en-GB, en-US Content-Language: en-GB X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-tmn: [IvJerWWGuCGY7EBeYCk8S8s0NqPVF5xQLDP+aiS+q7sdH7MbXb05ojwV9gkl5RF9] x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CWXP265MB1368:EE_|CWXP265MB2951:EE_ x-ms-office365-filtering-correlation-id: fcb95599-5422-4e12-057a-08dc589422f8 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 36cMP/XmsU/bp2S5iGDIRKiEfATyirRzoVReJoaMAhzBhysQGh0vJrv7nlHseN93EBB0lQNy/L8ed/katG+wf58yeyKqEBPANXK4qWBxJTvJEIqxkBlHAbJoriUF2vx8eGf7t6OE/nYh5CHYnBcQnokzO00mX0r7cUPoQ/rGefQM1aEzV116AuqlRGtVpWqx3roCBveZx6rg1Fct8eXS25XtZkwMjZ2qFytpnmV23m62gh1s/2hLIxnAWixlDs6QDljTEERpWg4gjRHVnmjkLEMhUPEmdCVlD4CdvuxLfA0x/UfN7eROorCwRTg/MV8GObKnULohSSZFpxK7NG6eiBrLsbczrxe+2CM/at9UA4M4wEMvMTHRwgWjK3EKTTezCxKBQNjqZRNdKZsLMi03YIf4E49hiOC+WSq3nHzHHzWQygXYVso2VNFXh4H1qBDi8s/4KEhAtQIJGLr3wYm1cSZR+DZo3YJZ2+ZJt/D/s/18Le/kvqQ8GRShWmXQMFLZJL9osKkLUQXg9X388OqvdHlG8iV4ePVdB7C7Focif4NguBVr2G+7oT3rx4ZI4DrFZ0DRSpbneetKYMsoaYhlLc7aRwMvEQktnhciwwDQVa5cp0ON2IJRk5RgYMVw4yVMqWFz7hrWtlaq67YiQBF7VF1XdB2Oc68R7/WeV6h8pwyqwgHBwxrunoaqxn4urMmI x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?XLgRQ7KLBTcc17KVvbdnyp8BUTIphSCNXQSnPzuFlo7Jmicd3I64o0ypzvwP?= =?us-ascii?Q?5wRuhpBo3LDSvkOd0yayOW35ilfV/PKtHKISHosbqd7OZqp/cLicyKhx2p7a?= =?us-ascii?Q?jVWvn2Syvtr9iuwpM57DILdBInUxEzs2krpUCcgW8wknXmk6yviz5i9Y+9d8?= =?us-ascii?Q?v79Y7oLbqdXM1CtQ8+VRxFZrrD0vVoRjbDQOo4ILTBL6dzBtKyajuwT1CAVg?= =?us-ascii?Q?JAdivqoAiT+r3kyn3iSjwwbaqcaIreN8xIYPB+UymFrYIh5AlFjyqUpITlme?= =?us-ascii?Q?nRrjZRNn6kSMKNqJLz6ifvfocIEZm5oKf/AIsc9bYg/uW3x8vDk2eQ6m4GNT?= =?us-ascii?Q?qggJd+z+a0F1rc3JRooCXeFWS+vTXurQ1wqU/v7kWqvNEKJIL9vSOopzvFux?= =?us-ascii?Q?EHjsR/T/fItCcq1UY1HCjGYbm4Fkobff8iI91WBkoKhJdDaqj2oc+9D2nBtF?= =?us-ascii?Q?6huIXb+ouRrBAuUwc53ZaBSaOMzzRcmHYWtlcl4wPH+cTyiUBmtMTA6M3FNX?= =?us-ascii?Q?ycNpBhVyCChFjTuQtFsGJpho2QnHrhz0fd8ASvStGcp9SLXI357m3+BFg8bQ?= =?us-ascii?Q?9u8YCa1c7pGEGk7zrT11AWtd8Vr0Xu0U2H5PMn5jszAzNG9hKNM5fnxYslDg?= =?us-ascii?Q?s2ej26vt0MbsbxM0a/sbgICjCgfOTCdYD0dS7WQtF+0Tfw6ghz2VRPZzeWVg?= =?us-ascii?Q?d1jQowIKlH+uI30C9AuQc3OtGaLOKoJGYuCRebkbZu/ycJdZ5M0X9xk2UrFr?= =?us-ascii?Q?KkJ/Wh4nSWn4Thbm7MegK6LOSJC0zVbG1QPLifITqkiosEi9T0Gl14DmOOLg?= =?us-ascii?Q?EU1zw22vdriraUcGWM/UGR1xorkHM6Q6ERnLXH0R0aOz3R2kVD24mrG0107h?= =?us-ascii?Q?fcN9p+6akLPFV9HijgwMP9P1qqvbTKXbAC2pJrWnrD39quet8XGY+nbfP3Kz?= =?us-ascii?Q?bPTHHcNax/tkmX+teQEHu4IZXUDjRU31N9YaxnJV6fWbMrIVMBZkqhxSnIgP?= =?us-ascii?Q?yfUO3rG+ygPV66M7PK5YXYW1tfG2btYBShNj9oMHzX9ALlUp3qrM800Q1xhP?= =?us-ascii?Q?CJeX1hDQB0R5XBYRm+c5z+xVr2IskmIKIX1TVTvN2qJBXd/BcQ3Bdro0KiPV?= =?us-ascii?Q?3AcHchp76LS2iWsR6b8ek+IBn2kHY3aLvNuvSpmyG8i6jaG9fex2OVRB45dW?= =?us-ascii?Q?bRCx0Sekpu+vLSpb43AfAPNv6hKWJ7rTRUejdcGfMGmYmGwPN1ZJhKWJFcC5?= =?us-ascii?Q?vZNhG0vYpaTDlLjviXCaH5Nn+crrFN0gRbHqzyBLKcORi6DQ9XBA2xD+zhXj?= =?us-ascii?Q?a7Q=3D?= Content-Type: multipart/alternative; boundary="_000_CWXP265MB136807F35F02410511FA95A5BC072CWXP265MB1368GBRP_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CWXP265MB1368.GBRP265.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: fcb95599-5422-4e12-057a-08dc589422f8 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2024 12:54:04.4674 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CWXP265MB2951 Subject: Re: [musl] Re: [PATCH] Increase NGROUPS_MAX from 32 to 1024 --_000_CWXP265MB136807F35F02410511FA95A5BC072CWXP265MB1368GBRP_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, Are there any updates on this by any chance? Many thanks, Kate ________________________________ From: Rich Felker Sent: 12 March 2024 00:46 To: Kate Deplaix Cc: musl@lists.openwall.com Subject: Re: [musl] Re: [PATCH] Increase NGROUPS_MAX from 32 to 1024 On Mon, Mar 11, 2024 at 06:31:13PM +0000, Kate Deplaix wrote: > Hi, > > Any chance this patch could be looked at? Thanks for the ping. I'll take a look and see if we can open a discussion on either doing something like this, or a more complete fix, in this release cycle. Rich > ________________________________ > From: Kate Deplaix > Sent: 14 November 2023 23:35 > To: musl@lists.openwall.com > Subject: [PATCH] Increase NGROUPS_MAX from 32 to 1024 > > Such a restrictive value for NGROUPS_MAX makes it impossible to have a mu= sl-based system with a user belonging to more than 32 groups. If done on th= e root user, this will break your system. > It also makes it impossible to use certain functions in binaries that hav= e been compiled with musl. > > This new value is still very far from Linux's NGROUPS_MAX of 65536 that h= as been there since Linux 2.6.4 but this is at least one tiny step in the r= ight direction while maintainers investigate how to match Linux's value. > > ref: https://www.openwall.com/lists/musl/2021/07/03/1 > ref: https://www.openwall.com/lists/musl/2022/12/06/3 > ref: https://github.com/ocaml/opam/pull/5383 > --- > include/limits.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/limits.h b/include/limits.h > index 53a27b9d..501c3612 100644 > --- a/include/limits.h > +++ b/include/limits.h > @@ -45,7 +45,7 @@ > #define NAME_MAX 255 > #endif > #define PATH_MAX 4096 > -#define NGROUPS_MAX 32 > +#define NGROUPS_MAX 1024 > #define ARG_MAX 131072 > #define IOV_MAX 1024 > #define SYMLOOP_MAX 40 > -- > 2.40.1 --_000_CWXP265MB136807F35F02410511FA95A5BC072CWXP265MB1368GBRP_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,

Are there any updates on this by any chance?

Many thanks,
Kate

From: Rich Felker <dalia= s@libc.org>
Sent: 12 March 2024 00:46
To: Kate Deplaix <kit-ty-kate@outlook.com>
Cc: musl@lists.openwall.com <musl@lists.openwall.com>
Subject: Re: [musl] Re: [PATCH] Increase NGROUPS_MAX from 32 to 1024=
 
On Mon, Mar 11, 2024 at 06:31:13PM +0000, Kate Dep= laix wrote:
> Hi,
>
> Any chance this patch could be looked at?

Thanks for the ping. I'll take a look and see if we can open a
discussion on either doing something like this, or a more complete
fix, in this release cycle.

Rich

> ________________________________
> From: Kate Deplaix
> Sent: 14 November 2023 23:35
> To: musl@lists.openwall.com <musl@lists.openwall.com>
> Subject: [PATCH] Increase NGROUPS_MAX from 32 to 1024
>
> Such a restrictive value for NGROUPS_MAX makes it impossible to have a= musl-based system with a user belonging to more than 32 groups. If done on= the root user, this will break your system.
> It also makes it impossible to use certain functions in binaries that = have been compiled with musl.
>
> This new value is still very far from Linux's NGROUPS_MAX of 65536 tha= t has been there since Linux 2.6.4 but this is at least one tiny step in th= e right direction while maintainers investigate how to match Linux's value.=
>
> ref: http= s://www.openwall.com/lists/musl/2021/07/03/1
> ref: http= s://www.openwall.com/lists/musl/2022/12/06/3
> ref: https://githu= b.com/ocaml/opam/pull/5383
> ---
>  include/limits.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/limits.h b/include/limits.h
> index 53a27b9d..501c3612 100644
> --- a/include/limits.h
> +++ b/include/limits.h
> @@ -45,7 +45,7 @@
>  #define NAME_MAX 255
>  #endif
>  #define PATH_MAX 4096
> -#define NGROUPS_MAX 32
> +#define NGROUPS_MAX 1024
>  #define ARG_MAX 131072
>  #define IOV_MAX 1024
>  #define SYMLOOP_MAX 40
> --
> 2.40.1
--_000_CWXP265MB136807F35F02410511FA95A5BC072CWXP265MB1368GBRP_--