]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: mm: purge lazily unmapped vm regions before changing permissions
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 7 Nov 2018 10:36:19 +0000 (11:36 +0100)
committerWill Deacon <will.deacon@arm.com>
Tue, 20 Nov 2018 11:38:26 +0000 (11:38 +0000)
commite5a4dba5aa583da5f76355ba8013cadcbd27b76b
treedbeb02f908943cc0c5fdcbecc87b187389b7d449
parentf11bd5030d4f1983e167d654e8455adaea4ba160
arm64: mm: purge lazily unmapped vm regions before changing permissions

Call vm_unmap_aliases() every time we apply any changes to permission
attributes of mappings in the vmalloc region. This avoids any potential
issues resulting from lingering writable or executable aliases of
mappings that should be read-only or non-executable, respectively.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/pageattr.c