lkml.org 
[lkml]   [2020]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/5] Couple of bugfixes to sev-es series
Date
With the SEV-ES series, the kernel command line is no longer guaranteed
to be mapped on entry into the main kernel. This fixes that, and a
stackprotector issue that cropped up on head64.c.

The first three patches are preparatory cleanups. Patch 4 fixes the
mapping issue and patch 5 disables stack protector for head code.

Changes from v1:
- Add comments suggested by Joerg
- Split out cmdline into cmdline.h and use it
- Leave add_identity_map() as [start,end)

v1: https://lore.kernel.org/lkml/20201007195351.776555-1-nivedita@alum.mit.edu/

Arvind Sankar (5):
x86/boot: Initialize boot_params in startup code
x86/boot: Split out command-line related declarations
x86/boot/64: Show original faulting address in case of error
x86/boot/64: Explicitly map boot_params and command line
x86/head/64: Disable stack protection for head$(BITS).o

arch/x86/boot/compressed/acpi.c | 1 +
arch/x86/boot/compressed/cmdline.c | 1 +
arch/x86/boot/compressed/cmdline.h | 13 +++++++
.../boot/compressed/early_serial_console.c | 1 +
arch/x86/boot/compressed/head_32.S | 12 ++++---
arch/x86/boot/compressed/head_64.S | 35 +++++++------------
arch/x86/boot/compressed/ident_map_64.c | 22 +++++++++---
arch/x86/boot/compressed/kaslr.c | 7 +---
arch/x86/boot/compressed/misc.c | 10 +-----
arch/x86/boot/compressed/misc.h | 4 ---
arch/x86/boot/compressed/pgtable_64.c | 7 ++--
arch/x86/kernel/Makefile | 2 ++
12 files changed, 58 insertions(+), 57 deletions(-)
create mode 100644 arch/x86/boot/compressed/cmdline.h

--
2.26.2

\
 
 \ /
  Last update: 2020-10-08 21:16    [W:0.281 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site