From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: Re: [PATCH v2 0/2] vhost: fix vhost_vq_access_ok() log check Date: Tue, 10 Apr 2018 14:40:10 +0800 Message-ID: <8642c057-e49d-d95d-19e5-6d304f20064e@redhat.com> References: <20180410052630.11270-1-stefanha@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: syzkaller-bugs@googlegroups.com, mst@redhat.com, Linus Torvalds , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org To: Stefan Hajnoczi , virtualization@lists.linux-foundation.org Return-path: In-Reply-To: <20180410052630.11270-1-stefanha@redhat.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On 2018年04月10日 13:26, Stefan Hajnoczi wrote: > 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!