Re: [dpdk-dev] [PATCH] vhost: fix potential buffer overflow

2021-03-24 Thread Liu, Yong
> -Original Message- > From: Maxime Coquelin > Sent: Wednesday, March 24, 2021 4:56 PM > To: Liu, Yong ; Xia, Chenbo > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: Re: [PATCH] vhost: fix potential buffer overflow > > Hi Marvin, > > On 2/26/21 8:33 AM, Marvin Liu wrote: > > In vhost da

Re: [dpdk-dev] [PATCH] vhost: fix potential buffer overflow

2021-03-24 Thread Maxime Coquelin
Hi Marvin, On 2/26/21 8:33 AM, Marvin Liu wrote: > In vhost datapath, descriptor's length are mostly used in two coherent > operations. First step is used for address translation, second step is > used for memory transaction from guest to host. But the iterval between > two steps will give a windo

[dpdk-dev] [PATCH] vhost: fix potential buffer overflow

2021-02-25 Thread Marvin Liu
In vhost datapath, descriptor's length are mostly used in two coherent operations. First step is used for address translation, second step is used for memory transaction from guest to host. But the iterval between two steps will give a window for malicious guest, in which can change descriptor leng