search for: ptikhomirov

Displaying 2 results from an estimated 2 matches for "ptikhomirov".

Did you mean: tikhomirov
2018 Dec 15
1
[PATCH] vhost: return EINVAL if iovecs size does not match the message size
From: Pavel Tikhomirov <ptikhomirov at virtuozzo.com> Date: Thu, 13 Dec 2018 17:53:50 +0300 > We've failed to copy and process vhost_iotlb_msg so let userspace at > least know about it. For instance before these patch the code below runs > without any error: ... > Signed-off-by: Pavel Tikhomirov <ptikhomirov a...
2018 Dec 13
0
[PATCH] vhost: return EINVAL if iovecs size does not match the message size
...uot;); > return 1; > } > > iov.iov_base = &msg; > iov.iov_len = sizeof(msg)-4; > > if (writev(fd, &iov,1) == -1) { > perror("writev"); > return 1; > } > > return 0; > } > > Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com> Thanks for the patch! > --- > drivers/vhost/vhost.c | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c > index 3a5f81a66d34..03014224ef13 100644 > --- a/drivers/vhost/vhost.c &g...