Re: [PATCH] Convert serial_core oopses to BUG_ON



Thus wrote Russell King:
Calling serial functions to flush buffers, or try to send more data
after the port has been closed or hung up is a bug in the code doing
the calling, not in the serial_core driver.

Make this explicitly obvious by adding BUG_ON()'s.

If we make it

if (!info) {
WARN_ON(1);
return;
}

will that allow people's kernels to limp along until it gets fixed?
"until" - I think you mean "if anyone ever bothers" so no I don't agree.

Russel, I agree this should be clearly marked and an oops seems okay here,
but we're talking dead systems here (dead as in all interrupts masked type
of dead). Most users won't even be aware an oops occured, let alone be able
to read the messages on the console.

I was just lucky because after the first one I got (#5958, a regular oops)
I tried to nail it down in text mode, with the console loglevel upped a
bit, so I was able to see what the panic (#6131) was all about.

I think we really need those *_ON()s at least in uart_write().

Best regards,

--
Karol 'sziwan' Kozimor
sziwan@xxxxxxxxxxx
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] Convert serial_core oopses to BUG_ON
    ... Russel, I agree this should be clearly marked and an oops seems okay here, ... but we're talking dead systems here (dead as in all interrupts masked type ... another bug report in bugzilla against serial and no progress. ... maintainer of: 2.6 Serial core ...
    (Linux-Kernel)
  • Re: [PATCH] Time sliced CFQ #2
    ... >>couldn't save the oops, as I had no hd access anymore and X would freeze ... went havoc, hd access went dead. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: Chuckle of the Day (8-4-06)
    ... Besides, the Author is dead. ... I never read Calvin and Hobbes until this week! ... Oops! ...
    (rec.food.cooking)
  • Re: Last Chance?
    ... >*cough* Dead and Buried is the first Friday, B Movie is the 2nd.... ... Oops, yes, I was getting my Fridays mixed up. ... For some reason I ...
    (uk.people.gothic)
  • RE: [PATCH 1/1] [ARM] ep93xx clockevent support
    ... On Wednesday, July 22, 2009 2:26 AM, Russell King wrote: ... Oops... ... Please follow Russell's suggestions where they differ from mine. ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)