Skip to content

arm64: Missing barriers in kernel page-table updates

Fuad Tabba linux-arm-kernel lkml stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3arm64: pi: Add an ISB after mapping the FDT in the initial ID maparch/arm64/kernel/pi/map_kernel.c+1 -01 reply
2/3arm64: mm: Add an ISB after remapping the KPTI page-table slotarch/arm64/mm/proc.S+1 -01 reply
3/3arm64: mm: Don't defer the barriers when installing a fixmap entryarch/arm64/mm/fixmap.c+3 -15 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchRyan RobertsKevin Brodsky
1/3R-b
2/3R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] arm64: Missing barriers in kernel page-table updates

Hi folks,

Three fixes for kernel mappings that are made valid and then used on the same CPU before an ISB, so the access can take a translation fault.

Tested on QEMU. The runtime changes to the linear map that patch 3 covers were not exercised, since they require a CPU with BBML3.

Based on Linux 7.4-rc1 (6628e7d4c6b25).

Cheers,
/fuad

Fuad Tabba (3):
arm64: pi: Add an ISB after mapping the FDT in the initial ID map
arm64: mm: Add an ISB after remapping the KPTI page-table slot
arm64: mm: Don't defer the barriers when installing a fixmap entry

 arch/arm64/kernel/pi/map_kernel.c | 1 +
 arch/arm64/mm/fixmap.c            | 4 +++-
 arch/arm64/mm/proc.S              | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4

Signature · 1 line
2.47.3