net: bridge: enfore alignment for ethernet address
authorThomas Martitz <t.martitz@avm.de>
Thu, 25 Jun 2020 12:26:03 +0000 (14:26 +0200)
committerSasha Levin <sashal@kernel.org>
Tue, 30 Jun 2020 19:36:44 +0000 (15:36 -0400)
commitf32325b100eaf9d13063b193ca326ba4adf8310f
tree6850a50c594a1669cd7b0809f865ad7f4c2151bc
parent57a976e676e1caff0614089fd9a61b3c111bd3c6
net: bridge: enfore alignment for ethernet address

[ Upstream commit db7202dec92e6caa2706c21d6fc359af318bde2e ]

The eth_addr member is passed to ether_addr functions that require
2-byte alignment, therefore the member must be properly aligned
to avoid unaligned accesses.

The problem is in place since the initial merge of multicast to unicast:
commit 6db6f0eae6052b70885562e1733896647ec1d807 bridge: multicast to unicast

Fixes: 6db6f0eae605 ("bridge: multicast to unicast")
Cc: Roopa Prabhu <roopa@cumulusnetworks.com>
Cc: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Felix Fietkau <nbd@nbd.name>
Cc: stable@vger.kernel.org
Signed-off-by: Thomas Martitz <t.martitz@avm.de>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bridge/br_private.h