Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1538981

Re: net: deadlock on genl_mutex

From Cong Wang <xiyou.wangcong@gmail.com>
Newsgroups linux.kernel
Subject Re: net: deadlock on genl_mutex
Date 2016-12-09 01:40 +0100
Message-ID <sMhod-4BC-7@gated-at.bofh.it> (permalink)
References <sHOE9-Y9-5@gated-at.bofh.it> <sHONQ-11D-13@gated-at.bofh.it> <sIJCp-4cE-5@gated-at.bofh.it> <sM9Am-8ha-27@gated-at.bofh.it> <sMawp-pF-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Dec 8, 2016 at 9:16 AM, Dmitry Vyukov <dvyukov@google.com> wrote:
> Chain exists of:
>  Possible unsafe locking scenario:
>
>        CPU0                    CPU1
>        ----                    ----
>   lock(genl_mutex);
>                                lock(nlk->cb_mutex);
>                                lock(genl_mutex);
>   lock(rtnl_mutex);
>
>  *** DEADLOCK ***

This one looks legitimate, because nlk->cb_mutex could be rtnl_mutex.
Let me think about it.

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

net: deadlock on genl_mutex Dmitry Vyukov <dvyukov@google.com> - 2016-11-26 18:10 +0100
  Re: net: deadlock on genl_mutex Eric Dumazet <edumazet@google.com> - 2016-11-26 18:20 +0100
    Re: net: deadlock on genl_mutex subashab@codeaurora.org - 2016-11-29 07:00 +0100
      Re: net: deadlock on genl_mutex Eric Dumazet <eric.dumazet@gmail.com> - 2016-11-29 07:10 +0100
      Re: net: deadlock on genl_mutex Dmitry Vyukov <dvyukov@google.com> - 2016-12-08 17:20 +0100
        Re: net: deadlock on genl_mutex Dmitry Vyukov <dvyukov@google.com> - 2016-12-08 18:20 +0100
          Re: net: deadlock on genl_mutex Dmitry Vyukov <dvyukov@google.com> - 2016-12-08 19:10 +0100
            Re: net: deadlock on genl_mutex Cong Wang <xiyou.wangcong@gmail.com> - 2016-12-09 01:20 +0100
          Re: net: deadlock on genl_mutex Cong Wang <xiyou.wangcong@gmail.com> - 2016-12-09 01:40 +0100
            Re: net: deadlock on genl_mutex Cong Wang <xiyou.wangcong@gmail.com> - 2016-12-09 06:10 +0100
              Re: net: deadlock on genl_mutex Dmitry Vyukov <dvyukov@google.com> - 2016-12-11 10:50 +0100

csiph-web