]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mm: Disable branch profiling in mem_encrypt.c
authorTom Lendacky <thomas.lendacky@amd.com>
Fri, 29 Sep 2017 16:24:19 +0000 (11:24 -0500)
committerIngo Molnar <mingo@kernel.org>
Fri, 29 Sep 2017 17:37:51 +0000 (19:37 +0200)
commit93da5905e586c93065e13729ca868297fdae09a4
treebb467dfcdca2a208d8dbac21d1b810442fb79916
parent5a1487e44c2f1bdc34e13e9b3a828a7927d7662e
x86/mm: Disable branch profiling in mem_encrypt.c

Some routines in mem_encrypt.c are called very early in the boot process,
e.g. sme_encrypt_kernel(). When CONFIG_TRACE_BRANCH_PROFILING=y is defined
the resulting branch profiling associated with the check to see if SME is
active results in a kernel crash. Disable branch profiling for
mem_encrypt.c by defining DISABLE_BRANCH_PROFILING before including any
header files.

Reported-by: kernel test robot <lkp@01.org>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Acked-by: Borislav Petkov <bp@suse.de>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170929162419.6016.53390.stgit@tlendack-t1.amdoffice.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/mm/mem_encrypt.c