Re: [BISECTED] 5.12 hangs at reboot

From: Herbert Xu
Date: Tue Apr 27 2021 - 03:43:38 EST


Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> At a guess, there is some other sequence that takes the rtnl lock, and
> then takes the wiphy_lock inside of it, and we have a ABBA deadlock.

The most common cause of these lockups is a stray reference on
some kind of a network object, e.g., a socket or some such. This
then causes the underlying network device to be reference counted
and triggers a lock-up if that network device needs to be removed.

> I _hate_ that stupid rtnl lock. It's come up before. Several times.
> It's probably the most broken lock in the kernel.

Yes, it's the networking equivalent of the BKL.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt