[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1569358538.git.steve.wahl@hpe.com>
Date: Tue, 24 Sep 2019 16:03:22 -0500
From: Steve Wahl <steve.wahl@....com>
To: Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>, x86@...nel.org,
Juergen Gross <jgross@...e.com>,
"Kirill A. Shutemov" <kirill@...temov.name>,
Brijesh Singh <brijesh.singh@....com>,
Steve Wahl <steve.wahl@....com>,
Jordan Borgner <mail@...dan-borgner.de>,
Feng Tang <feng.tang@...el.com>, linux-kernel@...r.kernel.org,
Zhenzhong Duan <zhenzhong.duan@...cle.com>,
Dave Hansen <dave.hansen@...el.com>
Cc: Baoquan He <bhe@...hat.com>, russ.anderson@....com,
dimitri.sivanich@....com, mike.travis@....com
Subject: [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(-)
--
2.21.0
--
Steve Wahl, Hewlett Packard Enterprise
Powered by blists - more mailing lists