Thread (2 messages) flat view 2 messages, 2 authors, 2016-12-07

Re: Oops with CONFIG_VMAP_STCK and bond device + virtio-net

From: Cong Wang <hidden>
Date: 2016-12-07 05:59:19
Also in: lkml, virtualization

On Mon, Dec 5, 2016 at 3:53 PM, Laura Abbott [off-list ref] wrote:
This looks like an issue with CONFIG_VMAP_STACK since bond_enslave uses
struct sockaddr from the stack and virtnet_set_mac_address calls
sg_init_one which triggers BUG_ON(!virt_addr_valid(buf));

I know there have been a lot of CONFIG_VMAP_STACK fixes around but I
didn't find this one reported yet.
Fixed by:

commit e37e2ff350a321ad9c36b588e76f34fbba305be6
Author: Andy Lutomirski [off-list ref]
Date:   Mon Dec 5 18:10:58 2016 -0800

    virtio-net: Fix DMA-from-the-stack in virtnet_set_mac_address()
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help