ARM: dma-mapping: don't allow DMA mappings to be marked executable 33/154633/1
authorRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 23 Oct 2013 15:14:59 +0000 (16:14 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 11 Oct 2017 01:48:40 +0000 (10:48 +0900)
commit69602cd42c16d21b8b655934fe6cfaab1544841a
treee6166cf16e9fa28583e34ee31af7adabef301911
parent381f0389bd2264954a362d5a81bc65abef2033be
ARM: dma-mapping: don't allow DMA mappings to be marked executable

DMA mapping permissions were being derived from pgprot_kernel directly
without using PAGE_KERNEL.  This causes them to be marked with executable
permission, which is not what we want.  Fix this.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
[sw0312.kim: cherry-pick from mainline to fix CVE-2014-9888]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I2091a256d8ceba7b0f2508e8c354e7064777e503
arch/arm/mm/dma-mapping.c