]> www.infradead.org Git - users/dwmw2/linux.git/commit
dma-mapping: fix tracing dma_alloc/free with vmalloc'd memory
authorSean Anderson <sean.anderson@linux.dev>
Thu, 17 Oct 2024 15:10:55 +0000 (11:10 -0400)
committerChristoph Hellwig <hch@lst.de>
Thu, 17 Oct 2024 15:41:29 +0000 (17:41 +0200)
commit78b2770c935fc1434a95cc17613fe31165b02dfe
treeee5e742b3c69ee95d628da223cfa799c13bd196d
parentc964ced7726294d40913f2127c3f185a92cb4a41
dma-mapping: fix tracing dma_alloc/free with vmalloc'd memory

Not all virtual addresses have physical addresses, such as if they were
vmalloc'd. Just trace the virtual address instead of trying to trace a
physical address. This aligns with the API, and is good enough to
associate dma_alloc with dma_free.

Fixes: 038eb433dc14 ("dma-mapping: add tracing for dma-mapping API calls")
Reported-by: syzbot+b4bfacdec173efaa8567@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/all/670ebde5.050a0220.d9b66.0154.GAE@google.com/
Signed-off-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/trace/events/dma.h