Drivers: hv: vmbus: vmbus_requestor data structure for VMBus hardening
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
- v6 Latest3 patches 2 repliesApplied
- v53 patches 4 repliesSuperseded
- v43 patches 10 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 3 patches | 5 replies | Superseded | |
| v2 | 3 patches | 12 replies | Superseded | |
| v1 | 3 patches | 7 replies | Superseded |
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardeningdrivers/ include/ | +191 | 2 replies | |
| 2/3 | scsi: storvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardeningdrivers/ | +74 | 0 replies | |
| 3/3 | hv_netvsc: Use vmbus_requestor to generate transaction IDs for VMBus hardeningdrivers/ drivers/ drivers/ +1 more | +80 | 0 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Haiyang Zhang | Andrea Parri | Michael Kelley | Martin K. Petersen |
|---|---|---|---|---|
| 1/3 | T-b R-b | |||
| 2/3 | T-b | R-b | A-b | |
| 3/3 | R-b | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH v6 0/3] Drivers: hv: vmbus: vmbus_requestor data structure for VMBus hardening
Currently, VMbus drivers use pointers into guest memory as request IDs for interactions with Hyper-V. To be more robust in the face of errors or malicious behavior from a compromised Hyper-V, avoid exposing guest memory addresses to Hyper-V. Also avoid Hyper-V giving back a bad request ID that is then treated as the address of a guest data structure with no validation. Instead, encapsulate these memory addresses and provide small integers as request IDs.
The first patch creates the definitions for the data structure, provides helper methods to generate new IDs and retrieve data, and allocates/frees the memory needed for vmbus_requestor.
The second and third patches make use of vmbus_requestor to send request IDs to Hyper-V in storvsc and netvsc respectively.
Thanks.
Andres Beltran
Andres Beltran (3):
Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus
hardening
scsi: storvsc: Use vmbus_requestor to generate transaction IDs for
VMBus hardening
hv_netvsc: Use vmbus_requestor to generate transaction IDs for VMBus
hardening
drivers/hv/channel.c | 170 ++++++++++++++++++++++++++++++ drivers/net/hyperv/hyperv_net.h | 13 +++ drivers/net/hyperv/netvsc.c | 79 +++++++++++--- drivers/net/hyperv/rndis_filter.c | 1 + drivers/scsi/storvsc_drv.c | 85 +++++++++++++-- include/linux/hyperv.h | 22 ++++ 6 files changed, 345 insertions(+), 25 deletions(-)
Signature · 1 line
2.25.1