Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759282AbYFDUdW (ORCPT ); Wed, 4 Jun 2008 16:33:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753255AbYFDUdF (ORCPT ); Wed, 4 Jun 2008 16:33:05 -0400 Received: from shadow.wildlava.net ([67.40.138.81]:34857 "EHLO shadow.wildlava.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752897AbYFDUcw (ORCPT ); Wed, 4 Jun 2008 16:32:52 -0400 Message-ID: <4846FBF2.9010206@skyrush.com> Date: Wed, 04 Jun 2008 14:32:50 -0600 From: Joe Peterson User-Agent: Thunderbird 2.0.0.14 (X11/20080505) MIME-Version: 1.0 To: Alan Cox CC: Alan Cox , David Newall , Willy Tarreau , Harald Dunkel , linux-kernel@vger.kernel.org Subject: Re: 2.6.25.3: su gets stuck for root References: <48438126.3080308@t-online.de> <20080602053256.GF5609@1wt.eu> <20080602091016.571dda7c@core> <4843B6EE.8080104@davidnewall.com> <20080602102033.63e4cd18@core> <48441138.90503@skyrush.com> <20080602155133.GC933@devserv.devel.redhat.com> <4846A9F4.40003@skyrush.com> <20080604151649.GB12625@devserv.devel.redhat.com> <4846C85E.7080309@skyrush.com> <20080604171056.GB17875@devserv.devel.redhat.com> In-Reply-To: <20080604171056.GB17875@devserv.devel.redhat.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 35 Alan Cox wrote: >> tty = current->signal->tty = -142080000 or 0xf7880800 >> task->pgrg = -142405824 or 0xf7830f40 > > task->pgrp is a struct pid - you need the value it holds Yeah, I figured later that giving you the addresses was rather useless. :) Anyway, here is more info: tty_check_change: current->signal->tty = f7880800 tty_check_change: tty = f7880800 tty_check_change: tty->pgrp = f7b99e40 tty->pgrp->count = 5 tty->pgrp->level = 0 tty->pgrp->numbers[0].nr = 6951 tty_check_change: task_pgrp(current) = f7b99d40 task_pgrp(current)->count = 1 task_pgrp(current)->level = 0 task_pgrp(current)->numbers[0].nr = 6952 tty_check_change: kill_pgrp called; returning -ERESTARTSYS set_termios: error return value (-512) from tty_check_change foo 6951 0.0 0.1 2332 1096 tty1 S+ 14:18 0:00 su foo foo 6952 0.0 0.1 2988 1464 tty1 S 14:18 0:00 bash So, looks like the tty->pgrp's process is the "su" command itself, and the task_pgrp(current)'s process is "bash" - the shell started by the su. -Joe -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/