Re: 2.6.25.3: su gets stuck for root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alan Cox <alan@...>
Cc: Alan Cox <alan@...>, David Newall <davidn@...>, Willy Tarreau <w@...>, Harald Dunkel <harald.dunkel@...>, <linux-kernel@...>
Date: Wednesday, June 4, 2008 - 10:43 am

Alan Cox wrote:

[Alan, thanks for the tips on where to instrument this]

What I have verified so far is that when the problem occurs, it gets to
this point in [tty_io.c] tty_check_change():

1229         kill_pgrp(task_pgrp(current), SIGTTOU, 1);
1230         set_thread_flag(TIF_SIGPENDING);
1231         ret = -ERESTARTSYS;
1232 out:
1233         return ret;

So the error that gets returned to set_termios() is -512.

Also, the various checks before this point (of course) did not pass
(current->signal->tty != tty, !tty->pgrp, task_pgrp(current) ==
tty->pgrp, is_ignored(SIGTTOU), is_current_pgrp_orphaned()).  I have not
printed out the various values from these - let me know if this would be
helpful.  I wanted to pass this info along now in case it is of help.

						-Joe
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sun Jun 1, 9:31 pm)
Re: 2.6.25.3: su gets stuck for root, Harald Dunkel, (Mon Jun 2, 1:12 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 1:42 am)
Re: 2.6.25.3: su gets stuck for root, Willy Tarreau, (Mon Jun 2, 1:32 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 4:10 am)
Re: 2.6.25.3: su gets stuck for root, David Newall, (Mon Jun 2, 5:01 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 5:20 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 11:26 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 11:51 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 10:43 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed Jun 4, 11:16 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 12:52 pm)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Wed Jun 4, 1:10 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 4, 4:32 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Wed Jun 11, 10:04 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Thu Jun 12, 7:52 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Fri Jun 13, 9:49 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 3:45 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 1:43 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 4:34 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 4:52 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Sat Jun 14, 5:26 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Sat Jun 14, 5:34 pm)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 12:03 pm)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 6:16 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 6:50 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Tue Jun 17, 11:32 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 6:39 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 6:52 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 6:57 am)
Re: 2.6.25.3: su gets stuck for root, Alan Cox, (Mon Jun 2, 8:28 am)
Re: 2.6.25.3: su gets stuck for root, Vegard Nossum, (Mon Jun 2, 10:31 am)
Re: 2.6.25.3: su gets stuck for root, Joe Peterson, (Mon Jun 2, 1:55 am)