Christoph Hellwig
518a2f1925
dma-mapping: zero memory returned from dma_alloc_*
...
If we want to map memory from the DMA allocator to userspace it must be
zeroed at allocation time to prevent stale data leaks. We already do
this on most common architectures, but some architectures don't do this
yet, fix them up, either by passing GFP_ZERO when we use the normal page
allocator or doing a manual memset otherwise.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> [m68k]
Acked-by: Sam Ravnborg <sam@ravnborg.org> [sparc]
2018-12-20 08:13:52 +01:00
..
alpha
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
arc
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
arm
dma-mapping: bypass indirect calls for dma-direct
2018-12-13 21:06:18 +01:00
arm64
arm64: default to the direct mapping in get_arch_dma_ops
2018-12-19 18:00:12 +01:00
c6x
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
csky
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
h8300
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
hexagon
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
ia64
ia64: only select ARCH_HAS_DMA_COHERENT_TO_PFN if swiotlb is enabled
2018-12-15 11:01:25 +01:00
m68k
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
microblaze
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
mips
dma-mapping: bypass indirect calls for dma-direct
2018-12-13 21:06:18 +01:00
nds32
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
nios2
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
openrisc
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
parisc
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
powerpc
dma-direct: merge swiotlb_dma_ops into the dma_direct code
2018-12-13 21:06:17 +01:00
riscv
dma-direct: merge swiotlb_dma_ops into the dma_direct code
2018-12-13 21:06:17 +01:00
s390
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
sh
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
sparc
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
um
for-linus-20181109
2018-11-09 16:31:51 -06:00
unicore32
dma-mapping: always build the direct mapping code
2018-12-13 21:06:11 +01:00
x86
dma-mapping: bypass indirect calls for dma-direct
2018-12-13 21:06:18 +01:00
xtensa
dma-mapping: zero memory returned from dma_alloc_*
2018-12-20 08:13:52 +01:00
.gitignore
Kconfig
New gcc plugin: stackleak
2018-11-01 11:46:27 -07:00