public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* NPTL v userland v LT (RH9+custom kernel problem)
@ 2003-08-07  8:39 Frank Cusack
  2003-08-07  8:49 ` Arjan van de Ven
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Frank Cusack @ 2003-08-07  8:39 UTC (permalink / raw)
  To: lkml, phil-list

Hi,

The RH9 kernels have NPTL patches.  Standard 2.4.21 does not.
I am running a custom kernel without the NPTL stuff.

At least one RH9 userland piece is not working correctly with my
custom kernel.  If I use pam_ldap, the root user cannot login on
the console.

PAM prompts for the username and password, then pam_ldap appears to
get stuck in a syslog call.  It doesn't actually call syslog(), but if
I compare to a functional system, the working one opens /dev/log etc
whereas the broken one does an rt_sigsuspend() and hangs until a SIGALRM
is delivered (login having set this up before prompting for the password).
That's from looking at strace; I haven't looked at ltrace or tried to
run under the debugger yet.

Logging in as a normal user, then sudo'ing to root does work though.

A notable difference between these two cases is that in the former the
real uid of the 'login' process is root, and in the latter the real uid
of the 'sudo' process is that of the user.  (PAM config for login and sudo
are identical.)

I think I've seen a case where normal users couldn't login but I
may be misremembering.

So, finally getting to my question, should I even *expect* a non-NPTL
kernel to work with the RH9 userland?  If not, is there a simple fix
without going to NPTL, say just rebuilding glibc?  hmm... now that I
ask it I feel dumb, I do think I would need to rebuild glibc so it
knows the kernel has LinuxThreads, not NPTL.  OK, if that's true
are there any other libs I should need to rebuild?

thanks
/fc

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: NPTL v userland v LT (RH9+custom kernel problem)
@ 2003-08-07 13:20 Luke Howard
  0 siblings, 0 replies; 12+ messages in thread
From: Luke Howard @ 2003-08-07 13:20 UTC (permalink / raw)
  To: Mathias.Froehlich; +Cc: linux-kernel, fcusack

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=US-ASCII, Size: 1007 bytes --]


Integrating this patch is on my todo list.

-- Luke

>From: Mathias =?utf-8?q?Fr=C3=B6hlich?= <Mathias.Froehlich@web.de>
>Subject: Re: NPTL v userland v LT (RH9+custom kernel problem)
>To: linux-kernel@vger.kernel.org
>Cc: fcusack@fcusack.com, Luke Howard <lukeh@padl.com>
>Date: Thu, 7 Aug 2003 15:06:04 +0200
>
>
>Hi,
>
>I think you can try out the nss_ldap rpm at
>
>http://na.uni-tuebingen.de/~frohlich/nss_ldap/
>
>It is built on RedHat 9.
>The main target of this rpm is to eliminate the recursive entrance bug of 
>nss_ldap if the ldap host is not resolved before entering the ldap nss 
>modules gethostbyname. But there is also some threading cleanup included.
>
>I don't know what the real reason of the reported problem is, but it does not 
>occur since the time i use my patched nss_ldap module.
>I use both kinds of kernels with redhat 9 vanilla kernel.org and redhat 
>modified ones.
>
> Hope this helps
>
>    Mathias Fröhlich
>
>-- 
>Mathias Fröhlich, email: Mathias.Froehlich@web.de
>
>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2003-08-08 19:06 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-07  8:39 NPTL v userland v LT (RH9+custom kernel problem) Frank Cusack
2003-08-07  8:49 ` Arjan van de Ven
2003-08-07 14:42 ` Jerry Cooperstein
2003-08-07 13:06   ` Mathias Fröhlich
2003-08-08  5:45     ` Frank Cusack
2003-08-08  6:02       ` Valdis.Kletnieks
2003-08-08  6:53       ` Peter Svensson
2003-08-08  7:10         ` Pau Aliagas
2003-08-08 10:32         ` Henning P. Schmiedehausen
2003-08-08 17:37 ` Frank Cusack
2003-08-08 19:05   ` Ulrich Drepper
  -- strict thread matches above, loose matches on Subject: below --
2003-08-07 13:20 Luke Howard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox