lkml.org 
[lkml]   [2017]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    Date
    SubjectRe: net: possible deadlock in skb_queue_tail
    On Mon, Feb 20, 2017 at 5:29 AM, Andrey Konovalov <andreyknvl@google.com> wrote:
    > other info that might help us debug this:
    >
    > Possible unsafe locking scenario:
    >
    > CPU0 CPU1
    > ---- ----
    > lock(&(&pcpu->lock)->rlock);
    > lock(&(&list->lock)->rlock#3);
    > lock(&(&pcpu->lock)->rlock);
    > lock(&(&list->lock)->rlock#3);
    >

    They are different types of sockets and different lists of skb's,
    one is netlink socket the other is udp socket, so I don't think
    we could have a deadlock in this scenario, we probably need to
    explicitly mark them as different lockdep classes.

    \
     
     \ /
      Last update: 2017-02-20 23:52    [W:6.196 / U:1.032 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site