]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sfc: don't read beyond unicast address list
authorBert Kenward <bkenward@solarflare.com>
Wed, 12 Jul 2017 16:19:41 +0000 (17:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jul 2017 05:00:08 +0000 (07:00 +0200)
commit065d0643c0d62adde224415c4aa0ca434fdd53b0
treef9912a145260a15a77c122856cc7e88ef2193a4e
parent0dc4be778d53ba5ffc2ef434f7c6eabdf509e802
sfc: don't read beyond unicast address list

[ Upstream commit c70d68150f71b84cea6997a53493e17bf18a54db ]

If we have more than 32 unicast MAC addresses assigned to an interface
we will read beyond the end of the address table in the driver when
adding filters. The next 256 entries store multicast addresses, so we
will end up attempting to insert duplicate filters, which is mostly
harmless. If we add more than 288 unicast addresses we will then read
past the multicast address table, which is likely to be more exciting.

Fixes: 12fb0da45c9a ("sfc: clean fallbacks between promisc/normal in efx_ef10_filter_sync_rx_mode")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/ef10.c