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

2017-07-21 Thread kbuild test robot
Hi Cong, [auto build test WARNING on net/master] url: https://github.com/0day-ci/linux/commits/Cong-Wang/team-use-a-larger-struct-for-mac-address/20170721-203849 config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://raw.githu

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

2017-07-21 Thread kbuild test robot
Hi Cong, [auto build test ERROR on net/master] url: https://github.com/0day-ci/linux/commits/Cong-Wang/team-use-a-larger-struct-for-mac-address/20170721-203849 config: i386-randconfig-x019-07211017 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save

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

2017-07-20 Thread Cong Wang
On Thu, Jul 20, 2017 at 4:06 PM, Cong Wang wrote: > 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 l

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

2017-07-20 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 Cc: Jiri Pirko S