Re: 2.6.25.3: su gets stuck for root

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Vegard Nossum <vegard.nossum@...>
Cc: Alan Cox <alan@...>, Alan Cox <alan@...>, David Newall <davidn@...>, Willy Tarreau <w@...>, Harald Dunkel <harald.dunkel@...>, <linux-kernel@...>
Date: Friday, June 13, 2008 - 9:49 pm

Vegard Nossum wrote:

OK, I performed this test again (getting the su to hang), and here is
the info:

tty_check_change: current->signal->tty = f7879800
tty_check_change: tty = f7879800
tty_check_change: tty->pgrp = f78639c0
  tty->pgrp->count = 5
  tty->pgrp->level = 0
  tty->pgrp->numbers[0].nr = 7036
tty_check_change: task_pgrp(current) = f7863f00
  task_pgrp(current)->count = 1
  task_pgrp(current)->level = 0
  task_pgrp(current)->numbers[0].nr = 7037
tty_check_change: kill_pgrp called; returning -ERESTARTSYS
set_termios: error return value (-512) from tty_check_change

scorpius ~ # ps aux | grep 7036
foo  7036  0.0  0.1   2336  1100 tty1     S+   19:30   0:00 su foo

scorpius ~ # ps aux | grep 7037
foo  7037  0.0  0.1   2988  1460 tty1     S    19:30   0:00 bash

scorpius ~ # ps -eo pid,pgrp,tpgid,user,args | grep 7036
 6902  6902  7036 root     /bin/login --
 6922  6922  7036 root     -bash
 7036  7036  7036 foo      su foo
 7037  7037  7036 foo      bash
 7042  7037  7036 foo      stty -ixany

scorpius ~ # ps -eo pid,pgrp,tpgid,user,args | grep 7037
 7037  7037  7036 foo      bash
 7042  7037  7036 foo      stty -ixany

scorpius ~ # ps aux | grep 7042
foo  7042  0.0  0.0   1608   376 tty1     T    19:30   0:00 stty -ixany

scorpius ~ # ps -eo pid,pgrp,tpgid,user,args | grep 7042
 7042  7037  7036 foo      stty -ixany

(I omitted, of course, when grep found itself, and I compressed some
white space to allow lines to fit nicely in the email)


I do use stty in my .bashrc (that's why this happens), but I do not put
it in the background.

Anyway, hope the additional info above is of help...

					Thanks, 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)