Re: [PATCH] virtio-net: Fix DMA-from-the-stack in virtnet_set_mac_address()

From: David Miller
Date: Tue Dec 06 2016 - 11:39:12 EST


From: Andy Lutomirski <luto@xxxxxxxxxx>
Date: Mon, 5 Dec 2016 18:10:58 -0800

> With CONFIG_VMAP_STACK=y, virtnet_set_mac_address() can be passed a
> pointer to the stack and it will OOPS. Copy the address to the heap
> to prevent the crash.
>
> Cc: Michael S. Tsirkin <mst@xxxxxxxxxx>
> Cc: Jason Wang <jasowang@xxxxxxxxxx>
> Cc: Laura Abbott <labbott@xxxxxxxxxx>
> Reported-by: zbyszek@xxxxxxxxx
> Signed-off-by: Andy Lutomirski <luto@xxxxxxxxxx>

Applied, thanks.