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 11:07:36 +0000 (13:07 +0200)
commit31f383287c93399c798cd0e707c69ca4df7ea312
tree2be24a34c66db33bffe5d39b981ffc84af5bd633
parent9e31192d17a5db124d56c0234ddbea105381a7d5
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