Re: [PATCH v2 0/2] dma-debug: Avoid uninitialized mapping dumps

From: Marek Szyprowski

Date: Wed Nov 25 2026 - 04:00:03 EST


On 19.11.2026 14:13, Avi Weiss wrote:
> Booting with dma_debug=off leaves the DMA-debug hash buckets
> uninitialized, but the debugfs mapping dump is still registered.
> Reading dma-api/dump then traverses an uninitialized list and
> causes a NULL pointer dereference in dump_show().
>
> Patch 1 skips debugfs registration when DMA debugging was not
> initialized. Patch 2 removes the obsolete debug_dma_dump_mappings()
> helper and its only caller in the legacy AMD GART IOMMU code.

Applied to dma-mapping-for-next, thanks!

Best regards
--
Marek Szyprowski, PhD
Samsung R&D Institute Poland