]> git.baikalelectronics.ru Git - kernel.git/commit
x86/boot: Parse SRAT table and count immovable memory regions
authorChao Fan <fanc.fnst@cn.fujitsu.com>
Wed, 23 Jan 2019 11:08:49 +0000 (19:08 +0800)
committerBorislav Petkov <bp@suse.de>
Fri, 1 Feb 2019 10:52:55 +0000 (11:52 +0100)
commitff095a42b9dabbde126f0be7ba3c43d2d1ca3bb2
treed8b87c8b482ccb279accb74e82bc8f2d7ef3e346
parentd037ce27e21180460a73f659a82a49d8807cc9cd
x86/boot: Parse SRAT table and count immovable memory regions

Parse SRAT for the immovable memory regions and use that information to
control which offset KASLR selects so that it doesn't overlap with any
movable region.

 [ bp:
   - Move struct mem_vector where it is visible so that it builds.
   - Correct comments.
   - Rewrite commit message.
   ]

Signed-off-by: Chao Fan <fanc.fnst@cn.fujitsu.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Baoquan He <bhe@redhat.com>
Cc: <caoj.fnst@cn.fujitsu.com>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: <indou.takao@jp.fujitsu.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: <kasong@redhat.com>
Cc: <keescook@chromium.org>
Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Cc: <msys.mizuma@gmail.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190123110850.12433-7-fanc.fnst@cn.fujitsu.com
arch/x86/boot/compressed/acpi.c
arch/x86/boot/compressed/kaslr.c
arch/x86/boot/compressed/misc.h