[PATCH] net/vhost: fix null pointer dereference
Luca Boccassi
luca.boccassi at gmail.com
Fri Aug 5 12:03:52 CEST 2022
On Fri, 5 Aug 2022 at 03:22, Wenwu Ma <wenwux.ma at intel.com> wrote:
>
> Because the async member of the vhost_virtqueue struct
> can be freed in controlpath, so it should be protected
> by spinlock in datapath, or, it may cause null pointer
> dereference in the following vhost_poll_enqueue_completed().
>
> Fixes: b737fd613969 ("vhost: add unsafe async API to clear packets")
>
> Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
> ---
> lib/vhost/virtio_net.c | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
Hi,
Is this for a stable branch? If so, which one? Please use
--subject-prefix next time to clearly identify it.
Kind regards,
Luca Boccassi
More information about the stable
mailing list