Skip to content

vsock/virtio: fix null-pointer dereference and related precautions

Stefano Garzarella kvm lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2vsock/virtio: fix null-pointer dereference in virtio_transport_recv_listen()net/vmw_vsock/virtio_transport_common.c+4 -40 replies
1/2vsock/virtio: fix null-pointer dereference in virtio_transport_recv_listen()net/vmw_vsock/virtio_transport_common.c+4 -40 replies
2/2vsock/virtio: add WARN_ON check on virtio_transport_get_ops()net/vmw_vsock/virtio_transport_common.c+15 -20 replies
2/2vsock/virtio: add WARN_ON check on virtio_transport_get_ops()net/vmw_vsock/virtio_transport_common.c+15 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net 0/2] vsock/virtio: fix null-pointer dereference and related precautions

This series mainly solves a possible null-pointer dereference in virtio_transport_recv_listen() introduced with the multi-transport support [PATCH 1].

PATCH 2 adds a WARN_ON check for the same potential issue and a returned error in the virtio_transport_send_pkt_info() function to avoid crashing the kernel.

Stefano Garzarella (2):
vsock/virtio: fix null-pointer dereference in
virtio_transport_recv_listen()
vsock/virtio: add WARN_ON check on virtio_transport_get_ops()

 net/vmw_vsock/virtio_transport_common.c | 25 +++++++++++++++++++------
 1 file changed, 19 insertions(+), 6 deletions(-)
Signature · 1 line
2.23.0