From: Andrew Morton <akpm@linux-foundation.org>
To: Jay Vosburgh <fubar@us.ibm.com>
Cc: olel@ans.pl, davem@davemloft.net, jeff@garzik.org,
shemminger@linux-foundation.org, netdev@vger.kernel.org
Subject: Re: [patch for 2.6.24? 1/1] bonding: locking fix
Date: Thu, 17 Jan 2008 15:42:43 -0800 [thread overview]
Message-ID: <20080117154243.9ee4265c.akpm@linux-foundation.org> (raw)
In-Reply-To: <16796.1200351673@death>
On Mon, 14 Jan 2008 15:01:13 -0800
Jay Vosburgh <fubar@us.ibm.com> wrote:
> Andrew Morton <akpm@linux-foundation.org> wrote:
> [...]
> >That's bond_lock.
> >
> >This patch (below) addresses what appears to me to be an obvious
> >imbalance in rtnl_lock.
> >
> >I don't care how it's fixed, really. Someone please fix it?
>
> I posted a correct patch for this a few days ago:
>
> http://marc.info/?l=linux-netdev&m=119975746803886&w=2
>
> The correct fix requires more than simply removing the rtnl calls.
>
> I've got a few other patches in the pipeline, so I'm planning to
> repost the set the above patch was a part of plus a few others, most
> likely tomorrow.
Can we get this bug fixed please? Today? It has been known about for more
than two months.
I can only assume that people don't use this feature much because this bug
will kill your kernel, every time.
Applying this:
--- a/drivers/net/bonding/bond_sysfs.c~bonding-locking-fix
+++ a/drivers/net/bonding/bond_sysfs.c
@@ -1111,8 +1111,6 @@ static ssize_t bonding_store_primary(str
out:
write_unlock_bh(&bond->lock);
- rtnl_unlock();
-
return count;
}
static DEVICE_ATTR(primary, S_IRUGO | S_IWUSR, bonding_show_primary, bonding_store_primary);
is better than doing nothing.
next prev parent reply other threads:[~2008-01-17 23:43 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <200801140904.m0E94vJd020425@imap1.linux-foundation.org>
[not found] ` <Pine.LNX.4.64.0801142313350.26034@bizon.gios.gov.pl>
2008-01-14 22:47 ` [patch for 2.6.24? 1/1] bonding: locking fix Andrew Morton
2008-01-14 23:01 ` Jay Vosburgh
2008-01-17 23:42 ` Andrew Morton [this message]
2008-01-18 0:26 ` Jay Vosburgh
2008-01-18 0:58 ` Krzysztof Oledzki
2008-01-18 1:45 ` Jay Vosburgh
2008-01-18 8:34 ` Krzysztof Oledzki
2008-01-18 17:32 ` Jay Vosburgh
2008-01-21 0:57 ` David Miller
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=20080117154243.9ee4265c.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=davem@davemloft.net \
--cc=fubar@us.ibm.com \
--cc=jeff@garzik.org \
--cc=netdev@vger.kernel.org \
--cc=olel@ans.pl \
--cc=shemminger@linux-foundation.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).