linux/Documentation/arch/x86
Chris Koch 43b1d3e68e kexec: Allocate kernel above bzImage's pref_address
A relocatable kernel will relocate itself to pref_address if it is
loaded below pref_address. This means a booted kernel may be relocating
itself to an area with reserved memory on modern systems, potentially
clobbering arbitrary data that may be important to the system.

This is often the case, as the default value of PHYSICAL_START is
0x1000000 and kernels are typically loaded at 0x100000 or above by
bootloaders like iPXE or kexec. GRUB behaves like the approach
implemented here.

Also fixes the documentation around pref_address and PHYSICAL_START to
be accurate.

[ dhansen: changelog tweak ]

Co-developed-by: Cloud Hsu <cloudhsu@google.com>
Signed-off-by: Cloud Hsu <cloudhsu@google.com>
Signed-off-by: Chris Koch <chrisko@google.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Link: https://lore.kernel.org/all/20231215190521.3796022-1-chrisko%40google.com
2024-02-22 15:13:57 -08:00
..
i386
x86_64
amd_hsmp.rst platform/x86/amd/hsmp: add support for metrics tbl 2023-10-12 16:29:58 +03:00
amd-memory-encryption.rst x86/sev/docs: Update document URL in amd-memory-encryption.rst 2023-09-22 11:29:23 +02:00
boot.rst kexec: Allocate kernel above bzImage's pref_address 2024-02-22 15:13:57 -08:00
booting-dt.rst
buslock.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
cpuinfo.rst Documentation/x86: Document what /proc/cpuinfo is for 2023-12-09 08:52:53 +01:00
earlyprintk.rst
elf_auxvec.rst
entry_64.rst
exception-tables.rst
features.rst docs: kernel_feat.py: fix potential command injection 2024-01-11 09:21:01 -07:00
ifs.rst
index.rst Documentation/x86: Add CET shadow stack description 2023-08-02 15:01:50 -07:00
intel_txt.rst
intel-hfi.rst
iommu.rst x86/iommu/docs: Update AMD IOMMU specification document URL 2023-09-24 10:47:35 +02:00
kernel-stacks.rst
mds.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
microcode.rst
mtrr.rst
orc-unwinder.rst
pat.rst
pti.rst x86/docs: Remove reference to syscall trampoline in PTI 2023-12-12 14:43:59 +01:00
resctrl.rst x86/resctrl: Display RMID of resource group 2023-10-17 14:05:40 +02:00
sgx.rst Documentation: Fix typos 2023-08-18 11:29:03 -06:00
shstk.rst x86/shstk: Add ARCH_SHSTK_STATUS 2023-08-02 15:01:51 -07:00
sva.rst
tdx.rst Documentation/x86: Add documentation for TDX host support 2023-12-12 08:46:46 -08:00
tlb.rst
topology.rst x86/cpu: Move cpu_l[l2]c_id into topology info 2023-10-10 14:38:18 +02:00
tsx_async_abort.rst
usb-legacy-support.rst
xstate.rst
zero-page.rst