[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <nswdjfxtogobamp7bqktyrihl4w6xs2jnvxjofdvqoxqtvjp5s@vrsdmzuvsvx4>
Date: Tue, 29 Jul 2025 02:11:39 -0700
From: Breno Leitao <leitao@...ian.org>
To: Jason Wang <jasowang@...hat.com>
Cc: mst@...hat.com, eperezma@...hat.com, kvm@...r.kernel.org,
virtualization@...ts.linux.dev, netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
sgarzare@...hat.com, will@...nel.org, JAEHOON KIM <jhkim@...ux.ibm.com>
Subject: Re: [PATCH] vhost: initialize vq->nheads properly
On Tue, Jul 29, 2025 at 03:39:16PM +0800, Jason Wang wrote:
> Commit 7918bb2d19c9 ("vhost: basic in order support") introduces
> vq->nheads to store the number of batched used buffers per used elem
> but it forgets to initialize the vq->nheads to NULL in
> vhost_dev_init() this will cause kfree() that would try to free it
> without be allocated if SET_OWNER is not called.
>
> Reported-by: JAEHOON KIM <jhkim@...ux.ibm.com>
> Reported-by: Breno Leitao <leitao@...ian.org>
> Fixes: 7918bb2d19c9 ("vhost: basic in order support")
> Signed-off-by: Jason Wang <jasowang@...hat.com>
Tested-by: Breno Leitao <leitao@...ian.org>
Powered by blists - more mailing lists