kernel_samsung_a53x/drivers/hv
Andres Beltran 69696d3dae Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening
[ Upstream commit e8b7db38449ac5b950a3f00519171c4be3e226ff ]

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>
Stable-dep-of: 9cae43da9867 ("hv_netvsc: Register VF in netvsc_probe if NET_DEVICE_REGISTER missed")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 23:19:52 +01:00
..
channel.c Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening 2024-11-18 23:19:52 +01:00
channel_mgmt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
connection.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_balloon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_fcopy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_kvp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_snapshot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_trace_balloon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_utils_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_utils_transport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hyperv_vmbus.h Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening 2024-11-18 23:19:52 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ring_buffer.c Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening 2024-11-18 23:19:52 +01:00
vmbus_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00