[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170729.112606.1858437006274122944.davem@davemloft.net>
Date: Sat, 29 Jul 2017 11:26:06 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, andreyknvl@...gle.com, jiri@...nulli.us
Subject: Re: [Patch net v2] team: use a larger struct for mac address
From: Cong Wang <xiyou.wangcong@...il.com>
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 using a larger address storage like bonding.
>
> Reported-by: Andrey Konovalov <andreyknvl@...gle.com>
> Cc: Jiri Pirko <jiri@...nulli.us>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied.
Powered by blists - more mailing lists