All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julian Anastasov <ja@ssi.bg>
To: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Anand Gurram <anandarao.gurram@gmail.com>,
	NETDEV <netdev@vger.kernel.org>
Subject: Re: unregister_netdevice warnings when deleting netns
Date: Tue, 29 Sep 2015 09:03:40 +0300 (EEST)	[thread overview]
Message-ID: <alpine.LFD.2.11.1509290858500.2072@ja.home.ssi.bg> (raw)
In-Reply-To: <8737xy5is2.fsf@x220.int.ebiederm.org>


	Hello,

On Mon, 28 Sep 2015, Eric W. Biederman wrote:

> Julian Anastasov <ja@ssi.bg> writes:
> 
> > On Mon, 28 Sep 2015, Anand Gurram wrote:
> >
> >> I am currently using kernel version 3.16.7 on a linux switch.
> >> While creating and destroying network namespaces I am observing below logs
> >> on the console
> >> "unregister_netdevice: waiting for lo to become free. Usage count = 1"
> >> 
> >> Can you please suggest and provide instructions on how to debug this issue.
> >> If any fix already available can you please point me to the link.
> >
> > 	There are two commits from Linux 4.2 that may help:
> >
> > commit e9e4dd3267d0 ("net: do not process device backlog during unregistration")
> > commit 2c17d27c36dc ("net: call rcu_read_lock early in process_backlog")
> >
> If that message repeats indefinitely it means there is a leaked
> reference to the network namespaces lo device.
> 
> If the message just spits out a few times and then goes away it simply
> means that something is taking a while to cleanup and drop it's
> reference.
> 
> This is slightly complicated by the fact that it is not uncommon when a
> network device goes away to redirect all references to itself to the lo
> device.

	Yes, there is a little chance with forwarding disabled,
i.e. when presence of "ipv4: Avoid crashing in ip_error" does
not matter, flying packet to leave new reference somewhere,
without crashing. But it may be another problem, of course.

Regards

--
Julian Anastasov <ja@ssi.bg>

  reply	other threads:[~2015-09-29  6:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-28  7:31 unregister_netdevice warnings when deleting netns Anand Gurram
2015-09-28 19:12 ` Julian Anastasov
2015-09-28 21:35   ` Eric W. Biederman
2015-09-29  6:03     ` Julian Anastasov [this message]
2015-09-29  6:29     ` Anand Gurram
2015-09-29  6:44       ` Eric W. Biederman
2015-09-29 16:12         ` Anand Gurram
2015-11-06  7:42           ` William Dauchy
2015-09-29  6:25   ` Anand Gurram

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=alpine.LFD.2.11.1509290858500.2072@ja.home.ssi.bg \
    --to=ja@ssi.bg \
    --cc=anandarao.gurram@gmail.com \
    --cc=ebiederm@xmission.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.