linux/arch
Marek Szyprowski a142e9641d arm64: dma-mapping: always clear allocated buffers
[ Upstream commit 6829e274a6 ]

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: <stable@vger.kernel.org> # v3.14+
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
History 2015-05-17 19:12:38 -04:00
..
alpha vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
arc ARC: signal handling robustify 2015-04-22 23:31:18 -04:00
arm mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
arm64 arm64: dma-mapping: always clear allocated buffers 2015-05-17 19:12:38 -04:00
avr32 vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
blackfin Merge branch 'for-3.18-consistent-ops' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/percpu 2014-10-15 07:48:18 +02:00
c6x C6x: time: Ensure consistency in __init 2015-05-17 19:12:28 -04:00
cris vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
frv vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
hexagon Merge branch 'locking-arch-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2014-10-13 15:48:00 +02:00
ia64 mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
m32r vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
m68k vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
metag mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
microblaze mmu_gather: move minimal range calculations into generic code 2015-03-28 09:22:01 -04:00
mips MIPS: BCM47XX: Fix detecting Microsoft MN-700 & Asus WL500G 2015-05-17 19:12:35 -04:00
mn10300 vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
openrisc vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
parisc vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
powerpc mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
s390 mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
score vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
sh mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
sparc mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
tile mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
um vm: add VM_FAULT_SIGSEGV handling support 2015-02-05 22:36:01 -08:00
unicore32 nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2014-10-09 22:26:04 -04:00
x86 mm/hugetlb: use pmd_page() in follow_huge_pmd() 2015-05-17 19:12:31 -04:00
xtensa xtensa: ISS: fix locking in TAP network adapter 2015-05-17 19:12:17 -04:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig seccomp: Document two-phase seccomp and arch-provided seccomp_data 2014-09-03 14:58:17 -07:00