Re: [PATCH v5 0/8] Fix stale IOTLB entries for kernel address space
From: Dave Hansen
Date: Wed Oct 08 2025 - 15:43:03 EST
I wondered why no mm folks were commenting on this. linux-mm@ was cc'd,
but the _people_ on cc seem to have been almost all IOMMU and x86 folks.
so I added a few mm folks...
On 9/25/25 13:24, Dave Hansen wrote:
> On 9/18/25 22:39, Lu Baolu wrote:
>> This solution introduces a deferred freeing mechanism for kernel page
>> table pages, which provides a safe window to notify the IOMMU to
>> invalidate its caches before the page is reused.
>
> I think all the activity has died down and I everyone seems happy enough
> with how this looks. Right?
>
> So is this something we should prod Andrew to take through the mm tree,
> or is it x86-specific enough it should go through tip?
Hi Folks! We've got a bug fix here that has impact on x86, mm, and IOMMU
code. I know I've talked with a few of you about this along the way, but
it's really thin on mm reviews, probably because mm folks haven't been
cc'd. Any eyeballs on it would be appreciated!
It seems like it should _probably_ go through the mm tree, although I'm
happy to send it through tip if folks disagree.
Diffstat for reference:
arch/x86/Kconfig | 1 +
arch/x86/mm/init_64.c | 2 +-
arch/x86/mm/pat/set_memory.c | 2 +-
arch/x86/mm/pgtable.c | 12 ++++-----
drivers/iommu/iommu-sva.c | 29 +++++++++++++++++++++-
include/asm-generic/pgalloc.h | 18 ++++++++++++++
include/linux/iommu.h | 4 +++
include/linux/mm.h | 24 +++++++++++++++---
include/linux/page-flags.h | 46 +++++++++++++++++++++++++++++++++++
mm/Kconfig | 3 +++
mm/pgtable-generic.c | 39 +++++++++++++++++++++++++++++
11 files changed, 168 insertions(+), 12 deletions(-)