diff options
author | Andres Beltran <lkmlabelt@gmail.com> | 2020-11-09 13:04:00 +0300 |
---|---|---|
committer | Wei Liu <wei.liu@kernel.org> | 2020-11-17 13:51:06 +0300 |
commit | e8b7db38449ac5b950a3f00519171c4be3e226ff (patch) | |
tree | 257903993b84723c09238c6963d022a9d857520f /.cocciconfig | |
parent | 09162bc32c880a791c6c0668ce0745cf7958f576 (diff) | |
download | linux-e8b7db38449ac5b950a3f00519171c4be3e226ff.tar.xz |
Drivers: hv: vmbus: Add 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.
Signed-off-by: Andres Beltran <lkmlabelt@gmail.com>
Co-developed-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
Link: https://lore.kernel.org/r/20201109100402.8946-2-parri.andrea@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions