Skip to content

RFC hv_sock: Hardening changes

Andrea Parri (Microsoft) linux-hyperv lkml netdev virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hv_sock: Check hv_pkt_iter_first_raw()'s return valuenet/vmw_vsock/hyperv_transport.c+2 -04 replies
2/6hv_sock: Copy packets sent by Hyper-V out of the ring buffernet/vmw_vsock/hyperv_transport.c+7 -22 replies
3/6hv_sock: Add validation for untrusted Hyper-V valuesinclude/linux/hyperv.h net/vmw_vsock/hyperv_transport.c+14 -20 replies
4/6hv_sock: Initialize send_buf in hvs_stream_enqueue()net/vmw_vsock/hyperv_transport.c+1 -14 replies
5/6Drivers: hv: vmbus: Accept hv_sock offers in isolated guestsdrivers/hv/channel_mgmt.c include/linux/hyperv.h+13 -42 replies
6/6Drivers: hv: vmbus: Refactor the ring-buffer iterator functionsdrivers/hv/ring_buffer.c include/linux/hyperv.h+9 -375 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 0/6] hv_sock: Hardening changes

Miscellaneous changes to "harden" the hv_sock driver and enable it in isolated guests. The diff in ring_buffer.c, hyperv.h is due to a consequent refactoring/code elimination (patch #6).

Applies to v5.18-rc2.

Thanks,
Andrea

Andrea Parri (Microsoft) (6):
hv_sock: Check hv_pkt_iter_first_raw()'s return value
hv_sock: Copy packets sent by Hyper-V out of the ring buffer
hv_sock: Add validation for untrusted Hyper-V values
hv_sock: Initialize send_buf in hvs_stream_enqueue()
Drivers: hv: vmbus: Accept hv_sock offers in isolated guests
Drivers: hv: vmbus: Refactor the ring-buffer iterator functions

 drivers/hv/channel_mgmt.c        |  9 ++++--
 drivers/hv/ring_buffer.c         | 11 ++++----
 include/linux/hyperv.h           | 48 ++++++++++----------------------
 net/vmw_vsock/hyperv_transport.c | 24 ++++++++++++----
 4 files changed, 46 insertions(+), 46 deletions(-)
Signature · 1 line
2.25.1