aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorMarek Szyprowski <[email protected]>2015-04-23 11:46:16 +0000
committerWill Deacon <[email protected]>2015-04-27 10:39:50 +0000
commit6829e274a623187c24f7cfc0e3d35f25d087fcc5 (patch)
treea6ca873b29878ee7bc8c328af8a64bae0f49a37e /net/switchdev/switchdev.c
parentARM64: Enable CONFIG_GENERIC_IRQ_SHOW_LEVEL (diff)
downloadkernel-6829e274a623187c24f7cfc0e3d35f25d087fcc5.tar.gz
kernel-6829e274a623187c24f7cfc0e3d35f25d087fcc5.zip
arm64: dma-mapping: always clear allocated buffers
Buffers allocated by dma_alloc_coherent() are always zeroed on Alpha, ARM (32bit), MIPS, PowerPC, x86/x86_64 and probably other architectures. It turned out that some drivers rely on this 'feature'. Allocated buffer might be also exposed to userspace with dma_mmap() call, so clearing it is desired from security point of view to avoid exposing random memory to userspace. This patch unifies dma_alloc_coherent() behavior on ARM64 architecture with other implementations by unconditionally zeroing allocated buffer. Cc: <[email protected]> # v3.14+ Signed-off-by: Marek Szyprowski <[email protected]> Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions