Re: [PATCH] iommu/vt-d: Fix misplaced domain_attached assignment

From: Greg KH
Date: Wed Jul 23 2025 - 08:12:12 EST


On Wed, Jul 23, 2025 at 08:04:23PM +0800, Ban ZuoXiang wrote:
> Commit fb5873b779dd ("iommu/vt-d: Restore context entry setup order
> for aliased devices") was incorrectly backported: the domain_attached
> assignment was mistakenly placed in device_set_dirty_tracking()
> instead of original identity_domain_attach_dev().
>
> Fix this by moving the assignment to the correct function as in the
> original commit.
>
> Fixes: fb5873b779dd ("iommu/vt-d: Restore context entry setup order for aliased devices")
> Closes: https://lore.kernel.org/linux-iommu/721D44AF820A4FEB+722679cb-2226-4287-8835-9251ad69a1ac@xxxxxxxx/
> Cc: stable@xxxxxxxxxxxxxxx
> Reported-by: Ban ZuoXiang <bbaa@xxxxxxxx>
> Signed-off-by: Ban ZuoXiang <bbaa@xxxxxxxx>
> ---
> drivers/iommu/intel/iommu.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)

Now queued up, thanks!

greg k-h