From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=85.214.250.239 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796122669; b=K4KrQGd7CWwNBE+3GisWl0RGz7El8XQfiM+fZDFXscaFRKj9y0M/UkB/GFVd6rTF5ZGH o+tvXKPRGKTYTHzobE07IPutV0qU+JX+71CabdGa+qh2MO20oPQ/D0WExPwQftYmVXGrF mdWtQy5AM6AsSxMq1GS55jL8i57jexTYHoUJlSCeOuYl4W/H5NlWmzhKO1rMfpWX5GyT3 +HHAZPFNE0HNyIpXa/XYOjaiWrxHoi72m7MDjSH0wEUtoFxAvDDjJkUuIFC8BomQKb2nb apbE1EfYFenZENsa7VAn0+jf4K7ElTFuDDusyVR0MU9tdXDdXHWACmwcFQnXwqb7vug== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796122669; h=DMARC-Filter:Received:Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=rGMHaZ0RI2omChaahkY3vdS4P131IQMsFAlg4hwyibU=; b=IghjDDorpc2avao323rl1ck1UVLE6w703KSPJTEPBYAVPX7T5ynon1nM/qPptCI1upzK ueumy11L4o+DfAzJ7RrNLwHQwFS2UrDFi+Y8EHRgrzkM8Gnj/y4zzOXaVGnxYpvb6I8gW SlwsPzFSgyVrxiqhs8fT2B1Zq1beDOM6C45BMqvw7yJQR/eJ/UiZZv/1Swt2OhA+UELAX uIj6fMbcu/dt/KfHiMkSPk2ebEZZD6btZhp2SqeZ15ajLRjnuKBq6UaPfA+pLgGJ/Y6jB 1+LD7yp1Tn3bVatIpjdOe6EsJGQzBxxXsU9p72Dz8OJrXZW/IUvhpa3hpP/cbxta1dQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=8bytes.org; spf=pass smtp.mailfrom=8bytes.org; arc=none smtp.remote-ip=85.214.250.239 Received: from mail.8bytes.org (mail.8bytes.org [85.214.250.239]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6BF9B606A320 for ; Tue, 1 Dec 2026 10:57:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6BF9B606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=8bytes.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=8bytes.org Received: from 8bytes.org (p549216fa.dip0.t-ipconnect.de [84.146.22.250]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.8bytes.org (Postfix) with ESMTPSA id F3F00245837; Tue, 1 Dec 2026 11:57:46 +0100 (CET) Date: Tue, 1 Dec 2026 11:57:45 +0100 From: =?utf-8?B?SsO2cmcgUsO2ZGVs?= To: Mostafa Saleh Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, will@kernel.org, robin.murphy@arm.com Subject: Re: [PATCH 1/2] iommu: debug-pagealloc: Check map overflow in a phys_addr_t Message-ID: References: <20261130164628.3170884-1-smostafa@google.com> <20261130164628.3170884-2-smostafa@google.com> X-Mailing-List: iommu@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261130164628.3170884-2-smostafa@google.com> 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. -Joerg