Skip to content

x86/boot/64: Avoid mapping reserved ranges in early page tables.

Steve Wahl lkml stable 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesApplied
  2. v22 patches 7 repliesSuperseded
  3. v11 patch 13 repliesSuperseded

Changes in v3 from the cover letter

* Patch 1: Added further inline comments.
* Patch 2: None.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area.arch/x86/kernel/head64.c+20 -22 replies
2/2x86/boot/64: round memory hole size up to next PMD page.arch/x86/boot/compressed/misc.c+19 -61 reply

Reviews trailers per patch

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

PatchKirill A. ShutemovDave Hansen
1/2A-b A-b
2/2A-b

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

Read the v3 thread

Cover letter [PATCH v3 0/2] x86/boot/64: Avoid mapping reserved ranges in early page tables.

This patch set narrows the valid space addressed by the page table level2_kernel_pgt to only contain ranges checked against the "usable RAM" list provided by the BIOS.

Prior to this, some larger than needed mappings were occasionally crossing over into spaces marked reserved, allowing the processor to access these reserved spaces, which were caught by the hardware and caused BIOS to halt on our platform (UV).

Changes since v1:

* Cover letter added because there's now two patches.

* Patch 1: Added comment and re-worked changelog text.

* Patch 2: New change requested by Dave Hansen to handle the case that the mapping of the last PMD page for the kernel image could cross a reserved region boundary.

Changes since v2:

* Patch 1: Added further inline comments.
* Patch 2: None.

Steve Wahl (2):
x86/boot/64: Make level2_kernel_pgt pages invalid outside kernel area. x86/boot/64: round memory hole size up to next PMD page.

 arch/x86/boot/compressed/misc.c | 25 +++++++++++++++++++------
 arch/x86/kernel/head64.c        | 22 ++++++++++++++++++++--
 2 files changed, 39 insertions(+), 8 deletions(-)
Signature · 5 lines
2.21.0


-- 
Steve Wahl, Hewlett Packard Enterprise