mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <andrewm@uow.edu.au>
To: Andreas Dilger <adilger@turbolinux.com>
Cc: Vibol Hou <vhou@khmer.cc>, Linux-Kernel <linux-kernel@vger.kernel.org>
Subject: Re: kernel BUG doing sysrq-t on 2.4.2-ac14
Date: Thu, 08 Mar 2001 23:32:47 +0000	[thread overview]
Message-ID: <3AA8169F.FAE81841@uow.edu.au> (raw)
In-Reply-To: <200103081934.f28JYGS05891@webber.adilger.net>

Andreas Dilger wrote:
> 
> > [< c0109557>] kernel BUG at printk.c:327!
> 
> It may be that if the tasklist is too long, and it runs with interrupts
> disabled, that this will trigger the NMI watchdog timer.  Since I don't
> know anything about the console, I can't help.

Yes, this is being a pest.  I assume what is happening
is that a CPU is (slowly) doing a print to the serial
console with console_sem held.  Then the NMI watchdog
fires and it reinitialises the console semaphore.  On return
from the NMI handler, console_sem is now released.  It's off-by-one.

So subsequent attempts to use printk() hit the BUG().  ho-hum.
The machine is of course completely kaput by this stage
but this really should be fixed.  This'll be fun to test.

A wider question is why are we still getting NMI watchdog
triggering during SYSRQ-T on a serial console.  This
is the second time this has been reported.  It can certainly
happen if the serial port is set up for hardware handshaking
and the modem control lines aren't set up right - we loop
for ever in the serial console code.  Fair enough.

Maybe the sysrq handler should communicate with the NMI
watchdog code, and tell it not to fire while it's dumping 
stuff.  hmm...  Messy.

-

      reply	other threads:[~2001-03-08 23:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-08 19:06 Vibol Hou
2001-03-08 19:34 ` Andreas Dilger
2001-03-08 23:32   ` Andrew Morton [this message]

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=3AA8169F.FAE81841@uow.edu.au \
    --to=andrewm@uow.edu.au \
    --cc=adilger@turbolinux.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vhou@khmer.cc \
    /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®