Skip to contentSkip to conversation

net/vxlan: Fix kernel unaligned access in __vxlan_find_mac

RFC PATCH Superseded Sowmini Varadhan 1 participant 1 message Jul 17, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 net/vxlan: Fix kernel unaligned access in __vxlan_find_mac

__vxlan_find_mac invokes ether_addr_equal on the eth_addr field, which triggers unaligned access messages, so rearrange vxlan_fdb to avoid this as non-intrusively as possible.

---
 drivers/net/vxlan.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/vxlan.c +1 -1
index 34c519e..c9790a2 100644
@@ -107,8 +107,8 @@ struct vxlan_fdb {
 	unsigned long	  used;
 	struct list_head  remotes;
 	u16		  state;	/* see ndm_state */
-	u8		  flags;	/* see ndm_flags */
 	u8		  eth_addr[ETH_ALEN];
+	u8		  flags;	/* see ndm_flags */
 };
 
 /* Pseudo network device */
Signature · 1 line
1.7.1