Re: [PATCH] tty: add lockdep annotations
From: Linus Torvalds
Date: Fri Jun 01 2012 - 14:51:31 EST
On Fri, Jun 1, 2012 at 11:17 AM, Eric Dumazet <eric.dumazet@xxxxxxxxx> wrote:
>
> About 10% of boots on my machine, and this looks like (hand written)
>
> general protection fault: 0000 [#1] SMP DEBUG_PAGEALLOC
> ...
> RIP : tty_shutdown+0x15/)x70
Ok, DEBUG_PAGEALLOC and with that offset fairly early in tty_shutdown,
it's almost certainly one of the accesses in the
tty->driver->ops->remove
chain when it does the (inlined)
tty_driver_remove_tty(tty->driver, tty);
you could check which one it is at that offset 0x15, but I think both
the ops and the driver structures should be statically allocated, so I
suspect it's the "tty" itself that is already freed.
Odd. But yes, smells very much like a refcount issue, probably due to
broken locking. Does the problem go away if you revert commits
d29f3ef39be4 ("tty_lock: Localise the lock") and 3af502b96649
("tty_lock: undo the old tty_lock use on the ctty")?
Linus
--
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/