]> git.proxmox.com Git - mirror_ubuntu-hirsute-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)
commit206e732323c2a8e6d11f4125a62c27e60a50a850
treec3b6f4ee70a80f7d9c4d5ff8e7e548e46260679f
parent2570284060b48f3f79d8f1a2698792f36c385e9a
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 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>
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