Re: DMA from stack in virtio_net and virtio_console

2016-06-25 Thread Michael S. Tsirkin
On Fri, Jun 24, 2016 at 06:45:50PM -0700, Andy Lutomirski wrote: > virtio_net does DMA on the stack when it calls sg_init_one in > virtio_set_queues, virtnet_vlan_rx_add_vid, and > virtnet_vlan_rx_kill_vid. Michael, I think these are examples we > missed somehow when fixing these issues earlier

DMA from stack in virtio_net and virtio_console

2016-06-24 Thread Andy Lutomirski
virtio_net does DMA on the stack when it calls sg_init_one in virtio_set_queues, virtnet_vlan_rx_add_vid, and virtnet_vlan_rx_kill_vid. Michael, I think these are examples we missed somehow when fixing these issues earlier on. virtio_console does it here: sg_init_one(sg, , sizeof(cpkt)); This