]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: head: split off idmap creation code
authorArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 15:06:37 +0000 (17:06 +0200)
committerWill Deacon <will@kernel.org>
Fri, 24 Jun 2022 16:18:09 +0000 (17:18 +0100)
commite54e231104c3fbd9f02cc038b13804e729246e94
tree6519e3b4830396cace1a152e7ee44d5aab54420e
parent053f8af378b862d5978c95bb4d03d8d1893cc845
arm64: head: split off idmap creation code

Split off the creation of the ID map page tables, so that we can avoid
running it again unnecessarily when KASLR is in effect (which only
randomizes the virtual placement). This will permit us to drop some
explicit cache maintenance to the PoC which was necessary because the
cache invalidation being performed on some global variables might
otherwise clobber unrelated variables that happen to share a cacheline.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Link: https://lore.kernel.org/r/20220624150651.1358849-8-ardb@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/head.S