netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: eric.dumazet@gmail.com
Cc: hans.schillstrom@ericsson.com, netdev@vger.kernel.org
Subject: Re: inet6_dump_fib lock held when returning to user space
Date: Thu, 19 Jan 2012 13:07:33 -0500 (EST)	[thread overview]
Message-ID: <20120119.130733.605355385139772621.davem@davemloft.net> (raw)
In-Reply-To: <1326976399.2249.4.camel@edumazet-HP-Compaq-6005-Pro-SFF-PC>

From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 19 Jan 2012 13:33:19 +0100

> Le jeudi 19 janvier 2012 à 11:48 +0100, Hans Schillstrom a écrit :
>> Hello
>> Have this one been seen before ?
>> It happens during a container start i.e. in a netns,
>> 
>> [   19.232941] ================================================
>> [   19.268785] [ BUG: lock held when returning to user space! ]
>> [   19.270146] 3.2.0+ #14 Tainted: G        W   
>> [   19.271217] ------------------------------------------------
>> [   19.272968] nsm/1042 is leaving the kernel with locks still held!
>> [   19.274603] 1 lock held by nsm/1042:
>> [   19.275524]  #0:  (rcu_read_lock){.+.+..}, at: [<ffffffff8136a9b2>] inet6_dump_fib+0xbd/0x34a
>> 
> 
> Yep, Dave Jones reported this some days ago
> 
> "Re: recvmsg sleeping from invalid context"
> 
> I have no idea of what happens yet.

The only way I can this happening in inet6_dump_fib() is if we somehow
sleep during fib6_dump_table(), and then return to userspace in
another task.

But that makes no sense, since in such a case we should see the
warning instead when the task schedules out, not when the
inet6_dump_fib calling task goes back to userspace.

I wonder if Dave Jones's report is even related to this one.

      reply	other threads:[~2012-01-19 18:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-19 10:48 inet6_dump_fib lock held when returning to user space Hans Schillstrom
2012-01-19 12:33 ` Eric Dumazet
2012-01-19 18:07   ` David Miller [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120119.130733.605355385139772621.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=eric.dumazet@gmail.com \
    --cc=hans.schillstrom@ericsson.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).