Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'dma-mapping-6.18-2025-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux

Pull dma-mapping fixes from Marek Szyprowski:
"Two small fixes for the recently performed code refactoring (Shigeru
Yoshida) and missing handling of direction parameter in DMA debug code
(Petr Tesarik)"

* tag 'dma-mapping-6.18-2025-10-07' of git://git.kernel.org/pub/scm/linux/kernel/git/mszyprowski/linux:
dma-mapping: fix direction in dma_alloc direction traces
kmsan: fix kmsan_handle_dma() to avoid false positives

+2 -2
+1
include/trace/events/dma.h
··· 133 133 __entry->dma_addr = dma_addr; 134 134 __entry->size = size; 135 135 __entry->flags = flags; 136 + __entry->dir = dir; 136 137 __entry->attrs = attrs; 137 138 ), 138 139
+1 -2
mm/kmsan/hooks.c
··· 339 339 void kmsan_handle_dma(phys_addr_t phys, size_t size, 340 340 enum dma_data_direction dir) 341 341 { 342 - struct page *page = phys_to_page(phys); 343 342 u64 page_offset, to_go; 344 343 void *addr; 345 344 346 345 if (PhysHighMem(phys)) 347 346 return; 348 - addr = page_to_virt(page); 347 + addr = phys_to_virt(phys); 349 348 /* 350 349 * The kernel may occasionally give us adjacent DMA pages not belonging 351 350 * to the same allocation. Process them separately to avoid triggering