Skip to content
Commit de1da8bc authored by Ronak Doshi's avatar Ronak Doshi Committed by Jakub Kicinski
Browse files

vmxnet3: Remove buf_info from device accessible structures

buf_info structures in RX & TX queues are private driver data that
do not need to be visible to the device.  Although there is physical
address and length in the queue descriptor that points to these
structures, their layout is not standardized, and device never looks
at them.

So lets allocate these structures in non-DMA-able memory, and fill
physical address as all-ones and length as zero in the queue
descriptor.

That should alleviate worries brought by Martin Radev in
https://lists.osuosl.org/pipermail/intel-wired-lan/Week-of-Mon-20210104/022829.html


that malicious vmxnet3 device could subvert SVM/TDX guarantees.

Signed-off-by: default avatarPetr Vandrovec <petr@vmware.com>
Signed-off-by: default avatarRonak Doshi <doshir@vmware.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6c13d75b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment