Re: [PATCH 1/2] iommu: debug-pagealloc: Check map overflow in a phys_addr_t

From: Mostafa Saleh

Date: Tue Dec 01 2026 - 06:15:25 EST


On Tue, Dec 01, 2026 at 11:57:45AM +0100, Jörg Rödel wrote:
> On Mon, Nov 30, 2026 at 04:46:27PM +0000, Mostafa Saleh wrote:
> > void __iommu_debug_map(struct iommu_domain *domain, phys_addr_t phys, size_t size)
> > {
> > - size_t off, end;
> > + size_t off;
> > + phys_addr_t end;
> > size_t page_size = iommu_debug_page_size(domain);
>
> The __iommu_debug_update_iova() function has the same bug.

Sorry I missed that, I will respin.

Thanks,
Mostafa

>
> -Joerg