public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Subject: Re: NULL pointer in proc_pid_stat -- oops.
@ 2004-03-29  1:35 Albert Cahalan
  2004-03-29 14:18 ` OGAWA Hirofumi
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Cahalan @ 2004-03-29  1:35 UTC (permalink / raw)
  To: linux-kernel mailing list; +Cc: hirofumi, areiter, rmk+serial, tytso

>> And from the oops trace output (that is attached), we can
>> see that %edx is 0x0; so we can easily see here why we're
>> crashing at least.  After examining the C source, I see
>> that we're dying in the call to task_name() (inline) from
>> proc_pid_stat().
>
> Looks like this problem is same with BSD acct Oops.
>
>  if (task->tty) {
>   tty_pgrp = task->tty->pgrp;
>   tty_nr = new_encode_dev(tty_devnum(task->tty));
>  }
>
> Some place doesn't take the any lock for ->tty.
> I think we need to take the lock for ->tty.

Probably this isn't the thing for 2.6.xx, but how
about a special tty struct instead of the NULL?
Make it const, perhaps write-protected, etc.

Then the if(task->tty) test can be removed.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-03-29 17:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-29  1:35 Subject: Re: NULL pointer in proc_pid_stat -- oops Albert Cahalan
2004-03-29 14:18 ` OGAWA Hirofumi
2004-03-29 17:09   ` Ricky Beam

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox