arm64: apply G-to-nG conversion for KPTI with MMU enabled
Status from this message: Applied to arm64 (for-next/kpti), thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest2 patches 3 repliesApplied
- v42 patches 1 replySuperseded
- v32 patches 4 repliesSuperseded
Changes in v5 from the cover letter
- fix two bugs in patch #2
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | arm64: kpti-ng: simplify page table traversal logicarch/ | +36 | 0 replies | |
| 2/2 | arm64: mm: install KPTI nG mappings with MMU enabledarch/ arch/ arch/ | +113 | 2 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Mark Rutland |
|---|---|
| 1/2 | R-b T-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 0/2] arm64: apply G-to-nG conversion for KPTI with MMU enabled
Rationale for the series is in patch #2.
Changes since v4:
- fix two bugs in patch #2
Changes since v3 [0]:
- fix issue pointed out by Mark in patch #1, and add his Rb/Tb;
- move shared flag back into the ID map, as this allows us to revert to the existing synchronization scheme, and drastically simplify the patch - we can move the flag into a separate page later, if needed;
- use symbol alias to access __create_pgd_mapping() so we are not forced to expose it in general.
Changes since v2 [1]:
- reinstate optimization that avoids descending into the same page tables repeatedly when KASAN is enabled;
- use broadcast TLB maintenance when doing BBM for the temporary mappings, to prevent potential TLB conflicts on the secondary cores that are running from the same set of temporary page tables;
- remove a wait loop in the C code, by using 'num_cpus + 1' as the signal value rather then 0x0;
- declutter and simplify the asm helper code, to make it more maintainable.
[0] https://lore.kernel.org/linux-arm-kernel/[email protected]/
[1] https://lore.kernel.org/linux-arm-kernel/[email protected]/
Ard Biesheuvel (2):
arm64: kpti-ng: simplify page table traversal logic
arm64: mm: install KPTI nG mappings with MMU enabled
arch/arm64/kernel/cpufeature.c | 54 +++++- arch/arm64/mm/mmu.c | 7 + arch/arm64/mm/proc.S | 173 ++++++++++---------- 3 files changed, 145 insertions(+), 89 deletions(-)
Signature · 7 lines
2.30.2 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel