Re: out-of-bounds access with virtio-net

2017-07-19 Thread David Ahern
On 7/19/17 12:23 PM, Cong Wang wrote: > On Wed, Jul 19, 2017 at 9:59 AM, David Ahern wrote: >> Changing the mac address on a virtio-net based nic is triggering an >> out-of-bounds access. Nothing fancy with the command: >> >> ip li set dev eth2 addr 01:02:34:56:78:9a >> >>

Re: out-of-bounds access with virtio-net

2017-07-19 Thread Cong Wang
On Wed, Jul 19, 2017 at 9:59 AM, David Ahern wrote: > Changing the mac address on a virtio-net based nic is triggering an > out-of-bounds access. Nothing fancy with the command: > > ip li set dev eth2 addr 01:02:34:56:78:9a > > virtnet_set_mac_address is calling kmemdup for

out-of-bounds access with virtio-net

2017-07-19 Thread David Ahern
Changing the mac address on a virtio-net based nic is triggering an out-of-bounds access. Nothing fancy with the command: ip li set dev eth2 addr 01:02:34:56:78:9a virtnet_set_mac_address is calling kmemdup for sizeof sockaddr, yet only ETH_ALEN + sizeof(sa_family_t) bytes were malloc'ed. Full