Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp381997rdg; Tue, 10 Oct 2023 13:07:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcFFUwN5NmZSBbKDXiZ5JmMzxhK1FPofR+AYeU41XwoGLhaW3/2HEWHglXpPAsBxb6Ssnu X-Received: by 2002:a05:6a20:1456:b0:134:73f6:5832 with SMTP id a22-20020a056a20145600b0013473f65832mr26514729pzi.16.1696968470542; Tue, 10 Oct 2023 13:07:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696968470; cv=none; d=google.com; s=arc-20160816; b=n7QfHfVCc+PgDM6NF1nqwYsksLK6EJ7lCFXPCB8HG15REocLTDU1AQIiLFfzz+g8sD aFzR57rRVZMojHWzUQXZhUbKMB2DtqMF/cDvp2r+sC7k3NDcruhNZwygnghFZnAfkV5T 3Jn4FCgEku/vNkBjXb5wyN5rfFYXoai8bn3u8vjfmssLjH5UciVgndaPkTJevJy5BB75 Cf+A0JzcFwr7x+71+Bp/VRKwU1jZwRrqVMZ0thcb5+jLTXDx8OYYePAm4dmOnbuPE/AY 9Zhz8CROji3h4IYMkZ9dLxpapIsRs+An1pDfyR/izMfRgbwK8ueCXmZHV8EKJ4SHykFM G2LQ== 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=BDKdSZWI1t4rPS1G0WEtrLn+R5W1McIc6NS5rdPWBYo=; fh=SdY8oDoVM6vpEgpdz/kHrxDjohfqGmqMKULR7vZH3+I=; b=DyD6mk4fsmLbf8pnOUu+1z8zzKj2CK+79ETiQ99lPklWfgt1yqcho/kOmbNoRj+E/e NyO9gU2er22KATiRA42WKEt/CQrk+N77vPGCLD9fGEfbffCuUHg79YTmqyscCkA4Z5a0 Y9BbMJYr2qqMuhYvuqVyUwJhPN4bIHSNJs6BF/Q8yfmHoTutthrmfiGYQbk/LkjlckRL LB/BbXGXtaQFUbRyWAPqHPu/SLoVH+YhUoJ/jdDwusi5eIHF+GgNPcT/eRWCsf+lVN+/ x+ejVC6y4tbUxMd9NVTb+AC4cT/ipmtiKm72LUyPZHl9nurIQFRJ6IfufkNiWMgwnviT fYnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=XXrESqsN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id u21-20020a056a00099500b0068a68054661si10840605pfg.71.2023.10.10.13.07.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 13:07:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=XXrESqsN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 0A579826ED6C; Tue, 10 Oct 2023 13:07:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234723AbjJJUHL (ORCPT + 99 others); Tue, 10 Oct 2023 16:07:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234421AbjJJUGy (ORCPT ); Tue, 10 Oct 2023 16:06:54 -0400 Received: from mail.alien8.de (mail.alien8.de [IPv6:2a01:4f9:3051:3f93::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3BAB93 for ; Tue, 10 Oct 2023 13:04:45 -0700 (PDT) Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id B2B6B40E014B; Tue, 10 Oct 2023 20:04:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id KGg7Umx757r3; Tue, 10 Oct 2023 20:04:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1696968281; bh=BDKdSZWI1t4rPS1G0WEtrLn+R5W1McIc6NS5rdPWBYo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XXrESqsNZb+oI+9Em3rNQHFUgFwk8Ia+3gekXb7BpntVGHMAWHxxcEIiUsQp5RHJ4 msKRfmQd/xPW0g96dJjl9yW+gLJzQO0Dv+zY7HoxDv+nO5lMjSG6QFVv+nnQtKnFoR LD6PlMxymWFxUKP15mE+lqgT60MbOSU8Sv3cw/sppUFXn07aOjgFVTCUaEPR/1M0V9 3+nI7l35GWkN27jWMxRj8f++eyB7FcFNBLuTieXPw4v67MHXJ4k31T2Qwz66u6V4ay WjWm/zBHv0xnYG326YWQrDNuwXl8/ZCnLPcd3rjTV0qRJ1HSAMPrOsByBOG2yW0GnZ 8ErDhLwxgIO5DkuE8L4UInAUeAA+H9ZmGT7TCYhpsjagFdLWAIFLTsK/Bdl45fEr7/ J8DmGDpz5XDv6vYSAzd659rdW2v6daEhFSUCuDrQ/E7CqUqxgIpuwLIbBln89g2Vus Gk6Axy7av8NH/FtWGwugiTMGGWi9Evl97Wq3XwtIwi9RZ2VGGzH2D+4U2giiEVIXFm w89JvoIuL2005FACZKF8H96WnhesTdCYg7qkBNRY/+7n52jb5Wko7kQonbElsWBjPA J13MntSFWfSrMNiv5Drowr7gYnFIXVsR2HypLUrNz7190fYRVSQ0kETuujo5LZVLal e7Z5CVUVZKlbyDbIky8DawPw= Received: from zn.tnic (pd953036a.dip0.t-ipconnect.de [217.83.3.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E5DAB40E0187; Tue, 10 Oct 2023 20:04:34 +0000 (UTC) Date: Tue, 10 Oct 2023 22:04:29 +0200 From: Borislav Petkov To: Josh Poimboeuf Cc: Peter Zijlstra , 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: <20231010200429.GIZSWuTWSUM9aId7a6@fat_crate.local> References: <20231010171020.462211-1-david.kaplan@amd.com> <20231010171020.462211-2-david.kaplan@amd.com> <20231010174833.GG14330@noisy.programming.kicks-ass.net> <20231010195721.p5pb273kevg7ydxz@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231010195721.p5pb273kevg7ydxz@treble> X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Tue, 10 Oct 2023 13:07:47 -0700 (PDT) X-Spam-Level: ** On Tue, Oct 10, 2023 at 12:57:21PM -0700, Josh Poimboeuf wrote: > Also we could make objtool properly detect the non-relocated jump > target. I was wondering about that... I guess it can compute the JMP target and compare it to the address of __x86_return_thunk? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette