Re: [PATCH] [PATCH] Keep offset when mapping data via SWIOTLB.

2020-12-11 Thread Konrad Rzeszutek Wilk
On Mon, Dec 07, 2020 at 01:42:04PM -0800, Jianxiong Gao wrote: > NVMe driver and other applications depend on the data offset > to operate correctly. Currently when unaligned data is mapped via > SWIOTLB, the data is mapped as slab aligned with the SWIOTLB. When > booting with --swiotlb=force

swiotlb/virtio: unchecked device dma address and length

2020-12-11 Thread Felicitas Hetzelt
Hello, we have been analyzing the Hypervisor-OS interface of Linux and discovered bugs in the swiotlb/virtio implementation that can be triggered from a malicious Hypervisor / virtual device. With SEV, the SWIOTLB implementation is forcefully enabled and would always be used. Thus, all virtio

Re: [PATCH] iommu/amd: Add sanity check for interrupt remapping table length macros

2020-12-11 Thread Will Deacon
On Thu, 10 Dec 2020 10:24:36 -0600, Suravee Suthikulpanit wrote: > Currently, macros related to the interrupt remapping table length are > defined separately. This has resulted in an oversight in which one of > the macros were missed when changing the length. To prevent this, > redefine the macros