]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Use __nostackprotect for sme_encrypt_kernel
authorLaura Abbott <labbott@redhat.com>
Sun, 21 Jan 2018 01:14:02 +0000 (17:14 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 21 Jan 2018 01:22:54 +0000 (17:22 -0800)
commit5a7705dd577d3634a93e714c989dba83a5ccdde6
treec9fe536ef27586f2936271c9109719a55a125c73
parent6f562126bfbd4209201568ee73d4f149baffabfa
x86: Use __nostackprotect for sme_encrypt_kernel

Commit 0bbd40047aba ("x86/mm: Use a struct to reduce parameters for SME
PGD mapping") moved some parameters into a structure.

The structure was large enough to trigger the stack protection canary in
sme_encrypt_kernel which doesn't work this early, causing reboots.

Mark sme_encrypt_kernel appropriately to not use the canary.

Fixes: 0bbd40047aba ("x86/mm: Use a struct to reduce parameters for SME PGD mapping")
Signed-off-by: Laura Abbott <labbott@redhat.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/mm/mem_encrypt.c