From: David Miller <davem@davemloft.net>
To: nhorman@tuxdriver.com
Cc: netdev@vger.kernel.org, fubar@us.ibm.com, andy@greyhouse.net,
wudxw@linux.vnet.ibm.com
Subject: Re: [PATCH] bonding: Fix broken promiscuity reference counting issue
Date: Mon, 30 Sep 2013 22:12:22 -0700 (PDT) [thread overview]
Message-ID: <20130930.221222.2094260050523903528.davem@davemloft.net> (raw)
In-Reply-To: <1380298935-32140-1-git-send-email-nhorman@tuxdriver.com>
From: Neil Horman <nhorman@tuxdriver.com>
Date: Fri, 27 Sep 2013 12:22:15 -0400
> Recently grabbed this report:
> https://bugzilla.redhat.com/show_bug.cgi?id=1005567
>
> Of an issue in which the bonding driver, with an attached vlan encountered the
> following errors when bond0 was taken down and back up:
>
> dummy1: promiscuity touches roof, set promiscuity failed. promiscuity feature of
> device might be broken.
>
> The error occurs because, during __bond_release_one, if we release our last
> slave, we take on a random mac address and issue a NETDEV_CHANGEADDR
> notification. With an attached vlan, the vlan may see that the vlan and bond
> mac address were in sync, but no longer are. This triggers a call to dev_uc_add
> and dev_set_rx_mode, which enables IFF_PROMISC on the bond device. Then, when
> we complete __bond_release_one, we use the current state of the bond flags to
> determine if we should decrement the promiscuity of the releasing slave. But
> since the bond changed promiscuity state during the release operation, we
> incorrectly decrement the slave promisc count when it wasn't in promiscuous mode
> to begin with, causing the above error
>
> Fix is pretty simple, just cache the bonding flags at the start of the function
> and use those when determining the need to set promiscuity.
>
> This is also needed for the ALLMULTI flag
>
> CC: Jay Vosburgh <fubar@us.ibm.com>
> CC: Andy Gospodarek <andy@greyhouse.net>
> CC: Mark Wu <wudxw@linux.vnet.ibm.com>
> CC: "David S. Miller" <davem@davemloft.net>
> Reported-by: Mark Wu <wudxw@linux.vnet.ibm.com>
Applied.
prev parent reply other threads:[~2013-10-01 5:05 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-27 16:22 [PATCH] bonding: Fix broken promiscuity reference counting issue Neil Horman
2013-10-01 5:12 ` 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=20130930.221222.2094260050523903528.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=andy@greyhouse.net \
--cc=fubar@us.ibm.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
--cc=wudxw@linux.vnet.ibm.com \
/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).