Skip to content

PTI for x86-32 Fixes

Joerg Roedel linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/mm/pti: Fix 32 bit PCID checkarch/x86/mm/pti.c+1 -10 replies
2/3x86/mm/pti: Don't clear permissions in pti_clone_pmd()arch/x86/mm/pti.c+5 -64 replies
3/3x86/mm/pti: Clone kernel-image on PTE level for 32 bitarch/x86/mm/pti.c+99 -410 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchDavid H. Gutteridge
SeriesT-b
1/3
2/3
3/3

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] PTI for x86-32 Fixes

Hi,

here is a small patch-set to fix two small issues in the PTI implementation for 32 bit x86. The issues are:

1) Fix the 32 bit PCID check. I used the wrong operator there and this caused false-positive warnings.

2) The other two patches make sure the init-hole is not mapped into the user page-table. It is the 32 bit counterpart to commit

c40a56a7818c ('x86/mm/init: Remove freed kernel image areas from alias mapping')

for the 64 bit PTI implementation.

I tested that no-PAE, PAE and 64 bit kernel all boot and have correct user page-tables with identical global mappings between user and kernel.

Regards,

Joerg

Joerg Roedel (3):
x86/mm/pti: Fix 32 bit PCID check
x86/mm/pti: Don't clear permissions in pti_clone_pmd() x86/mm/pti: Clone kernel-image on PTE level for 32 bit

 arch/x86/mm/pti.c | 143 ++++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 100 insertions(+), 43 deletions(-)
Signature · 1 line
2.7.4