From: Samiullah Khawaja <skhawaja@google.com>
To: James Widner <jameswidner2@gmail.com>
Cc: jgg@nvidia.com, kevin.tian@intel.com, iommu@lists.linux.dev
Subject: Re: [BUG] iommufd: batch_to_domain() can map the wrong PFN at ULONG_MAX
Date: Wed, 2 Dec 2026 02:52:50 +0000 [thread overview]
Message-ID: <aw-G094ik8fz3XSO@google.com> (raw)
In-Reply-To: <CANY+HFcs0jO+jgKVGtrmwrpebFyz9mqbOUDy6Y5PrChXF4MZig@mail.gmail.com>
On Tue, Dec 01, 2026 at 06:20:47AM -0500, James Widner wrote:
>Hello,
>
>I found an unsigned-wrap issue in iommufd’s `batch_to_domain()`
>handling when an IOAS mapping ends at `ULONG_MAX`. Under the affected
>mapping paths, the first PFN run can cover the following IOVA and
>leave the final IOVA mapped to a page that was not requested by
>userspace.
>
>The attached report explains the trigger, affected paths, current and
>stable A/B results, limitations, and proposed fix. I have also
>attached the proposed source diff for convenient review.
>
>I would appreciate your assessment of the finding and proposed fix.
>Please retain reporter attribution to me in any resulting commit.
>
>This finding was researched and validated with Codex Daybreak and
>DeepSeek 4.1 Heretic. I have reviewed the submission and take
>responsibility for it.
Hi,
I was working on a fix for this one and was planning to send it today.
Do you want to send the proposed fix or should I send my fix with you
mentioned in Reported-by?
Thanks,
Sami
prev parent reply other threads:[~2026-12-02 2:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 11:20 [BUG] iommufd: batch_to_domain() can map the wrong PFN at ULONG_MAX James Widner
2026-12-02 2:52 ` Samiullah Khawaja [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw-G094ik8fz3XSO@google.com \
--to=skhawaja@google.com \
--cc=iommu@lists.linux.dev \
--cc=jameswidner2@gmail.com \
--cc=jgg@nvidia.com \
--cc=kevin.tian@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.