From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.70 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796210452; b=322WSO5khEGlEL8yGRbbctoUKH2Ic5yynKPkaCdXw2EOTOdhmjtdaYjcV5TM2fVObY4U LTC7ZkhdOJZZAAIje/Rq/SqA3jNL76ilkw/nihdtY7N0ToMaFvEn2n66tKetsJNSPUrYe oxzCtfhFPCJ60nRW6cG9E9joK4o/Q1FehheXZVY42kn7L2LuMswbGKagKrvlKlc1C8x+P EsyKiybjWqmcZXMXlpm3L6030KxIwK1dLpBNtxIUruz3EtI9MJ2fQOmM8QKyZ+VXgfgJ0 lX7HuPv6am4OnrgdfvUUt1Efos77wppmSh1rEkLPmNNEI8MKTEdffY8oDURMaSKMVug== 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-Forwarded-Encrypted:X-Gm-Message-State:X-Received:Date:Mime-Version: X-Mailer:Message-ID:Subject:From:To:Cc:Content-Type; bh=zePLio2uDsJ9HcgxP2i5OrcU8NBA8HGGp0vcxqci+Yg=; b=JLgvdichV15yRi7JDi2IW3L74MYEpUwJ7SsFdNfBI4TGQbgH1L1v8ytOgnKozQq0D+eU mVfKWnZ1jE2y3uIu7FAXKri4t0GxC90hOzw/oAL/+pJKZ+6tQV/y/0bRRWATSS9CBl7nt aKi8X2QsJ0iL7IJ8YSJdaf7HhMoUtMKsGo2qLKTXLsqD0Bs8T8tmUjHaO5ySTpxwJz/Qi vjPecHhVsfecP0yJZEXAxB3zLwsCR9502a/9puiR2wkkRRs6TKjqZ0neauR55jy4vRdpm CPi140ykHxomhgJ76fl6fErcUc+8xps2G/S5AtV2S2spMM8RalWLxnRvUQaRMhFUuAw== 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=l6SVUcMc; arc=none smtp.remote-ip=209.85.128.70 Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (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 68339606A32A for ; Wed, 2 Dec 2026 11:20:52 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 68339606A32A 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=l6SVUcMc Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4a204f135ffso66693465e9.1 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=vger.kernel.org; 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=l6SVUcMceU1vrNYMAup87l71XAVa/J+90eFn/ppSGyr8yVGGy9Nbnn/fWzMCvLf5wL LjScuFdUn/UQJmP7PvrACFXJ1NnMZXnDWP+pT6i/+Ft9cLHUBKhU4klgnSEsEQevHu+k d9/3hJmJK5+61sqBFTEx0rXHyiFtUamyy5IFWWEUy2JFJA5dJsTKFpvXaLBtPREovfRr M0maLMZYErC0S8z3A1oHsI/DP25qS7UWcU8ELwRpsczZpM1PdUXtbj4OD3CKFuoCNc54 yX+9Lbh6J93Kes+rVmSuiWYmZHPKZa5CFc4fUJChY15UdifmajVijolkINfntJJXCryt Xcdg== 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=WgcIX6nPMoL/lU//a4ny5qcxiUKtHx2KXvM97flEzGwg2JVgFTJeDPrz+2aqLJE6Nk thRPDVKu5KivTfM8hr1ip+Kf43eiH2DBuvSJTU+No9F4bsBjj3AFb4gTwQH2Lsw4h0Rs oH5y+xm8s606JdO/woIBVOUUPwAAAbGvxsAzNCN1/qWm2qg3cBdnobdtiew6qxKR7cqh gFWJj+g3chdymi1iH5Ms8vG9s3ROu+2PC4eO7lwN40mAG7wG1KpBLK5NzMuiQPfaaRvO +vDPxPmetaYWkJgvgersNgRNNjTrutZtd7dw2aV9pztKCEGvOYnC8U9HAlaLlhoIQybZ ToXw== X-Forwarded-Encrypted: i=1; AL+hErHkNLPlxji+k+UE4ZFI6z0iBLZTDtF/00HAUA09ujQNPdzENDmofwsHUUDJrEfO3hEwEYeQrmKMQFib/T0=@vger.kernel.org X-Gm-Message-State: APuU4Z9wV+w9iGstPTb2q7kn327y70trpo0GMzr44qpbAJ0kjW3t0cDZ dc8lZSW+VmvLRwFaQbJYXbuSCK8WS+zCcds8UyaqyfKXfeq9MLKq/BhCWecAMrvbE+deQXTPDod Fuq9dtv9mQoMV0g== 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: linux-kernel@vger.kernel.org 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