From: Kay Sievers Date: Sat, 01 Aug 2009 13:43:02 +0000 Subject: Re: [PATCH] fix util_lookup_group to handle large groups Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org On Sat, Aug 1, 2009 at 01:26, Eric W. Biederman wrot= e: >> sysconf(_S_GETGR_R_SIZE_MAX) returns either -1 or a good >> suggested starting value for buflen. =C2=A0It does not return the >> worst case possible for buflen. > > In my case I have a group with about 50 users in /etc/group > and that is what triggered the problem in udev and caused > all of the udevs group lookups to fail. > > The following patch which dynamically allocates the group member buffer > should fix this problem. Applied. Thanks, Kay