Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp150911rdg; Thu, 12 Oct 2023 01:17:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbsMQ9ier3DSceRnyRwBxE3gTuZAKjr3bS5OMXskgozMpwb2qlo9jwpZUItyTq+DIIPyBN X-Received: by 2002:a17:902:e847:b0:1c3:dad8:bb99 with SMTP id t7-20020a170902e84700b001c3dad8bb99mr21847387plg.64.1697098619729; Thu, 12 Oct 2023 01:16:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697098619; cv=none; d=google.com; s=arc-20160816; b=IVe6C6Umf/T1q1FQzS/D6zgWoxjVIMJ1ihbQNCpDe1Xh4SSd2XgSHJf38A82ZZ08H4 1l7b6+zevj+szLFveTEoQ1xCqkwHeSSWw3i8IH6j8No/ckumuhktmBg6NfBOh7X7XheP weReN6JTG6KaL974jGHLuipYJAxKj+Hp7B42zMWPxFmn5jYD/7JWIv2SywefK8EAazLX LAwv97jgRBBPdJNfZvpgfmeAZ6w0nK5lAo0jooctE/wH4KLMCLTl0SuLgvAqTnLH27My kjE9iFGFB09vFLjmoAihjyD93aqnp7OU4lXFbNpnHu1C7Eje1mFKqJ3z2xfF2Qrpf55b 3+aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=uRhtON6jaCtsunY1zDoSSX/u+Cd/XARVX/NR2R963YU=; fh=RG1OcOTtXcueKgnCmYB0MOApSppAqDAbmT1u5P23fqs=; b=c5TLzerBJOdLv4mYW8woNPeOCXqPtgOwWGj5lET9TqvU6qLw1v4eZmu1NXcnRVsy3g i1iilmX918MUoyRejVu8+TwzRuPPp7awdWSu+2cZmNfLxcd0vni3KAqfYgi8ECny86IR xEzHkCPd+zvf2EGdD/QTrj0v26BiirutiU7gxwaSgtyh0gg0dZ07u7uE/KkEYDxAll0W DqIC8fNBGiNPywD9ISQ01Vkcy+PRea5vvqzDt5qsHj3AWJJtXR7bXYZDkg67m/TW7IIm rCxXEDgO7EH9rh0FMJy2hxwwJcMKkxsT3W+ql5z1Wz8ctztQnOx+Q8JQgyyGd3XgVsCZ gm3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="ba6jT/W/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id k11-20020a170902c40b00b001c61a27f5b6si1838992plk.400.2023.10.12.01.16.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 01:16:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b="ba6jT/W/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 68A9980AB59C; Thu, 12 Oct 2023 01:16:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235313AbjJLIQu (ORCPT + 99 others); Thu, 12 Oct 2023 04:16:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234125AbjJLIQt (ORCPT ); Thu, 12 Oct 2023 04:16:49 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9318290 for ; Thu, 12 Oct 2023 01:16:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=uRhtON6jaCtsunY1zDoSSX/u+Cd/XARVX/NR2R963YU=; b=ba6jT/W/0iFESWBpAP5bN9xBmu gmJM9l7m1pFAUR+HdIHZMsRUl2lV3SvbVlQwSkLoLxtiZ3xrxtCN5dXi0gXzfW62T10WxJopeAIP3 G0f+zLFs4xRv560xamg4f6T0LwTYEpik7zQ+tL7NFNzS6MPjPap3wp3boSnv7fu9Pxl3R04hn+x/a wFQXYmf9j8r6Oo9Ekmm8i9SnG7vZ9WJTXl0qpfqHNsarag/LvQwAZBG1zYnkJ3dylKw0ZdbrJ8TfX X/VJk2HcZIl64D9h49Po+YxSgOweYGekvYQZ+YG1CYSlFFHa9c1LTX5/gHCstu1XK41KvN486U3kw btp3p74g==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.96 #2 (Red Hat Linux)) id 1qqqru-001fFs-2x; Thu, 12 Oct 2023 08:16:32 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 0CFE730036C; Thu, 12 Oct 2023 10:16:32 +0200 (CEST) Date: Thu, 12 Oct 2023 10:16:31 +0200 From: Peter Zijlstra To: Josh Poimboeuf Cc: Borislav Petkov , David Kaplan , x86@kernel.org, luto@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] Revert "x86/retpoline: Remove .text..__x86.return_thunk section" Message-ID: <20231012081631.GJ6307@noisy.programming.kicks-ass.net> References: <20231010171020.462211-2-david.kaplan@amd.com> <20231010174833.GG14330@noisy.programming.kicks-ass.net> <20231010195721.p5pb273kevg7ydxz@treble> <20231010200429.GIZSWuTWSUM9aId7a6@fat_crate.local> <20231010201912.7pjksbparssqu34k@treble> <20231010212254.ypk2wdogno55shit@treble> <20231011074142.GK14330@noisy.programming.kicks-ass.net> <20231011162843.grv6kixw4ides6uw@treble> <20231011223513.GH6307@noisy.programming.kicks-ass.net> <20231012022758.lf62lgf5jx5xrno7@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231012022758.lf62lgf5jx5xrno7@treble> X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 12 Oct 2023 01:16:57 -0700 (PDT) On Wed, Oct 11, 2023 at 07:27:58PM -0700, Josh Poimboeuf wrote: > From an object code standpoint, objtool is the only one who cares about > the relocs. It's a good idea to make objtool more robust against > non-relocs regardless, as the reloc assumption could always be broken > later by LTO. AFAIK LTO runs before the actual link stage and doesn't resolve inter-section references, but yeah, that might just be an implementation detail. Fair enough.