mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Pekka Enberg" <penberg@cs.helsinki.fi>
To: "Tero Roponen" <teanropo@jyu.fi>
Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org,
	"Alan Cox" <alan@lxorguk.ukuu.org.uk>
Subject: Re: tty-related oops in latest kernel(s)?
Date: Mon, 28 May 2007 12:34:44 +0300	[thread overview]
Message-ID: <84144f020705280234g39aa04b3hfe369f4477e6043d@mail.gmail.com> (raw)
In-Reply-To: <84144f020705280022lf3902caj1def02ed56e0bff@mail.gmail.com>

On 5/28/07, Pekka Enberg <penberg@cs.helsinki.fi> wrote:
> >   BUG: unable to handle kernel NULL pointer dereference at virtual address 00000731
> >   EIP is at vt_ioctl+0xda8/0x1482

[snip]

On 5/28/07, Pekka Enberg <penberg@cs.helsinki.fi> wrote:
> >   Call Trace:
> >    [<c0149fd9>] link_path_walk+0xa5/0xaf
> >    [<c021d766>] vt_ioctl+0x0/0x1482
> >    [<c021a395>] tty_ioctl+0xa01/0xa87

I am getting this with your config:

(gdb) p vt_ioctl
$1 = {int (struct tty_struct *, struct file *, unsigned int, long
unsigned int)} 0xc01e404a <vt_ioctl>
(gdb) l *(0xc01e404a + 0xda8)
0xc01e4df2 is in vt_ioctl (drivers/char/vt_ioctl.c:720).
715             /*
716              * Returns the first available (non-opened) console.
717              */
718             case VT_OPENQRY:
719                     for (i = 0; i < MAX_NR_CONSOLES; ++i)
720                             if (! VT_IS_IN_USE(i))
721                                     break;
722                     ucval = i < MAX_NR_CONSOLES ? (i+1) : -1;
723                     goto setint;
724

Which seems to match the code dump in the OOPS as well. I am not sure
what %edx (which is zero and causes problems) should contain but I am
guessing tty_driver->ttys is corrupted which seems consistent with the
reference count sanity check failure. Unfortunately I am not familiar
enough with tty internals to immediately see why this is happening.

  parent reply	other threads:[~2007-05-28  9:34 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-27  9:06 Tero Roponen
2007-05-28  7:22 ` Pekka Enberg
2007-05-28  7:47   ` Pekka Enberg
2007-05-28  8:08   ` Tero Roponen
2007-05-28  9:34   ` Pekka Enberg [this message]
2007-05-29 16:04     ` Tero Roponen
2007-05-29 18:57       ` Pekka Enberg
2007-05-30  3:43         ` Tero Roponen
2007-05-30  3:57         ` Tero Roponen
2007-05-30  5:54           ` Pekka Enberg
2007-05-30  5:59             ` Pekka Enberg
2007-05-30  6:00             ` Tero Roponen
2007-05-30 12:02             ` Tero Roponen
2007-05-30 15:39               ` Andrew Morton
2007-05-30 16:01                 ` Tero Roponen
2007-05-30 16:09                   ` Andrew Morton
2007-05-30 18:04                     ` Alexey Dobriyan
2007-05-30 23:14                       ` Antonino A. Daplas
2007-05-30 23:18                         ` David Miller
2007-05-30 23:28                           ` Antonino A. Daplas
2007-05-31  7:17                         ` [Linux-fbdev-devel] " Geert Uytterhoeven
2007-05-31  9:04                           ` Antonino A. Daplas
2007-05-30 18:13                   ` Pekka Enberg
2007-05-30 18:27                     ` Tero Roponen
2007-05-30 22:14                   ` Antonino A. Daplas
2007-05-30 23:17                   ` Antonino A. Daplas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=84144f020705280234g39aa04b3hfe369f4477e6043d@mail.gmail.com \
    --to=penberg@cs.helsinki.fi \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=teanropo@jyu.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®