[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <18db51b6-5685-40bf-bf8b-1e787834fdf5@linux.intel.com>
Date: Wed, 14 May 2025 14:39:21 +0800
From: Baolu Lu <baolu.lu@...ux.intel.com>
To: Aditya Garg <gargaditya08@...e.com>
Cc: "iommu@...ts.linux.dev" <iommu@...ts.linux.dev>,
"joro@...tes.org" <joro@...tes.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/5] iommu/vt-d: Restore WO permissions on second-level
paging entries
On 5/14/25 13:52, Aditya Garg wrote:
> Hi
>
> Since the original patch which this patch aims to revert fixed CVE-2021-47035, I'd
> like to know how is that managed now.
Modern IOMMU hardware supports multiple formats of page tables. Some of
them support write-only permission, but others do not due to
compatibility with the CPU page table. That's the reason why the
previous commit removed write-only permission to make it consistent.
Nowadays, we have renewed iommu domain allocation interface which takes
a device pointer and allocation flags. So, if the upper layers, for
example, VFIO or IOMMUFD, want the iommu driver to enforce write-only
protection, they should add an allocation flag for this explicitly.
Otherwise, the IOMMU driver will treat DMA_FROM_DEVICE as a hint, not an
enforcement.
Thanks,
baolu
Powered by blists - more mailing lists