From mboxrd@z Thu Jan 1 00:00:00 1970 From: Claude Code Review Bot To: dri-devel-reviews@example.com Subject: Claude review: dma-buf: Fix silent overflow for phys vec to sgt Date: Thu, 04 Jun 2026 13:39:51 +1000 Message-ID: In-Reply-To: <20260601200012.3872274-1-xuehaohu@google.com> References: <20260601200012.3872274-1-xuehaohu@google.com> X-Mailer: Claude Code Patch Reviewer Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Overall Series Review Subject: dma-buf: Fix silent overflow for phys vec to sgt Author: David Hu Patches: 2 Reviewed: 2026-06-04T13:39:51.634825 --- This is a single-patch fix for a real silent integer overflow bug in the dma-buf MMIO-to-scatterlist mapping path. When MMIO regions exceed 4GB and P2P DMA goes through the host bridge, `mapped_len` (previously `unsigned int`) wraps around when accumulating `size_t` lengths, causing truncated values to be passed to `dma_iova_sync()` and `fill_sg_entry()`. The fix is minimal, well-targeted, and at v5 has addressed all prior reviewer feedback. The patch looks correct and ready to merge. **Verdict: Looks good. No blocking issues.** --- Generated by Claude Code Patch Reviewer