[RESEND-2][PATCH][BZ 13761] Fix allocation in nss_compat for large number of memberships to a group
Siddhesh Poyarekar
siddhesh@redhat.com
Mon Mar 26 06:22:00 GMT 2012
Hi,
Resending once again:
nss_compat allocates buffer space on stack using alloca (and
extend_alloca) for initgroup and keeps extending it to fit in larger
lines. This breaks for cases where the number of members in a gorup
are very large, causing the alloca reference to go beyond thread stack
boundary. Attached patch falls back to malloc/free if the buffer size
needed is beyond __libc_alloca_cutoff.
Regards,
Siddhesh
ChangeLog:
2012-02-09 Siddhesh Poyarekar <siddhesh@redhat.com>
* nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
_nss_compat_initgroups_dyn): Fall back to malloc/free for
large group memberships.
Date: Wed, 14 Mar 2012 18:35:43 +0530
From: Siddhesh Poyarekar <siddhesh@redhat.com>
To: libc-alpha@sourceware.org
Cc: Carlos O'Donell <carlos@systemhalted.org>, Jeff Law <law@redhat.com>
Subject: [RESEND][PATCH][BZ 13761] Fix allocation in nss_compat for
large number of memberships to a group
ping.
--
Siddhesh
-------------- next part --------------
An embedded message was scrubbed...
From: Siddhesh Poyarekar <siddhesh@redhat.com>
Subject: [PATCH][BZ 13761] Fix allocation in nss_compat for large number of memberships to a group
Date: Mon, 27 Feb 2012 11:46:52 +0530
Size: 6265
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120326/17ee6f8b/attachment.eml>
More information about the Libc-alpha
mailing list