Re: 2.6.25.3: su gets stuck for root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Joe Peterson <joe@...>
Cc: Alan Cox <alan@...>, Alan Cox <alan@...>, David Newall <davidn@...>, Willy Tarreau <w@...>, Harald Dunkel <harald.dunkel@...>, <linux-kernel@...>
Date: Saturday, June 14, 2008 - 4:34 pm

On Sat, Jun 14, 2008 at 7:43 PM, Joe Peterson <joe@skyrush.com> wrote:

Yeah, but doesn't it loop indefinitely calling ioctl() and getting a
SIGTTOU? Tracing up till this point is okay (and what I had in mind).


Yeah, a user-space process can do this, and it's the right behaviour
for the kernel. I did post a program that would "reproduce" what
you're seeing. I do now believe that it's something timing-related, as
Alan suggested initially. (But timing-related with your scripts, that
is. I must say, that "sleep 2" does look a bit suspicious; I have no
idea what that is supposed to do :-))

I suppose it would be more useful to see a trace where you include a
few more system calls, can you try:

    # strace -e trace=process,ioctl,setpgid -f su foo

instead?

Just for the record, I'm probably not the best person to debug this,
so I'm just trying to figure it out as we go. On the other hand, I
don't see better suggestions from anybody else. Thank you for
persisting, though! :-)

(And the fact that the results differ with the kernel versions does
make this relevant for LKML still.)


Vegard

-- 
"The animistic metaphor of the bug that maliciously sneaked in while
the programmer was not looking is intellectually dishonest as it
disguises that the error is the programmer's own creation."
	-- E. W. Dijkstra, EWD1036
--
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)