* Kernel 2.4.5-ac2 OOPs when run pppd ?
@ 2001-05-28 8:48 Steve Kieu
2001-05-28 13:51 ` Alan Cox
0 siblings, 1 reply; 5+ messages in thread
From: Steve Kieu @ 2001-05-28 8:48 UTC (permalink / raw)
To: linux-kernel
Hi,
Yeas it is stil the same as 2.4.5-ac1, but did not
happen with 2.4.5; You can try running pppd in the
console (tty1) without any argument.
Regards,
SK
=====
S.KIEU
_____________________________________________________________________________
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Kernel 2.4.5-ac2 OOPs when run pppd ?
2001-05-28 8:48 Kernel 2.4.5-ac2 OOPs when run pppd ? Steve Kieu
@ 2001-05-28 13:51 ` Alan Cox
2001-05-28 14:19 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2001-05-28 13:51 UTC (permalink / raw)
To: Steve Kieu; +Cc: linux-kernel
> Yeas it is stil the same as 2.4.5-ac1, but did not
> happen with 2.4.5; You can try running pppd in the
> console (tty1) without any argument.
Looks like an interaction with the newer console locking code. The BUG() is
caused when the ppp code tries to write to the console from inside an
interrupt handler [now not allowed]
Alan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Kernel 2.4.5-ac2 OOPs when run pppd ?
2001-05-28 13:51 ` Alan Cox
@ 2001-05-28 14:19 ` Andrew Morton
2001-05-28 18:21 ` Richard Gooch
0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2001-05-28 14:19 UTC (permalink / raw)
To: Alan Cox; +Cc: Steve Kieu, linux-kernel
Alan Cox wrote:
>
> > Yeas it is stil the same as 2.4.5-ac1, but did not
> > happen with 2.4.5; You can try running pppd in the
> > console (tty1) without any argument.
>
> Looks like an interaction with the newer console locking code. The BUG() is
> caused when the ppp code tries to write to the console from inside an
> interrupt handler [now not allowed]
I wondered if there were more cases.
In the (as-yet-unsent) Linus patch I've added an
if (in_interrupt()) {
shout_loudly();
return;
}
in three places to catch this possibility. I'll prepare
a -ac diff.
This is a fundamental problem.
- The console is a tty device
- tty devices are callable from interrupts
- the console is very stateful and needs locking
- the locking must be interrupt-safe (irqsave)
- the console is very slow.
net result: we block interrupts for ages. It's
an exceptional situation. I hope Linus buys this
line of reasoning :)
-
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Kernel 2.4.5-ac2 OOPs when run pppd ?
2001-05-28 14:19 ` Andrew Morton
@ 2001-05-28 18:21 ` Richard Gooch
2001-05-29 1:12 ` Andrew Morton
0 siblings, 1 reply; 5+ messages in thread
From: Richard Gooch @ 2001-05-28 18:21 UTC (permalink / raw)
To: Andrew Morton; +Cc: Alan Cox, Steve Kieu, linux-kernel
Andrew Morton writes:
> Alan Cox wrote:
> >
> > > Yeas it is stil the same as 2.4.5-ac1, but did not
> > > happen with 2.4.5; You can try running pppd in the
> > > console (tty1) without any argument.
> >
> > Looks like an interaction with the newer console locking code. The BUG() is
> > caused when the ppp code tries to write to the console from inside an
> > interrupt handler [now not allowed]
>
> I wondered if there were more cases.
>
> In the (as-yet-unsent) Linus patch I've added an
>
> if (in_interrupt()) {
> shout_loudly();
> return;
> }
>
> in three places to catch this possibility. I'll prepare
> a -ac diff.
>
>
> This is a fundamental problem.
>
> - The console is a tty device
> - tty devices are callable from interrupts
> - the console is very stateful and needs locking
> - the locking must be interrupt-safe (irqsave)
> - the console is very slow.
>
> net result: we block interrupts for ages. It's
> an exceptional situation. I hope Linus buys this
> line of reasoning :)
How about having a helper function for interrupt handlers which queues
characters to be sent to the console? kconsoled anyone? Blocking
interrupts is quite distressing, so we need to be consoled ;-)
Regards,
Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Kernel 2.4.5-ac2 OOPs when run pppd ?
2001-05-28 18:21 ` Richard Gooch
@ 2001-05-29 1:12 ` Andrew Morton
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Morton @ 2001-05-29 1:12 UTC (permalink / raw)
To: Richard Gooch; +Cc: Alan Cox, Steve Kieu, linux-kernel
Richard Gooch wrote:
>
> How about having a helper function for interrupt handlers which queues
> characters to be sent to the console? kconsoled anyone? Blocking
> interrupts is quite distressing, so we need to be consoled ;-)
I don't think we need it, Richard. These writes to tty
devices from interrupt context are coming from line
disciplines - n_hdlc, ppp, r3964, etc.
Now, while it may be amusing to see if you can successfully
negotiate a PPP session by typing raw LCP, there really isn't,
I believe, a useful reason for attaching one of these ldiscs
to the console tty.
Interrupt-context writes to the *console*, as opposed to
the console *tty* work just fine, of course. printk.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2001-05-29 1:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-28 8:48 Kernel 2.4.5-ac2 OOPs when run pppd ? Steve Kieu
2001-05-28 13:51 ` Alan Cox
2001-05-28 14:19 ` Andrew Morton
2001-05-28 18:21 ` Richard Gooch
2001-05-29 1:12 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox