Re: [dpdk-dev] [PATCH] vhost: fix validate_msg_fds if VHOST_USER_VRING_NOFD_MASK set.

2019-11-13 Thread 王志克
Coquelin; Zhike Wang Cc: dev; secur...@dpdk.org; 王志克; sta...@dpdk.org Subject: Re: [dpdk-dev] [PATCH] vhost: fix validate_msg_fds if VHOST_USER_VRING_NOFD_MASK set. On Wed, Nov 13, 2019 at 10:53 AM Maxime Coquelin wrote: > > Hi Zhike, > > On 11/13/19 6:03 AM, Zhike Wang wro

Re: [dpdk-dev] [PATCH] vhost: fix validate_msg_fds if VHOST_USER_VRING_NOFD_MASK set.

2019-11-13 Thread David Marchand
On Wed, Nov 13, 2019 at 10:53 AM Maxime Coquelin wrote: > > Hi Zhike, > > On 11/13/19 6:03 AM, Zhike Wang wrote: > > When VHOST_USER_VRING_NOFD_MASK is set, the fd_num is 0. > > > > Fixes: bf47225 ("vhost: fix possible denial of service by leaking FDs") > > Signed-off-by: Zhike Wang > > --- > >

Re: [dpdk-dev] [PATCH] vhost: fix validate_msg_fds if VHOST_USER_VRING_NOFD_MASK set.

2019-11-13 Thread Maxime Coquelin
Hi Zhike, On 11/13/19 6:03 AM, Zhike Wang wrote: > When VHOST_USER_VRING_NOFD_MASK is set, the fd_num is 0. > > Fixes: bf47225 ("vhost: fix possible denial of service by leaking FDs") > Signed-off-by: Zhike Wang > --- > lib/librte_vhost/vhost_user.c | 13 ++--- > 1 file changed, 10 inse

[dpdk-dev] [PATCH] vhost: fix validate_msg_fds if VHOST_USER_VRING_NOFD_MASK set.

2019-11-12 Thread Zhike Wang
When VHOST_USER_VRING_NOFD_MASK is set, the fd_num is 0. Fixes: bf47225 ("vhost: fix possible denial of service by leaking FDs") Signed-off-by: Zhike Wang --- lib/librte_vhost/vhost_user.c | 13 ++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/librte_vhost/vhost_u