From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net] vhost: reset metadata cache when initializing new IOTLB Date: Wed, 08 Aug 2018 09:45:21 -0700 (PDT) Message-ID: <20180808.094521.741471461713200.davem@davemloft.net> References: <1533699784-4950-1-git-send-email-jasowang@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: mst@redhat.com, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: jasowang@redhat.com Return-path: In-Reply-To: <1533699784-4950-1-git-send-email-jasowang@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org From: Jason Wang Date: Wed, 8 Aug 2018 11:43:04 +0800 > We need to reset metadata cache during new IOTLB initialization, > otherwise the stale pointers to previous IOTLB may be still accessed > which will lead a use after free. > > Reported-by: syzbot+c51e6736a1bf614b3272@syzkaller.appspotmail.com > Fixes: f88949138058 ("vhost: introduce O(1) vq metadata cache") > Signed-off-by: Jason Wang Applied and queued up for -stable, thanks Jason.