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=DxP0evnkycfgIhh5Pdhue9MtZeia+JXsjZHOirASW3Elp7k5uU+51NqsGuS96K8Y4cST Q4NxOrZoZNCInml8vyY25Nd60N+fZL+TLfXuplHK4guEeMSp+Iph84h14ArFuRIqVwsAu fW6SAW3KZmP2WVBju4RSxfX1VSWzAEJ/1YmT9/rZ+OoMX3ZB/Y/+I3epkfPbNEzc1hIUL VpbxJVUpUrJiMqrSFsKvKDLmlmMGoJCdirQJ3vIVS0DVYlrT9XRxQFmVL1cfNjCSVB8s0 rBHkpc8rCumcSLT9g0M/goq7njSDWWFrAojA+ufMv9OsSWxdRsu69yE0m9F5SyWi8lg== 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=xvhCNnsAufxORVFvwWumAd1Os4I4K6aHRJdSVk2yTqsGtRQo813Oj0kwiZsbQ5bTPU/K y9WoUVENJUjEgzpd3+tON5xNfPxxAoe4tGs/TAQXHfWR6F+c4d7rqZIMz6bVo+K02bXem 5NYSZiHX+mgzd50h/7ko5ztP0HQ5OBcwY/9BA4dPYtv5d9PDRPPN0gxN6aM60KGLRd+yb sWIkj64fkujv17Mb+JwB2qW8S7kDIDdAzV8paVi01EugjHN3uBNfuPLFAAtVChj6ieQDp nBRhqRchIa5KYkyETc8otsccnqEG03Zdd0ryidgUGGN9X2EJQKmY+vRahL50/5pxKDQ== 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 6BF50606A31A for ; Tue, 1 Dec 2026 10:57:48 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6BF50606A31A 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: linux-kernel@vger.kernel.org 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