Re: [PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check

2018-04-11 Thread David Miller
From: "Michael S. Tsirkin" 
Date: Wed, 11 Apr 2018 16:24:02 +0300

> On Wed, Apr 11, 2018 at 10:35:39AM +0800, Stefan Hajnoczi wrote:
>> v3:
>>  * Rebased onto net/master and resolved conflict [DaveM]
>> 
>> v2:
>>  * Rewrote the conditional to make the vq access check clearer [Linus]
>>  * Added Patch 2 to make the return type consistent and harder to misuse 
>> [Linus]
>> 
>> The first patch fixes the vhost virtqueue access check which was recently
>> broken.  The second patch replaces the int return type with bool to prevent
>> future bugs.
> 
> Acked-by: Michael S. Tsirkin 
> 
> We need the 1st one on stable I think.

Series applied and patch #1 queued up for -stable.


Re: [PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check

2018-04-11 Thread Michael S. Tsirkin
On Wed, Apr 11, 2018 at 10:35:39AM +0800, Stefan Hajnoczi wrote:
> v3:
>  * Rebased onto net/master and resolved conflict [DaveM]
> 
> v2:
>  * Rewrote the conditional to make the vq access check clearer [Linus]
>  * Added Patch 2 to make the return type consistent and harder to misuse 
> [Linus]
> 
> The first patch fixes the vhost virtqueue access check which was recently
> broken.  The second patch replaces the int return type with bool to prevent
> future bugs.

Acked-by: Michael S. Tsirkin 

We need the 1st one on stable I think.


> Stefan Hajnoczi (2):
>   vhost: fix vhost_vq_access_ok() log check
>   vhost: return bool from *_access_ok() functions
> 
>  drivers/vhost/vhost.h |  4 +--
>  drivers/vhost/vhost.c | 70 
> ++-
>  2 files changed, 38 insertions(+), 36 deletions(-)
> 
> -- 
> 2.14.3


Re: [PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check

2018-04-10 Thread Jason Wang



On 2018年04月11日 10:35, Stefan Hajnoczi wrote:

v3:
  * Rebased onto net/master and resolved conflict [DaveM]

v2:
  * Rewrote the conditional to make the vq access check clearer [Linus]
  * Added Patch 2 to make the return type consistent and harder to misuse 
[Linus]

The first patch fixes the vhost virtqueue access check which was recently
broken.  The second patch replaces the int return type with bool to prevent
future bugs.

Stefan Hajnoczi (2):
   vhost: fix vhost_vq_access_ok() log check
   vhost: return bool from *_access_ok() functions

  drivers/vhost/vhost.h |  4 +--
  drivers/vhost/vhost.c | 70 ++-
  2 files changed, 38 insertions(+), 36 deletions(-)



Acked-by: Jason Wang 

Thanks


[PATCH v3 0/2] vhost: fix vhost_vq_access_ok() log check

2018-04-10 Thread Stefan Hajnoczi
v3:
 * Rebased onto net/master and resolved conflict [DaveM]

v2:
 * Rewrote the conditional to make the vq access check clearer [Linus]
 * Added Patch 2 to make the return type consistent and harder to misuse [Linus]

The first patch fixes the vhost virtqueue access check which was recently
broken.  The second patch replaces the int return type with bool to prevent
future bugs.

Stefan Hajnoczi (2):
  vhost: fix vhost_vq_access_ok() log check
  vhost: return bool from *_access_ok() functions

 drivers/vhost/vhost.h |  4 +--
 drivers/vhost/vhost.c | 70 ++-
 2 files changed, 38 insertions(+), 36 deletions(-)

-- 
2.14.3