Skip to content

hv_sock: Hardening changes

Andrea Parri (Microsoft) linux-hyperv lkml netdev 3 versions – Applied

Status from this message: Applied to hyperv-next. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest posting 2/25 patches 1 replyApplied
  2. v2 posting 1/25 patches 4 repliesSuperseded
  3. v15 patches 11 repliesSuperseded

Patches in v2 posting 2/2 Applied

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

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchMichael KelleyStefano Garzarella
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH hyperv-next v2 0/5] hv_sock: Hardening changes

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

Thanks,
Andrea

[1] https://lkml.kernel.org/r/[email protected]
[2] https://lkml.kernel.org/r/[email protected]

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(-)
Signature · 1 line
2.25.1