Re: [Patch net v2] team: use a larger struct for mac address

2017-07-29 Thread David Miller
From: Cong Wang Date: Wed, 26 Jul 2017 15:22:07 -0700 > 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

[Patch net v2] team: use a larger struct for mac address

2017-07-26 Thread Cong Wang
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