Re: 2.6.25.3: su gets stuck for root

From: Willy Tarreau
Date: Wed May 14 2008 - 01:46:52 EST


On Wed, May 14, 2008 at 06:55:24AM +0200, Harald Dunkel wrote:
> Willy Tarreau wrote:
> >
> >even as root ? Because if you run strace on "su" as a user, you will
> >lose the setuid which may change the conditions.
> >
>
> It gets stuck _only_ if I am root. Running su without root permission
> is no problem.

OK. That's quite strange.

> As written before, If I kick out the "stty intr '^C'" from root's
> .bashrc, then the second su succeeds. Running the stty command
> manually in this new shell is no problem.
>
> Can you reproduce this problem? It doesn't need XWindow or any
> special user. Simply login as root on tty2, and run "su". If it
> gets stuck, then you could login on tty3 and kill -9 ### the blocking
> stty.

I tried (I'm on 2.6.25.1). But neither "su", "su willy" nor "stty intr ^C"
caused such a problem unfortunately.

You may want to ask several people to test in the same environment as
yours (same distro, etc...) in order to find whether it's a user-land
bug or a kernel bug. Most likely it's a kernel bug or side effect which
is triggered by your version of su or stty.

> Regards
>
> Harri

Willy

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/