RE: [PATCH v3 1/3] Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening

2020-06-30 Thread Michael Kelley
From: Andres Beltran Sent: Tuesday, June 30, 2020 8:32 AM > > + > +/* > + * vmbus_next_request_id - Returns a new request id. It is also > + * the index at which the guest memory address is stored. > + * Uses a spin lock to avoid race conditions. > + * @rqstor: Pointer to the requestor struct >

[PATCH v3 1/3] Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening

2020-06-30 Thread Andres Beltran
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