Re: [PATCH 0/2] iommu: debug-pagealloc: Remove pfn_valid() usage

From: David Hildenbrand (Red Hat)

Date: Mon Jan 19 2026 - 09:27:04 EST


On 1/19/26 15:22, Mostafa Saleh wrote:
This is a small fix for the new config IOMMU_DEBUG_PAGEALLOC based
on the discussion:
https://lore.kernel.org/linux-iommu/CAFgf54pBAUm3ao-UJksiuGKtvv4wzRyFq_uKwLe0H1ettO4DLQ@xxxxxxxxxxxxxx/

Where it was concluded that pfn_valid() is not enough to validate
physical addresses before access to page_ext.

The first patch introduces a new function in page_ext that takes a
physical address as an argument, and the second patch uses it instead
of calling pfn_valid() and phys_to_page()

Benchmarks with the new implementation can be found in:
https://lore.kernel.org/linux-iommu/20260114164322.787125-1-smostafa@xxxxxxxxxx/

This series applies to iommu/core tree.

This is part of v7 [1], right? Can't we just apply v7 instead or are the commit IDs already stable?

[1] https://lkml.kernel.org/r/20260114164322.787125-1-smostafa@xxxxxxxxxx

--
Cheers

David