summaryrefslogtreecommitdiff
path: root/drivers/pci/pci.h
diff options
context:
space:
mode:
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>2022-04-19 15:23:21 +0300
committerWei Liu <wei.liu@kernel.org>2022-04-25 18:51:12 +0300
commitde5ddb7d44347ad8b00533c1850a4e2e636a1ce9 (patch)
treea2bbb72c0967fa69317973c503c379931b8d1ce6 /drivers/pci/pci.h
parent82cd4bacff88a11e36f143e2cb950174b09c86c3 (diff)
downloadlinux-de5ddb7d44347ad8b00533c1850a4e2e636a1ce9.tar.xz
PCI: hv: Use vmbus_requestor to generate transaction IDs for VMbus hardening
Currently, pointers to guest memory are passed to Hyper-V as transaction IDs in hv_pci. In the face of errors or malicious behavior in Hyper-V, hv_pci should not expose or trust the transaction IDs returned by Hyper-V to be valid guest memory addresses. Instead, use small integers generated by vmbus_requestor as request (transaction) IDs. Suggested-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20220419122325.10078-3-parri.andrea@gmail.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'drivers/pci/pci.h')
0 files changed, 0 insertions, 0 deletions