* [PATCH] dma: kmsan: Export kmsan_handle_dma() for modules.
[not found] <202502150634.qjxwSeJR-lkp@intel.com>
@ 2025-02-18 9:14 ` Sebastian Andrzej Siewior
2025-02-18 11:14 ` Alexander Potapenko
2025-02-19 0:12 ` Andrew Morton
0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Andrzej Siewior @ 2025-02-18 9:14 UTC (permalink / raw)
To: kasan-dev, linux-mm
Cc: Alexander Potapenko, Marco Elver, Dmitry Vyukov, Andrew Morton,
kernel test robot, Peter Zijlstra, llvm, oe-kbuild-all,
linux-kernel, Thomas Gleixner
kmsan_handle_dma() is used by virtio_ring() which can be built as a
module. kmsan_handle_dma() needs to be exported otherwise building the
virtio_ring fails.
Export kmsan_handle_dma for modules.
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202502150634.qjxwSeJR-lkp@intel.com/
Fixes: 7ade4f10779cb ("dma: kmsan: unpoison DMA mappings")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
---
mm/kmsan/hooks.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/kmsan/hooks.c b/mm/kmsan/hooks.c
index 3ea50f09311fd..3df45c25c1f62 100644
--- a/mm/kmsan/hooks.c
+++ b/mm/kmsan/hooks.c
@@ -357,6 +357,7 @@ void kmsan_handle_dma(struct page *page, size_t offset, size_t size,
size -= to_go;
}
}
+EXPORT_SYMBOL_GPL(kmsan_handle_dma);
void kmsan_handle_dma_sg(struct scatterlist *sg, int nents,
enum dma_data_direction dir)
--
2.47.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dma: kmsan: Export kmsan_handle_dma() for modules.
2025-02-18 9:14 ` [PATCH] dma: kmsan: Export kmsan_handle_dma() for modules Sebastian Andrzej Siewior
@ 2025-02-18 11:14 ` Alexander Potapenko
2025-02-19 0:12 ` Andrew Morton
1 sibling, 0 replies; 3+ messages in thread
From: Alexander Potapenko @ 2025-02-18 11:14 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: kasan-dev, linux-mm, Marco Elver, Dmitry Vyukov, Andrew Morton,
kernel test robot, Peter Zijlstra, llvm, oe-kbuild-all,
linux-kernel, Thomas Gleixner
On Tue, Feb 18, 2025 at 10:14 AM Sebastian Andrzej Siewior
<bigeasy@linutronix.de> wrote:
>
> kmsan_handle_dma() is used by virtio_ring() which can be built as a
> module. kmsan_handle_dma() needs to be exported otherwise building the
> virtio_ring fails.
>
> Export kmsan_handle_dma for modules.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202502150634.qjxwSeJR-lkp@intel.com/
> Fixes: 7ade4f10779cb ("dma: kmsan: unpoison DMA mappings")
> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Alexander Potapenko <glider@google.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dma: kmsan: Export kmsan_handle_dma() for modules.
2025-02-18 9:14 ` [PATCH] dma: kmsan: Export kmsan_handle_dma() for modules Sebastian Andrzej Siewior
2025-02-18 11:14 ` Alexander Potapenko
@ 2025-02-19 0:12 ` Andrew Morton
1 sibling, 0 replies; 3+ messages in thread
From: Andrew Morton @ 2025-02-19 0:12 UTC (permalink / raw)
To: Sebastian Andrzej Siewior
Cc: kasan-dev, linux-mm, Alexander Potapenko, Marco Elver,
Dmitry Vyukov, kernel test robot, Peter Zijlstra, llvm,
oe-kbuild-all, linux-kernel, Thomas Gleixner
On Tue, 18 Feb 2025 10:14:11 +0100 Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:
> kmsan_handle_dma() is used by virtio_ring() which can be built as a
> module. kmsan_handle_dma() needs to be exported otherwise building the
> virtio_ring fails.
>
> Export kmsan_handle_dma for modules.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202502150634.qjxwSeJR-lkp@intel.com/
> Fixes: 7ade4f10779cb ("dma: kmsan: unpoison DMA mappings")
It's strange that this took a few years to be noticed.
Thanks, I added cc:stable to this.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-02-19 0:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <202502150634.qjxwSeJR-lkp@intel.com>
2025-02-18 9:14 ` [PATCH] dma: kmsan: Export kmsan_handle_dma() for modules Sebastian Andrzej Siewior
2025-02-18 11:14 ` Alexander Potapenko
2025-02-19 0:12 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).