diff options
author | Sowmini Varadhan <sowmini.varadhan@oracle.com> | 2015-07-20 10:54:50 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-21 10:12:34 +0300 |
commit | 7177a3b037c7569c137c2703efe8187fdc4352b8 (patch) | |
tree | 6a9097a66c8a466ec368117024e7c00f73b26362 /drivers/net/vxlan.c | |
parent | 685a015e44dcd4db50ada60a9a2806659c165d9e (diff) | |
download | linux-7177a3b037c7569c137c2703efe8187fdc4352b8.tar.xz |
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 in the most non-intrusive way.
Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Reviewed-by: Jiri Pirko <jiri@resnulli.us>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vxlan.c')
-rw-r--r-- | drivers/net/vxlan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c index 34c519eb1db5..ec86a11743fd 100644 --- a/drivers/net/vxlan.c +++ b/drivers/net/vxlan.c @@ -106,9 +106,9 @@ struct vxlan_fdb { unsigned long updated; /* jiffies */ unsigned long used; struct list_head remotes; + u8 eth_addr[ETH_ALEN]; u16 state; /* see ndm_state */ u8 flags; /* see ndm_flags */ - u8 eth_addr[ETH_ALEN]; }; /* Pseudo network device */ |