]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: enfore alignment for ethernet address
authorThomas Martitz <t.martitz@avm.de>
Thu, 25 Jun 2020 12:26:03 +0000 (14:26 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 19:38:16 +0000 (12:38 -0700)
commitbc68ce8381c148761e0f2650aad1d4752ed6c434
treec3b6f4ee70a80f7d9c4d5ff8e7e548e46260679f
parentbfa1fe7acdb3ebb4c1ff7b11858e0ad5e48178ac
net: bridge: enfore alignment for ethernet address

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 02e9e8577adaa0a24af088e848d11482906a4e59 bridge: multicast to unicast

Fixes: 02e9e8577ada ("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>
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>
net/bridge/br_private.h