]> git.baikalelectronics.ru Git - kernel.git/commit
mm: don't allow executable ioremap mappings
authorChristoph Hellwig <hch@lst.de>
Wed, 8 Sep 2021 02:56:04 +0000 (19:56 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 8 Sep 2021 18:50:24 +0000 (11:50 -0700)
commit43981b0e01c6fa1b5f24b046fb419cab12b02ac5
treefb17f5e99a94cd457c73f7cb7e74c9272c5df8a1
parentb0ff404a1417baa3c512d04ab6941a128029efdf
mm: don't allow executable ioremap mappings

There is no need to execute from iomem (and most platforms it is
impossible anyway), so add the pgprot_nx() call similar to vmap.

Link: https://lkml.kernel.org/r/20210824091259.1324527-3-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/vmalloc.c