Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1560252ybb; Thu, 26 Mar 2020 03:09:25 -0700 (PDT) X-Google-Smtp-Source: ADFU+vso3PtoOzUrByqiACXxcR3KXmQaJU+I3K9su5rTWSsw5zlRQHvZNXfT2mjue1xcuLItr3cP X-Received: by 2002:aca:50d0:: with SMTP id e199mr1237108oib.133.1585217365706; Thu, 26 Mar 2020 03:09:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585217365; cv=none; d=google.com; s=arc-20160816; b=p2Cew5/tm2ZlJkR9wDWF/T1Gvd88sv1J+Z+q8M/MLphG0tGMlPBOq+0V/pK1PzpNOv 1/I1P4SsSKP8oMzt4I+aa2hSfs3wtg0QRsiq7DWVB68ml+K4z681tOXeNKM2VGvuBQwk wy/XUil/ei2EDuLbltH+6GGxSrhuvl88c3SwISy0vzefnTbMWgaPAtDyQM3pkTJfSbQu pGCASEW3lDCWowWt0NjSuOt/P/dTLggvDyBaOj2w5rUdLmTlEa0946yaingB7qqWPP9T iql97Fyv5D9Lp2BpjnSlmbdmNRn0PovFU9LNtH6d616XI0dcYxFNZwDoW6mYVyMAd0h7 lYNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=k+zs0AT52n0u0amCvVvytt2xPJnjbscEJifU51V/5Yo=; b=LffcSPOAn+5JjitZEEJ0l1rkNNow3SGvGCBhWm53cH395ubvvQV45nESLI9r4hsok1 tJC8OgyL4c3q3RbQxkDqN+4OjFBTDcFC7ILPxq+GYYr8iWASFFnJLX/NQrFwjjYpLfHR UjUDy/ixbuFGxxttQAWTjiq9eT9P8ZvowHxXGnzJ6VUIOzec+wO51hAskZTLH41kKvKA Wq1bT9nAkNFfScI6cgcTYo0tEujajdgQSCdgCSjUNSLD+llUYM4B/cTYRx4j8fNKAmYD Ouf/bMJT8xbZxfk/pwWHQLHp/V8N9DGW7mBywPnxWkNXd+z/tR11ZbMm2dl+wMtFe0Sa /Y+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14si882674otl.122.2020.03.26.03.09.12; Thu, 26 Mar 2020 03:09:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728041AbgCZKIv (ORCPT + 99 others); Thu, 26 Mar 2020 06:08:51 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:50240 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728001AbgCZKIu (ORCPT ); Thu, 26 Mar 2020 06:08:50 -0400 Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jHPRL-00048e-7F; Thu, 26 Mar 2020 11:08:43 +0100 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id CE4461C0478; Thu, 26 Mar 2020 11:08:37 +0100 (CET) Date: Thu, 26 Mar 2020 10:08:37 -0000 From: "tip-bot2 for Peter Zijlstra" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/objtool] x86/kexec: Make relocate_kernel_64.S objtool clean Cc: Josh Poimboeuf , "Peter Zijlstra (Intel)" , Miroslav Benes , x86 , LKML In-Reply-To: <20200324160924.202621656@infradead.org> References: <20200324160924.202621656@infradead.org> MIME-Version: 1.0 Message-ID: <158521731743.28353.7607166027983057055.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/objtool branch of tip: Commit-ID: 36cc552055a5f95bab479533b4ebbad6a6cea0e1 Gitweb: https://git.kernel.org/tip/36cc552055a5f95bab479533b4ebbad6a6cea0e1 Author: Peter Zijlstra AuthorDate: Tue, 24 Mar 2020 15:35:42 +01:00 Committer: Peter Zijlstra CommitterDate: Wed, 25 Mar 2020 18:28:28 +01:00 x86/kexec: Make relocate_kernel_64.S objtool clean Having fixed the biggest objtool issue in this file; fix up the rest and remove the exception. Suggested-by: Josh Poimboeuf Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Miroslav Benes Acked-by: Josh Poimboeuf Link: https://lkml.kernel.org/r/20200324160924.202621656@infradead.org --- arch/x86/kernel/Makefile | 1 - arch/x86/kernel/relocate_kernel_64.S | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile index 9b294c1..8be5926 100644 --- a/arch/x86/kernel/Makefile +++ b/arch/x86/kernel/Makefile @@ -28,7 +28,6 @@ KASAN_SANITIZE_dumpstack_$(BITS).o := n KASAN_SANITIZE_stacktrace.o := n KASAN_SANITIZE_paravirt.o := n -OBJECT_FILES_NON_STANDARD_relocate_kernel_$(BITS).o := y OBJECT_FILES_NON_STANDARD_test_nx.o := y OBJECT_FILES_NON_STANDARD_paravirt_patch.o := y diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S index cc5c8b9..a4d9a26 100644 --- a/arch/x86/kernel/relocate_kernel_64.S +++ b/arch/x86/kernel/relocate_kernel_64.S @@ -9,6 +9,8 @@ #include #include #include +#include +#include /* * Must be relocatable PIC code callable as a C function @@ -39,6 +41,7 @@ .align PAGE_SIZE .code64 SYM_CODE_START_NOALIGN(relocate_kernel) + UNWIND_HINT_EMPTY /* * %rdi indirection_page * %rsi page_list @@ -105,6 +108,7 @@ SYM_CODE_START_NOALIGN(relocate_kernel) SYM_CODE_END(relocate_kernel) SYM_CODE_START_LOCAL_NOALIGN(identity_mapped) + UNWIND_HINT_EMPTY /* set return address to 0 if not preserving context */ pushq $0 /* store the start address on the stack */ @@ -192,6 +196,7 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped) 1: popq %rdx leaq PAGE_SIZE(%r10), %rsp + ANNOTATE_RETPOLINE_SAFE call *%rdx /* get the re-entry point of the peer system */ @@ -209,6 +214,7 @@ SYM_CODE_START_LOCAL_NOALIGN(identity_mapped) SYM_CODE_END(identity_mapped) SYM_CODE_START_LOCAL_NOALIGN(virtual_mapped) + UNWIND_HINT_EMPTY movq RSP(%r8), %rsp movq CR4(%r8), %rax movq %rax, %cr4 @@ -230,6 +236,7 @@ SYM_CODE_END(virtual_mapped) /* Do the copies */ SYM_CODE_START_LOCAL_NOALIGN(swap_pages) + UNWIND_HINT_EMPTY movq %rdi, %rcx /* Put the page_list in %rcx */ xorl %edi, %edi xorl %esi, %esi