[RFC PATCH 0/6] hv_sock: Hardening changes

From: Andrea Parri (Microsoft)
Date: Wed Apr 13 2022 - 16:48:03 EST


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(-)

--
2.25.1