Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Jason Wang
On 2018年03月08日 23:50, Alexander Potapenko wrote: On Thu, Mar 8, 2018 at 4:45 PM, Eric Dumazet wrote: On 03/08/2018 07:20 AM, Alexander Potapenko wrote: On Thu, Mar 8, 2018 at 4:15 PM, Eric Dumazet wrote: On 03/08/2018 05:37 AM, Alexander Potapenko wrote: KMSAN reported a use of uninit mem

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Jason Wang
On 2018年03月09日 11:29, Michael S. Tsirkin wrote: On Fri, Mar 09, 2018 at 10:30:17AM +0800, Jason Wang wrote: On 2018年03月09日 00:00, Michael S. Tsirkin wrote: On Thu, Mar 08, 2018 at 04:55:39PM +0100, Alexander Potapenko wrote: On Thu, Mar 8, 2018 at 4:33 PM, Michael S. Tsirkin wrote: On Thu

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Michael S. Tsirkin
On Fri, Mar 09, 2018 at 10:30:17AM +0800, Jason Wang wrote: > > > On 2018年03月09日 00:00, Michael S. Tsirkin wrote: > > On Thu, Mar 08, 2018 at 04:55:39PM +0100, Alexander Potapenko wrote: > > > On Thu, Mar 8, 2018 at 4:33 PM, Michael S. Tsirkin > > > wrote: > > > > On Thu, Mar 08, 2018 at 02:37:

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Jason Wang
On 2018年03月09日 00:00, Michael S. Tsirkin wrote: On Thu, Mar 08, 2018 at 04:55:39PM +0100, Alexander Potapenko wrote: On Thu, Mar 8, 2018 at 4:33 PM, Michael S. Tsirkin wrote: On Thu, Mar 08, 2018 at 02:37:17PM +0100, Alexander Potapenko wrote: KMSAN reported a use of uninit memory in vhost_

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Michael S. Tsirkin
On Thu, Mar 08, 2018 at 04:55:39PM +0100, Alexander Potapenko wrote: > On Thu, Mar 8, 2018 at 4:33 PM, Michael S. Tsirkin wrote: > > On Thu, Mar 08, 2018 at 02:37:17PM +0100, Alexander Potapenko wrote: > >> KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() > >> while trying to acc

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Alexander Potapenko
On Thu, Mar 8, 2018 at 4:33 PM, Michael S. Tsirkin wrote: > On Thu, Mar 08, 2018 at 02:37:17PM +0100, Alexander Potapenko wrote: >> KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() >> while trying to access n->vqs[VHOST_NET_VQ_TX].rx_ring: >> >> ==

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Alexander Potapenko
On Thu, Mar 8, 2018 at 4:45 PM, Eric Dumazet wrote: > > > On 03/08/2018 07:20 AM, Alexander Potapenko wrote: >> >> On Thu, Mar 8, 2018 at 4:15 PM, Eric Dumazet >> wrote: >>> >>> >>> >>> On 03/08/2018 05:37 AM, Alexander Potapenko wrote: KMSAN reported a use of uninit memory in vhos

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Eric Dumazet
On 03/08/2018 07:20 AM, Alexander Potapenko wrote: On Thu, Mar 8, 2018 at 4:15 PM, Eric Dumazet wrote: On 03/08/2018 05:37 AM, Alexander Potapenko wrote: KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() while trying to access n->vqs[VHOST_NET_VQ_TX].rx_ring: ==

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Michael S. Tsirkin
On Thu, Mar 08, 2018 at 02:37:17PM +0100, Alexander Potapenko wrote: > KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() > while trying to access n->vqs[VHOST_NET_VQ_TX].rx_ring: > > == > BUG: KMSAN: use of uninitiali

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Alexander Potapenko
On Thu, Mar 8, 2018 at 4:15 PM, Eric Dumazet wrote: > > > On 03/08/2018 05:37 AM, Alexander Potapenko wrote: >> >> KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() >> while trying to access n->vqs[VHOST_NET_VQ_TX].rx_ring: >> >> >>

Re: [PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Eric Dumazet
On 03/08/2018 05:37 AM, Alexander Potapenko wrote: KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() while trying to access n->vqs[VHOST_NET_VQ_TX].rx_ring: == Signed-off-by: Alexander Potapenko Please identi

[PATCH] vhost_net: initialize rx_ring in vhost_net_open()

2018-03-08 Thread Alexander Potapenko
KMSAN reported a use of uninit memory in vhost_net_buf_unproduce() while trying to access n->vqs[VHOST_NET_VQ_TX].rx_ring: == BUG: KMSAN: use of uninitialized memory in vhost_net_buf_unproduce+0x7bb/0x9a0 drivers/vho et.c:170 CPU: 0