[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20160725.101942.47601532699202248.davem@davemloft.net>
Date: Mon, 25 Jul 2016 10:19:42 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: saeedm@...lanox.com
Cc: netdev@...r.kernel.org, j.vosburgh@...il.com, vfalico@...il.com,
gospo@...ulusnetworks.com, ogerlitz@...lanox.com,
jiri@...lanox.com, dledford@...hat.com, markb@...lanox.com
Subject: Re: [PATCH net V2] net/bonding: Enforce active-backup policy for
IPoIB bonds
From: Saeed Mahameed <saeedm@...lanox.com>
Date: Thu, 21 Jul 2016 11:52:55 +0300
> From: Mark Bloch <markb@...lanox.com>
>
> When using an IPoIB bond currently only active-backup mode is a valid
> use case and this commit strengthens it.
>
> Since commit 2ab82852a270 ("net/bonding: Enable bonding to enslave
> netdevices not supporting set_mac_address()") was introduced till
> 4.7-rc1, IPoIB didn't support the set_mac_address ndo, and hence the
> fail over mac policy always applied to IPoIB bonds.
>
> With the introduction of commit 492a7e67ff83 ("IB/IPoIB: Allow setting
> the device address"), that doesn't hold and practically IPoIB bonds are
> broken as of that. To fix it, lets go to fail over mac if the device
> doesn't support the ndo OR this is IPoIB device.
>
> As a by-product, this commit also prevents a stack corruption which
> occurred when trying to copy 20 bytes (IPoIB) device address
> to a sockaddr struct that has only 16 bytes of storage.
>
> Signed-off-by: Mark Bloch <markb@...lanox.com>
> Signed-off-by: Or Gerlitz <ogerlitz@...lanox.com>
> Signed-off-by: Saeed Mahameed <saeedm@...lanox.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists