From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752552AbdI2UUr (ORCPT ); Fri, 29 Sep 2017 16:20:47 -0400 Received: from terminus.zytor.com ([65.50.211.136]:33431 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752155AbdI2UUp (ORCPT ); Fri, 29 Sep 2017 16:20:45 -0400 Date: Fri, 29 Sep 2017 13:15:03 -0700 From: tip-bot for Tom Lendacky Message-ID: Cc: lkp@01.org, mingo@kernel.org, peterz@infradead.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, torvalds@linux-foundation.org, hpa@zytor.com, bp@alien8.de, thomas.lendacky@amd.com, bp@suse.de Reply-To: thomas.lendacky@amd.com, bp@suse.de, bp@alien8.de, hpa@zytor.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, tglx@linutronix.de, peterz@infradead.org, mingo@kernel.org, lkp@01.org In-Reply-To: <20170929162419.6016.53390.stgit@tlendack-t1.amdoffice.net> References: <20170929162419.6016.53390.stgit@tlendack-t1.amdoffice.net> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/mm: Disable branch profiling in mem_encrypt.c Git-Commit-ID: bc829ee36e0ec92383c9d9b88fe08f00d4d592f8 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: bc829ee36e0ec92383c9d9b88fe08f00d4d592f8 Gitweb: https://git.kernel.org/tip/bc829ee36e0ec92383c9d9b88fe08f00d4d592f8 Author: Tom Lendacky AuthorDate: Fri, 29 Sep 2017 11:24:19 -0500 Committer: Ingo Molnar CommitDate: Fri, 29 Sep 2017 19:37:51 +0200 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 Signed-off-by: Tom Lendacky Acked-by: Borislav Petkov Cc: Borislav Petkov Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/20170929162419.6016.53390.stgit@tlendack-t1.amdoffice.net Signed-off-by: Ingo Molnar --- arch/x86/mm/mem_encrypt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/mm/mem_encrypt.c b/arch/x86/mm/mem_encrypt.c index 3fcc8e0..16c5f37 100644 --- a/arch/x86/mm/mem_encrypt.c +++ b/arch/x86/mm/mem_encrypt.c @@ -10,6 +10,8 @@ * published by the Free Software Foundation. */ +#define DISABLE_BRANCH_PROFILING + #include #include #include