[PATCH v2 0/5] hv_sock: Hardening changes

From: Andrea Parri (Microsoft)
Date: Wed Apr 27 2022 - 09:13:50 EST


Changes since v1[1]:
- Expand commit message of patch #2
- Coding style changes

Changes since RFC[2]:
- Massage changelogs, fix typo
- Drop "hv_sock: Initialize send_buf in hvs_stream_enqueue()"
- Remove style/newline change
- Remove/"inline" hv_pkt_iter_first_raw()

Applies to v5.18-rc4.

Thanks,
Andrea

[1] https://lkml.kernel.org/r/20220420200720.434717-1-parri.andrea@xxxxxxxxx
[2] https://lkml.kernel.org/r/20220413204742.5539-1-parri.andrea@xxxxxxxxx

Andrea Parri (Microsoft) (5):
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
Drivers: hv: vmbus: Accept hv_sock offers in isolated guests
Drivers: hv: vmbus: Refactor the ring-buffer iterator functions

drivers/hv/channel_mgmt.c | 8 ++++--
drivers/hv/ring_buffer.c | 32 ++++++---------------
include/linux/hyperv.h | 48 ++++++++++----------------------
net/vmw_vsock/hyperv_transport.c | 21 +++++++++++---
4 files changed, 47 insertions(+), 62 deletions(-)

--
2.25.1