Skip to content

x86/kasan: Bug fixes for recent CEA changes

Sean Christopherson lkml 2 versions – Applied

Status from this message: The following commit has been merged into the x86/mm branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 9 repliesApplied
  2. v12 patches 1 replySuperseded

Changes in v2 from the cover letter

- Map the entire per-CPU area in one shot. [Andrey]
- Use the "early", i.e. read-only, variant to populate the shadow for the shared portion (read-only IDT mapping) of the CEA. [Andrey]

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5x86/mm: Recompute physical address for every page of per-CPU CEA mappingarch/x86/mm/cpu_entry_area.c+1 -11 reply
2/5x86/mm: Populate KASAN shadow for entire per-CPU range of CPU entry areaarch/x86/mm/cpu_entry_area.c+3 -51 reply
3/5x86/kasan: Rename local CPU_ENTRY_AREA variables to shorten namesarch/x86/mm/kasan_init_64.c+11 -111 reply
4/5x86/kasan: Add helpers to align shadow addresses up and downarch/x86/mm/kasan_init_64.c+22 -181 reply
5/5x86/kasan: Populate shadow for shared chunk of the CPU entry areaarch/x86/mm/kasan_init_64.c+11 -14 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchAndrey Ryabinin
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

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

Read the v2 thread

Cover letter [PATCH v2 0/5] x86/kasan: Bug fixes for recent CEA changes

Three fixes for the recent changes to how KASAN populates shadows for the per-CPU portion of the CPU entry areas. The v1 versions were posted independently as I kept root causing issues after posting individual fixes.

v2:
- Map the entire per-CPU area in one shot. [Andrey]
- Use the "early", i.e. read-only, variant to populate the shadow for the shared portion (read-only IDT mapping) of the CEA. [Andrey]

v1:
- https://lore.kernel.org/all/[email protected]
- https://lore.kernel.org/all/[email protected]
- https://lore.kernel.org/all/[email protected]

Sean Christopherson (5):
x86/mm: Recompute physical address for every page of per-CPU CEA
mapping
x86/mm: Populate KASAN shadow for entire per-CPU range of CPU entry
area
x86/kasan: Rename local CPU_ENTRY_AREA variables to shorten names x86/kasan: Add helpers to align shadow addresses up and down x86/kasan: Populate shadow for shared chunk of the CPU entry area

 arch/x86/mm/cpu_entry_area.c | 10 +++-----
 arch/x86/mm/kasan_init_64.c  | 50 +++++++++++++++++++++++-------------
 2 files changed, 36 insertions(+), 24 deletions(-)

base-commit: 0008712a508f72242d185142cfdbd0646a661a18

Signature · 1 line
2.38.1.431.g37b22c650d-goog