Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4607341iob; Sun, 8 May 2022 19:02:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyshYXfkSt/ofTK6UF3j5XBRCp4k9R8gK9XPgFmDt20HnVhWvory84W3fIMNwghqxwOs4Kn X-Received: by 2002:a17:90b:2243:b0:1dc:3f08:8316 with SMTP id hk3-20020a17090b224300b001dc3f088316mr24247857pjb.194.1652061737467; Sun, 08 May 2022 19:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652061737; cv=none; d=google.com; s=arc-20160816; b=fEiDXApEZUlRaMNu5jVNS6p+BhoH6l68f5s3b4FLaZmjssP4QMegvn5vEnpsMFcZV5 lsLhmwe7R2WhPeeG7PjdZ9xrz5/i8UN1q80O/q8mhAY28D6yCJNJatcttuARtvhVP4ph MH5tDmXtqAme6qe0fG2atuaT0ugoLG1Z2F0vu6jgbTEVTx09iCHhjlrNSFstfXGhV6yR dx0+5gEThXOCpLXlWzVFFbDTRTTt6dQ32tFuzbcsMfvBYcxA7jeQGlDVEbda8OuilwkP jFLYBpYp8cLUAwTQImr1/S5WGUrqS064M3CjWqmCptxO587jEd+OAueP9o4mNTMDPNSA vWjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=Wc2bzqI42oIckbUmFpKNjycPjcAyrjA3sg0Rb2QcJts=; b=rW6GyH8b5KM1riM5iruZaQYj4WRXmJFvhC4YCBSuLVYhUECwAzAPC0g/ZdaNhoZJTj BLqsi3njgOUYLGuPPFhmF4sR41Cjhvu4HMxiG4DN+gjId6z1wwzXepSoliaYeXEQFFsr 5I0q0ay11IYoSVZNuRAKa2H9C9jy9tW/JJMj+OBk/AxsC4dRssuF1bq/tl+7JEp5DvIF iZXjZo/unGPhLk+cyJAVF1HYzpKfi7SQwt9FivFiqGuKHGeKb3pVFBO2NC4KEepikFtM eHeL9bV1aL3+5geuMGshYqel+82ejToacbZwOhPzM+zg68huaN9Y9Spnzhf9bWymmoDS GaFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Wqdhb52A; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id r74-20020a632b4d000000b003c6d5d28d7esi306465pgr.176.2022.05.08.19.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 19:02:17 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Wqdhb52A; dkim=neutral (no key) header.i=@linutronix.de; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EF5C23D4A2; Sun, 8 May 2022 19:02:08 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442697AbiEFPMt (ORCPT + 99 others); Fri, 6 May 2022 11:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229797AbiEFPMp (ORCPT ); Fri, 6 May 2022 11:12:45 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734A96D185; Fri, 6 May 2022 08:09:02 -0700 (PDT) Date: Fri, 06 May 2022 15:08:58 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651849740; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wc2bzqI42oIckbUmFpKNjycPjcAyrjA3sg0Rb2QcJts=; b=Wqdhb52Ai+U0KWwyxU/wWUfVqzJgQxXp5XYqh1WA95BIXQrZ0Qf1ShdDOWa4JGhlAJEFxz 9mxuCEUWkEwAhUX6OeTRYl8t+WA4zIuZmLccT+ZNOllYSBPtky27F4syrhF00BRVILU6RV f7qLGoiALPbZ0221h58kP9IeQuDj0/56f5igsVQi9RatEJgNzXnVlp5aSsiW3Gr1b4iFyw tOdPWa/Fp8y0iDUkWNMXTHlsGL9fH4+xR5ULVSjqMsDPUL6EKabEGg3pDUAfDDCRadC6HF DholtdF2roUQg7pE6EUoKrpPiVtM/YA7tP5lSXs7MlqwgG4WLotndxpstwJxdA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651849740; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wc2bzqI42oIckbUmFpKNjycPjcAyrjA3sg0Rb2QcJts=; b=nqo6nFxwc0dBI0+fNBv4wYkjWtSZI05tBoJ6KRRD4Eo3jCXKFPLjVg9zMsYLfPqwPOd568 /q2ownWBMKCnaVDw== From: "tip-bot2 for Peter Zijlstra" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/asm] objtool: Fix STACK_FRAME_NON_STANDARD reloc type Cc: "Peter Zijlstra (Intel)" , Borislav Petkov , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220506121631.508692613@infradead.org> References: <20220506121631.508692613@infradead.org> MIME-Version: 1.0 Message-ID: <165184973857.4207.8156849772792716816.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/asm branch of tip: Commit-ID: 38f3803fb4fa588ef7645048285493efbe264d79 Gitweb: https://git.kernel.org/tip/38f3803fb4fa588ef7645048285493efbe264d79 Author: Peter Zijlstra AuthorDate: Fri, 06 May 2022 14:14:37 +02:00 Committer: Borislav Petkov CommitterDate: Fri, 06 May 2022 16:07:06 +02:00 objtool: Fix STACK_FRAME_NON_STANDARD reloc type STACK_FRAME_NON_STANDARD results in inconsistent relocation types depending on .c or .S usage: Relocation section '.rela.discard.func_stack_frame_non_standard' at offset 0x3c01090 contains 5 entries: Offset Info Type Symbol's Value Symbol's Name + Addend 0000000000000000 00020c2200000002 R_X86_64_PC32 0000000000047b40 do_suspend_lowlevel + 0 0000000000000008 0002461e00000001 R_X86_64_64 00000000000480a0 machine_real_restart + 0 0000000000000010 0000001400000001 R_X86_64_64 0000000000000000 .rodata + b3d4 0000000000000018 0002444600000002 R_X86_64_PC32 00000000000678a0 __efi64_thunk + 0 0000000000000020 0002659d00000001 R_X86_64_64 0000000000113160 __crash_kexec + 0 Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Borislav Petkov Link: https://lore.kernel.org/r/20220506121631.508692613@infradead.org --- include/linux/objtool.h | 4 +++- tools/include/linux/objtool.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/linux/objtool.h b/include/linux/objtool.h index 586d357..c68d81d 100644 --- a/include/linux/objtool.h +++ b/include/linux/objtool.h @@ -2,6 +2,8 @@ #ifndef _LINUX_OBJTOOL_H #define _LINUX_OBJTOOL_H +#include + #ifndef __ASSEMBLY__ #include @@ -137,7 +139,7 @@ struct unwind_hint { .macro STACK_FRAME_NON_STANDARD func:req .pushsection .discard.func_stack_frame_non_standard, "aw" - .long \func - . + _ASM_PTR \func .popsection .endm diff --git a/tools/include/linux/objtool.h b/tools/include/linux/objtool.h index 586d357..c68d81d 100644 --- a/tools/include/linux/objtool.h +++ b/tools/include/linux/objtool.h @@ -2,6 +2,8 @@ #ifndef _LINUX_OBJTOOL_H #define _LINUX_OBJTOOL_H +#include + #ifndef __ASSEMBLY__ #include @@ -137,7 +139,7 @@ struct unwind_hint { .macro STACK_FRAME_NON_STANDARD func:req .pushsection .discard.func_stack_frame_non_standard, "aw" - .long \func - . + _ASM_PTR \func .popsection .endm