[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20131114.162944.207243366387985452.davem@davemloft.net>
Date: Thu, 14 Nov 2013 16:29:44 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: nikolay@...hat.com
Cc: netdev@...r.kernel.org, fubar@...ibm.com, andy@...yhouse.net,
vfalico@...hat.com
Subject: Re: [PATCH net] bonding: fix two race conditions in
bond_store_updelay/downdelay
From: Nikolay Aleksandrov <nikolay@...hat.com>
Date: Wed, 13 Nov 2013 17:07:46 +0100
> This patch fixes two race conditions between bond_store_updelay/downdelay
> and bond_store_miimon which could lead to division by zero as miimon can
> be set to 0 while either updelay/downdelay are being set and thus miss the
> zero check in the beginning, the zero div happens because updelay/downdelay
> are stored as new_value / bond->params.miimon. Use rtnl to synchronize with
> miimon setting.
>
> CC: Jay Vosburgh <fubar@...ibm.com>
> CC: Andy Gospodarek <andy@...yhouse.net>
> CC: Veaceslav Falico <vfalico@...hat.com>
> Signed-off-by: Nikolay Aleksandrov <nikolay@...hat.com>
Applied and queued up for -stable, thanks.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists