From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.71 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796210452; b=qUM/uQT/HVNTx5MET5liFda00Gf3k9EIBnSYkfHcS3tT1i2K3Wwlk0Sx9mptLhVw2AFI eYGBFkS/ZhDk+K0963UYv71eA5SyVxIr27vAMfxa8Qo3aaKpSKOhL2mkUMO24Bzqmn9xj U/GuqiMks5LssqJ1j34mkh9QlrQGEADxU6QSXBeCrPV+aPsP59LUN781TZ1mxNvccGsnE itNQi7UK76ysoRtFq/il4cUOiHAsOtEFPIOW857+inmPaZuCWfur28UpNGBZS1RoiAxYf 1/UGFbtOSsj9kCtrcIRqeBi0pWD1/IPY9HBQPz4C14tCcfoUTTh1cbEmaG2zrtY84uw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796210452; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Received:Date:Mime-Version:X-Mailer:Message-ID: Subject:From:To:Cc:Content-Type; bh=zePLio2uDsJ9HcgxP2i5OrcU8NBA8HGGp0vcxqci+Yg=; b=S6l8ccNkd+c50jnSaVHti4s//b1h76XA5oxqN+zYL6UooB3G+/YdOOGLXhCBIOrmnBYd Jgk8S7yvWjnSxRwuHewPcmw905eQd07eLGlBjdWqTw5kKtx0DuRrGkQWWoVPssCzQCn1H qLy9eYpVrD1JfiuEQmk5hjjCCmDbbxVn8FrRQsxFBcWEMuXqhJb/N0hykwwslRUGA7h9r QTXmkbtvKbIEYvo/+anx4YQD4iWuXOEMaWGQvSxlZ8DguiRF1RRaOQ6d1yYls85NB2hgs 9rJY+tzszTZntueLHTgnrr3fKp8M2lCjCGcg/2/zob5SVI74GDkKSU8sylDwIhTRtNw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=google.com; spf=pass smtp.mailfrom=flex--smostafa.bounces.google.com; dkim=pass header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Md93RS50; arc=none smtp.remote-ip=209.85.128.71 Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71FB9606A689 for ; Wed, 2 Dec 2026 11:20:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 71FB9606A689 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--smostafa.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.a=rsa-sha256 header.s=20260707 header.b=Md93RS50 Received: by mail-wm1-f71.google.com with SMTP id 5b1f17b1804b1-4a4654add56so89379155e9.2 for ; Wed, 02 Dec 2026 03:20:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20260707; t=1796210451; x=1796815251; darn=lists.linux.dev; h=content-type:cc:to:from:subject:message-id:mime-version:date:from :to:cc:subject:date:message-id:reply-to:content-type; bh=zePLio2uDsJ9HcgxP2i5OrcU8NBA8HGGp0vcxqci+Yg=; b=Md93RS50v8O2RIlQI1XPjvUw0B+UIF64ZStkl8I/+xjHXIiAkKqvDGB7oEklA7Sa9W leWnZJa7bTq3rXL2McGF35dk+kRW0uCTb1izmL56WXIobyffpqGWh73IZVzT0qa3hli2 IavGQe3ZqEG/ijKfUTBMi5/S6lbE31BjvA3ZNh5BZX8mf8IwUEIn2osnySHMmmKLwnjd wEdCdUP/CDxhkN4fcxdAy1QmE51hz4s3GNByo2hVRh023GB//LNUokN3XdB/yjT/26Nl FFdT5JpqB7XvqjnwBEjM2Xi8J6nHV9lIX8DCI8mQmzAPIaPdpJ4f0JbyLSLBnYu2yAPM NyNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796210451; x=1796815251; h=content-type:cc:to:from:subject:message-id:mime-version:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=zePLio2uDsJ9HcgxP2i5OrcU8NBA8HGGp0vcxqci+Yg=; b=SKCQJuinhzg+tF90hOJbNgMYpYaS4TfzqoZHSXYoBkR9QkRCZ4DNK7adiF0fK4AOUr x5IbPD+OMk1fRMrLLP5xm148iDlJDdD6gq5gN3Wz+9oAWr0qnMwAZp2psegsqv/0MuAC wlUuhrgpBpksAIIE+xHAczWNPUlPuhfFfwBPSTH0RlLx/Ru+jcXXslKgndh4K/iYNqt4 xmefH0+G4O5b9sQU9YPXL5Jczem180Mal2rcSdjEZwE7eAw+y1RuXE/XCp5fZSDimryV k/wV4nRVJlBUk9p0MIftCbMNUWpK/DoSg3L44xP0wd0dlUTFXewrMNMt9p4QT7qEbWqW Ix2A== X-Gm-Message-State: APuU4Z/d5ez0iqdpqNk2+fcCdY3d8UTG02IdSdUGaSVTij+bfZV6alrF 1Vxwb8RR4bjGZCbdYF20y/WGJDLzORw3i1ntmrxaM90SsjcOLrlyYYoVa644pGlQFov5n+riKCS /dvCy1VlQI2rrz62sbSAsQpXHpFh+OIBj2qYtnvTg2iSLdgYIb03hgTYnA0SgovuaR/1YSvt8iP Mw/21VGNJvDCthSciYbG2wY6OB6LhlKNY+kR20DOU02IRMsg== X-Received: from wmg12.prod.google.com ([2002:a05:600c:22cc:b0:4a1:8e4a:36d3]) (user=smostafa job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a55:b0:49f:ce78:356d with SMTP id 5b1f17b1804b1-4bb88827db0mr847265775e9.30.1796210450654; Wed, 02 Dec 2026 03:20:50 -0800 (PST) Date: Wed, 2 Dec 2026 11:20:44 +0000 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 X-Mailer: git-send-email 2.56.1.911.g883d8bcb20-goog Message-ID: <20261202112047.509228-1-smostafa@google.com> Subject: [PATCH v2 0/2] iommu: debug-pagealloc: Small fixes for corner cases From: Mostafa Saleh To: iommu@lists.linux.dev, linux-kernel@vger.kernel.org Cc: joro@8bytes.org, will@kernel.org, robin.murphy@arm.com, Mostafa Saleh Content-Type: text/plain; charset="UTF-8" Small fixes for iommu-debug-pagealloc, for overflow checks and the aother for a corner case with physical address of 0. The first one flagged by Sashiko in https://sashiko.dev/#/patchset/20261111185931.94882-1-griffoul%40gmail.com The second one was found by AI while reviewing the first change. v1: https://lore.kernel.org/all/20261130164628.3170884-1-smostafa@google.com/ Mostafa Saleh (2): iommu: debug-pagealloc: Fix overflow checks iommu: debug-pagealloc: Fix mappings starting at phys 0 drivers/iommu/iommu-debug-pagealloc.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) -- 2.56.1.911.g883d8bcb20-goog