[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#381905: marked as done (linux-kernel-headers: NGROUPS_MAX doesn't match the kernel and causes test failures)



Your message dated Sun, 8 Oct 2006 04:26:54 -0400
with message-id <20061008082654.GA31062@scowler.net>
and subject line ngroups
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: linux-kernel-headers
Version: 2.5.999-test7-bk-17
Severity: important

The setgroups test from the ltp (Linux Test Project
<http://ltp.sourceforge.net/>) testsuite  has unexpected behavior on Debian
Sarge.  The test fails reporting that setgroups() call succeeded when trying
to set more groups that NGROUPS_MAX.

We have tracked this down to a mismatch in the definitions of NGROUPS_MAX
between the 2.6.8 Debian kernel and the linux-kernel-headers package.
The linux-kernel-headers package defines this value as 32, while the
kernel defines it as 65535.   When the test tries to retrieve this
maximum value using the sysconf() call, it gets the value of 32 that
was retrieved from glibc and specified by /usr/include/linux/limits.h,
which is part of the linux-kernel-headers package.   The test then tries
to issue a setgroups() call with the number of groups set to NGROUPS_MAX+1 (33)
which is less then the kernel maximum (65535), and thus the call succeeds
when it should really fail.

It is important to specify proper limits for this.  This is a request to set
NGROUPS_MAX to 65535, so it matches the kernel, in linux-kernel-headers
package.

-- System Information:
Debian Release: 3.1
Architecture: ia64
Kernel: Linux 2.6.8-3-mckinley-smp
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) 
-- no debconf information


--- End Message ---
--- Begin Message ---
linux/limits.h currently has 65535

--- End Message ---

Reply to: