diff options
author | Andres Beltran <[email protected]> | 2020-12-08 05:53:11 +0100 |
---|---|---|
committer | Wei Liu <[email protected]> | 2021-02-05 09:55:42 +0000 |
commit | a8c3209998afb5c4941b49e35b513cea9050cb4a (patch) | |
tree | 78b3020b0631cd1ea476779988be0eacecd18d7a /tools/perf/scripts/python/syscall-counts.py | |
parent | 6ee1d745b7c9fd573fba142a2efdad76a9f1cb04 (diff) |
Drivers: hv: vmbus: Copy packets sent by Hyper-V out of the ring buffer
Pointers to ring-buffer packets sent by Hyper-V are used within the
guest VM. Hyper-V can send packets with erroneous values or modify
packet fields after they are processed by the guest. To defend
against these scenarios, return a copy of the incoming VMBus packet
after validating its length and offset fields in hv_pkt_iter_first().
In this way, the packet can no longer be modified by the host.
Signed-off-by: Andres Beltran <[email protected]>
Co-developed-by: Andrea Parri (Microsoft) <[email protected]>
Signed-off-by: Andrea Parri (Microsoft) <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: Jakub Kicinski <[email protected]>
Cc: "James E.J. Bottomley" <[email protected]>
Cc: "Martin K. Petersen" <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Michael Kelley <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Wei Liu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions