From: Olivier Matz Subject: Re: [PATCH] net/virtio: Fix crash in virtio_dev_free_mbufs Date: Mon, 5 Feb 2018 09:17:22 +0100 Message-ID: <20180205081722.dcgygxghtysyqavi@platinum> References: <20180203145523.28013-1-dharton@cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: yliu@fridaylinux.org, maxime.coquelin@redhat.com, tiwei.bie@intel.com, dev@dpdk.org To: David C Harton Return-path: Received: from mail.droids-corp.org (zoll.droids-corp.org [94.23.50.67]) by dpdk.org (Postfix) with ESMTP id 0F2AF1B2DC for ; Mon, 5 Feb 2018 09:17:33 +0100 (CET) Content-Disposition: inline In-Reply-To: <20180203145523.28013-1-dharton@cisco.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Sat, Feb 03, 2018 at 09:55:23AM -0500, David C Harton wrote: > virtio_dev_free_mbufs was recently modified to free the > virtqueues but failed to check whether the array was > allocated. Added a check to ensure vqs was non-null. > > Fixes: bdb32afbb610 ("net/virtio: rationalize queue flushing") > Cc: olivier.matz@6wind.com > > Signed-off-by: David C Harton > --- Reviewed-by: Olivier Matz Thank you for this fix. Out of curiosity, did you see the problem by code review or is there an easy way to reproduce the crash?