Files
linux/net/core
WANG Cong cda2bc91ba rtnetlink: allocate more memory for dev_set_mac_address()
[ Upstream commit 153711f942 ]

virtnet_set_mac_address() interprets mac address as struct
sockaddr, but upper layer only allocates dev->addr_len
which is ETH_ALEN + sizeof(sa_family_t) in this case.

We lack a unified definition for mac address, so just fix
the upper layer, this also allows drivers to interpret it
to struct sockaddr freely.

Reported-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-11 08:49:32 -07:00
..
2015-04-02 14:04:59 -04:00
2015-11-22 11:54:10 -05:00
2015-10-26 22:24:22 -07:00