[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170720.152351.756381405791784095.davem@davemloft.net>
Date: Thu, 20 Jul 2017 15:23:51 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org, dsahern@...il.com
Subject: Re: [Patch net] rtnetlink: allocate more memory for
dev_set_mac_address()
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Thu, 20 Jul 2017 11:27:57 -0700
> 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@...il.com>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied and queued up for -stable, thanks Cong.
Powered by blists - more mailing lists