commit | 996f6e12cfb33ff6c3e39b4511bb3b8bc564b342 | [log] [tgz] |
---|---|---|
author | WANG Cong <xiyou.wangcong@gmail.com> | Wed Jul 26 15:22:07 2017 -0700 |
committer | David S. Miller <davem@davemloft.net> | Sat Jul 29 11:25:05 2017 -0700 |
tree | f497109f548a6bbf976af1d0cada00b06387cd73 | |
parent | 0254e0c632bfe4a0cf610e2d90397474144f00d2 [diff] |
team: use a larger struct for mac address IPv6 tunnels use sizeof(struct in6_addr) as dev->addr_len, but in many places especially bonding, we use struct sockaddr to copy and set mac addr, this could lead to stack out-of-bounds access. Fix it by using a larger address storage like bonding. Reported-by: Andrey Konovalov <andreyknvl@google.com> Cc: Jiri Pirko <jiri@resnulli.us> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>