lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHk-=wjjBEkOdj=C2HxjFu0zaKT46Yw52t7PyCCYFRaFdu57Sw@mail.gmail.com>
Date:   Mon, 26 Apr 2021 15:49:34 -0700
From:   Linus Torvalds <torvalds@...ux-foundation.org>
To:     Harald Arnesen <harald@...gtun.org>
Cc:     Johannes Berg <johannes@...solutions.net>,
        Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [BISECTED] 5.12 hangs at reboot

On Mon, Apr 26, 2021 at 3:18 PM Harald Arnesen <harald@...gtun.org> wrote:
>
> Photos of the screen with lockdep enabled.

Ok, so this is certainly not all of it, but the rest must have
scrolled off even the hw scroll buffer. But you've caught at least one
interesting  backtrace:

cfg80211_destroy_iface_wk() takes wiphy_lock
 -> cfg80211_destroy_ifaces()
  ->ieee80211_del_iface
    ->ieeee80211_if_remove
      ->cfg80211_unregister_wdev
        ->unregister_netdevice_queue
          ->dev_close_many
            ->__dev_close_many
              ->raw_notifier_call_chain
                ->cfg80211_netdev_notifier_call

and that wants the rtnl lock. Which it won't get, because something
else is holding on to it.

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.

<insert-shocked-pikachu face>

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

             Linus

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ