Skip to content

Drivers: hv: cleanup VMBus messages handling

Vitaly Kuznetsov linux-hyperv lkml 2 versions – Applied

Status from this message: Queued. Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 9 repliesSuperseded

Changes in v2 from the cover letter

- Check that the payload size specified by the host is <= 240 bytes
- Add Michael's R-b tags.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5Drivers: hv: copy from message page only what's neededdrivers/hv/vmbus_drv.c+8 -10 replies
2/5Drivers: hv: allocate the exact needed memory for messagesdrivers/hv/vmbus_drv.c+10 -50 replies
3/5Drivers: hv: avoid passing opaque pointer to vmbus_onmessage()drivers/hv/channel_mgmt.c drivers/hv/vmbus_drv.c include/linux/hyperv.h+4 -80 replies
4/5Drivers: hv: make sure that 'struct vmbus_channel_message_header' compiles correctlydrivers/hv/vmbus_drv.c+7 -00 replies
5/5Drivers: hv: check VMBus messages lengthsdrivers/hv/channel_mgmt.c drivers/hv/hyperv_vmbus.h drivers/hv/vmbus_drv.c+37 -240 replies

Reviews trailers per patch

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

PatchMichael Kelley
1/5R-b
2/5R-b
3/5R-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 v2 0/5] Drivers: hv: cleanup VMBus messages handling

A small cleanup series mostly aimed at sanitizing memory we pass to message handlers: not passing garbage/lefrtovers from other messages and making sure we fail early when hypervisor misbehaves.

No (real) functional change intended.

Changes since v1:
- Check that the payload size specified by the host is <= 240 bytes
- Add Michael's R-b tags.

Vitaly Kuznetsov (5):
Drivers: hv: copy from message page only what's needed
Drivers: hv: allocate the exact needed memory for messages
Drivers: hv: avoid passing opaque pointer to vmbus_onmessage()
Drivers: hv: make sure that 'struct vmbus_channel_message_header'
compiles correctly
Drivers: hv: check VMBus messages lengths

 drivers/hv/channel_mgmt.c | 61 ++++++++++++++++++++-------------------
 drivers/hv/hyperv_vmbus.h |  1 +
 drivers/hv/vmbus_drv.c    | 40 ++++++++++++++++++++-----
 include/linux/hyperv.h    |  2 +-
 4 files changed, 66 insertions(+), 38 deletions(-)
Signature · 1 line
2.25.1