Re: [Qemu-devel] [PATCH V2 2/3] virtio: destroy region cache during reset

2017-03-13 Thread Jason Wang
On 2017年03月13日 18:20, Paolo Bonzini wrote: On 13/03/2017 11:05, Cornelia Huck wrote: On Mon, 13 Mar 2017 14:29:42 +0800 Jason Wang wrote: We don't destroy region cache during reset which can make the maps of previous driver leaked to a buggy or malicious driver that don't set vring address

Re: [Qemu-devel] [PATCH V2 2/3] virtio: destroy region cache during reset

2017-03-13 Thread Jason Wang
On 2017年03月13日 18:05, Cornelia Huck wrote: On Mon, 13 Mar 2017 14:29:42 +0800 Jason Wang wrote: We don't destroy region cache during reset which can make the maps of previous driver leaked to a buggy or malicious driver that don't set vring address before starting to use the device. Fix this

Re: [Qemu-devel] [PATCH V2 2/3] virtio: destroy region cache during reset

2017-03-13 Thread Paolo Bonzini
On 13/03/2017 11:05, Cornelia Huck wrote: > On Mon, 13 Mar 2017 14:29:42 +0800 > Jason Wang wrote: > >> We don't destroy region cache during reset which can make the maps >> of previous driver leaked to a buggy or malicious driver that don't >> set vring address before starting to use the devic

Re: [Qemu-devel] [PATCH V2 2/3] virtio: destroy region cache during reset

2017-03-13 Thread Cornelia Huck
On Mon, 13 Mar 2017 14:29:42 +0800 Jason Wang wrote: > We don't destroy region cache during reset which can make the maps > of previous driver leaked to a buggy or malicious driver that don't > set vring address before starting to use the device. Fix this by > destroy the region cache during rese