iommu/vt-d: Enforce PASID devTLB field mask
authorLiu Yi L <yi.l.liu@intel.com>
Fri, 24 Jul 2020 01:49:14 +0000 (09:49 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 07:48:21 +0000 (09:48 +0200)
commit40f782ead6b1d0bcebff304a6a55d10d7ebcb275
treed49fefd13131a37f2ddf05730e9453db6fd60422
parent6b3916435f76fd092e0a14dfc968a7ed45e6e9d5
iommu/vt-d: Enforce PASID devTLB field mask

[ Upstream commit 5f77d6ca5ca74e4b4a5e2e010f7ff50c45dea326 ]

Set proper masks to avoid invalid input spillover to reserved bits.

Signed-off-by: Liu Yi L <yi.l.liu@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Link: https://lore.kernel.org/r/20200724014925.15523-2-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/intel-iommu.h