Skip to content

arm64/mm: migrate swapper_pg_dir

Jun Yao kernel-hardening linux-arm-kernel lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 1 replyIn review
  2. v23 patches 1 replySuperseded
  3. v10 of 4 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64/mm: pass swapper_pg_dir as an argument to __enable_mmu()arch/arm64/include/asm/mmu_context.h arch/arm64/include/asm/pgtable.h arch/arm64/kernel/cpufeature.c +5 more+29 -110 replies
2/3arm64/mm: introduce variable to save new swapper_pg_dir addressarch/arm64/include/asm/mmu_context.h arch/arm64/include/asm/pgtable.h arch/arm64/mm/kasan_init.c +1 more+5 -20 replies
3/3arm64/mm: migrate swapper_pg_dir and tramp_pg_dirarch/arm64/include/asm/pgtable.h arch/arm64/mm/mmu.c+52 -281 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] arm64/mm: migrate swapper_pg_dir

Version 3 changes:
* Fix memory leak problem with CONFIG_ARM64_SW_TTBR0_PAN
* add comment explaining why the flush is needed and also why __pa_swapper_pg_dir gets placed in the .mmuoff.data.read section.

[v2] https://www.spinics.net/lists/arm-kernel/msg657549.html
[v1] https://www.spinics.net/lists/kernel/msg2819351.html

Jun Yao (3):
arm64/mm: pass swapper_pg_dir as an argument to __enable_mmu() arm64/mm: introduce variable to save new swapper_pg_dir address arm64/mm: migrate swapper_pg_dir and tramp_pg_dir

 arch/arm64/include/asm/mmu_context.h |  6 +-
 arch/arm64/include/asm/pgtable.h     |  3 +
 arch/arm64/kernel/cpufeature.c       |  2 +-
 arch/arm64/kernel/head.S             |  6 +-
 arch/arm64/kernel/hibernate.c        |  2 +-
 arch/arm64/kernel/sleep.S            |  1 +
 arch/arm64/mm/kasan_init.c           |  6 +-
 arch/arm64/mm/mmu.c                  | 97 ++++++++++++++++++++--------
 8 files changed, 84 insertions(+), 39 deletions(-)
Signature · 1 line
2.17.0