[GIT PULL] x86/urgent for v5.16-rc7

From: Borislav Petkov
Date: Sun Dec 26 2021 - 07:42:51 EST


Hi Linus,

please pull a couple more x86/urgent fixes for 5.16.

Thx.

---

The following changes since commit 2585cf9dfaaddf00b069673f27bb3f8530e2039c:

Linux 5.16-rc5 (2021-12-12 14:53:01 -0800)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git tags/x86_urgent_for_v5.16_rc7

for you to fetch changes up to 57690554abe135fee81d6ac33cc94d75a7e224bb:

x86/pkey: Fix undefined behaviour with PKRU_WD_BIT (2021-12-19 22:44:34 +0100)

----------------------------------------------------------------
- Prevent potential undefined behavior due to shifting pkey constants into the sign bit

- Move the EFI memory reservation code *after* the efi= cmdline parsing has happened

- Revert two commits which turned out to be the wrong direction to chase
when accommodating early memblock reservations consolidation and command line parameters
parsing

----------------------------------------------------------------
Andrew Cooper (1):
x86/pkey: Fix undefined behaviour with PKRU_WD_BIT

Borislav Petkov (2):
Revert "x86/boot: Mark prepare_command_line() __init"
Revert "x86/boot: Pull up cmdline preparation and early param parsing"

Mike Rapoport (1):
x86/boot: Move EFI range reservation after cmdline parsing

arch/x86/include/asm/pkru.h | 4 +--
arch/x86/kernel/setup.c | 72 +++++++++++++++++++--------------------------
2 files changed, 32 insertions(+), 44 deletions(-)

--
Regards/Gruss,
Boris.

SUSE Software Solutions Germany GmbH, GF: Ivo Totev, HRB 36809, AG Nürnberg