[git pull] IOMMU Fix for Linux v5.11-rc6

From: Joerg Roedel
Date: Fri Feb 05 2021 - 18:24:50 EST


Hi Linus,

The following changes since commit 1048ba83fb1c00cd24172e23e8263972f6b5d9ac:

Linux 5.11-rc6 (2021-01-31 13:50:09 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v5.11-rc6

for you to fetch changes up to 4c9fb5d9140802db4db9f66c23887f43174e113c:

iommu: Check dev->iommu in dev_iommu_priv_get() before dereferencing it (2021-02-02 15:57:23 +0100)

----------------------------------------------------------------
IOMMU Fix for Linux v5.11-rc6

- Fix a possible NULL-ptr dereference in dev_iommu_priv_get()
which is too easy to accidentially trigger from IOMMU drivers.
In the current case the AMD IOMMU driver triggered it on some
machines in the IO-page-fault path, so fix it once and for
all.

----------------------------------------------------------------
Joerg Roedel (1):
iommu: Check dev->iommu in dev_iommu_priv_get() before dereferencing it

include/linux/iommu.h | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Please pull.

Thanks,

Joerg