]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kmsan: convert kmsan_handle_dma to use physical addresses
authorLeon Romanovsky <leonro@nvidia.com>
Tue, 9 Sep 2025 13:27:36 +0000 (16:27 +0300)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 11 Sep 2025 22:18:20 +0000 (00:18 +0200)
commit6eb1e769b2c13a33cb2ca694454a7561d3d72c0a
tree1684e1a249f0ea207f9f5b2a097f08a63e641148
parente53d29f957b36ba1666331956c6ccb047bb157d2
kmsan: convert kmsan_handle_dma to use physical addresses

Convert the KMSAN DMA handling function from page-based to physical
address-based interface.

The refactoring renames kmsan_handle_dma() parameters from accepting
(struct page *page, size_t offset, size_t size) to (phys_addr_t phys,
size_t size). The existing semantics where callers are expected to
provide only kmap memory is continued here.

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Link: https://lore.kernel.org/r/3557cbaf66e935bc794f37d2b891ef75cbf2c80c.1757423202.git.leonro@nvidia.com
drivers/virtio/virtio_ring.c
include/linux/kmsan.h
kernel/dma/mapping.c
mm/kmsan/hooks.c
tools/virtio/linux/kmsan.h