panic on sparc32 in tty_wakeup on shutdown
PATCH 1/1 panic on sparc32 in tty_wakeup on shutdown
Hi,
The panic in tty_wakeup panic on shutdown, triggered on sparc32 with pristine kernels, is not present in Debian kernels. It turns out that the following patch (which I was not aware of) has been used in Debian for a while now to take care of that problem:
---------------------------cut here--------------------------------
drivers/serial/serial_core.c +2 -1
@@ -108,7 +108,8 @@static void uart_tasklet_action (unsigned long data) {struct uart_state *state = (struct uart_state *)data; -tty_wakeup (state->info->tty); +if (state->info->tty) +tty_wakeup (state->info->tty); } static inline void
---------------------------cut here--------------------------------
As I understand it, the cause of the problem is a race condition, with state->info->tty being destroyed somewhere between scheduling of the tasklet and its execution. This patch is not a proper solution, as it does not eliminate the source of the race, but hopefully it can provide the insight needed to fix the problem.
Best regards,
Jurij Smakov [email protected]
Key: http://www.wooyd.org/pgpkey/ KeyID: C99E03CC