Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp1357980imi; Sat, 23 Jul 2022 03:31:13 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sEJacyiCk5JaajmoLXfaU6VOlX4Vv4tYJs+rFtP0CcS3A6HuK9P80k1vEO176qZ7DfZVEa X-Received: by 2002:a63:f95c:0:b0:412:9d5b:fbfd with SMTP id q28-20020a63f95c000000b004129d5bfbfdmr3372481pgk.103.1658572273146; Sat, 23 Jul 2022 03:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658572273; cv=none; d=google.com; s=arc-20160816; b=WmLyeChDqJRpC1YsSh6vWL/lqwGicYnQz9niO+RRgSPUrwE9oZ08rjq9812X6YFAkE uX0+ej+sodYr/12ArtZZ0M4nGcrSYU4UZez4cdZh1Mo4Y0yQgdw6olTi+znsZSX2/1ME c5/9Qq4OXcu51WwaDYD2ajwNjSo3nMHcbo58OL/2/JqZCXy0+RB6YEADcN8aaL84z9/D qj6L4HSHzSqE6Li0t/M+Sa5mR0cbhR3ZrOS0f37+eC//MfXiN+3gXQ+7zmKW/a/qErY4 J8WChdA3o+tEm72MkmlKxg+GLI/+vAttmeyqOtyphNB1B3f2pvVLkfvdGUrCTg+5FqOC fYfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=shPfA4VrLOcA7ea2l4vd1uSpydXF4fBQr+v82fxzpgU=; b=iceXvWOF/+MBGa20b5laVl56/FgWwwjVN/nker+gXdQDPTq4DLcbD60dVXftIEw1sF Yq8SsO5UORQpwoX61HW51Wrv1Qa6qjNkk3+II3HzE/ItqRDMBEZ8iUD6V1Vxme8x4CQd fPpdjcNmgUpIiVBUCBwvRztP1yefkWcO3Zt1iZztzfxObBbTzxMJnVIEA/pL0i3hv5jn rccOgcfyyhC3FrpM9h8Pa1hTSfcSgACF/qOSBOtocRJhHmAIXfvCXeuSNYTq5K6QZV6o NmzQUnINPB43ZiSoUvwmmpK9cReNdTu6SvFoJuqF4u0/ZWvCjeBjosQSFM3Xd6MYpjzL LGvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gTuH8lCv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=RCzMsFzP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e11-20020a170903240b00b0016252715440si196294plo.494.2022.07.23.03.30.57; Sat, 23 Jul 2022 03:31:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=gTuH8lCv; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=RCzMsFzP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235137AbiGWJu6 (ORCPT + 99 others); Sat, 23 Jul 2022 05:50:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230216AbiGWJu4 (ORCPT ); Sat, 23 Jul 2022 05:50:56 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0745B18356 for ; Sat, 23 Jul 2022 02:50:55 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1658569853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=shPfA4VrLOcA7ea2l4vd1uSpydXF4fBQr+v82fxzpgU=; b=gTuH8lCvrU/A4vFuJ1aZpHJcMTGIkzVdeyAiaBz0QTceXPjzqqYUWkRAgYfFmZUn+8A1Bh X2v8cWsPLahARzM93dmA1Kj8Hp+3oDl3P3w5FiEeYmR8DROfX61NHrXSuqtjMTPm5r3Bs2 v4D208tC17QQ1sCCJrQYjTA9fLPtkJXM4+GNFbtCsD6VdelKURqUxCRpOkCuDp2paT73bI 5EL3HDp8WY+uSTsAEGDB+DwFlbxKZ/yUZq1hFz9G6hotOSx362k7AKk6h0ipp4cZ3XpKbs U5WdHCdJOoPa9M5a+Ypo4YPr7a4qE7fiBLCsFTSmuHR8YsUjwoxlEiE+IEZsZA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1658569853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=shPfA4VrLOcA7ea2l4vd1uSpydXF4fBQr+v82fxzpgU=; b=RCzMsFzP8YCwrK+yaG7+EIl8xCmQd240TRmjXpCVs51EYaMv96zKym6wxrtHEGR1I0YyMW AlzFV8hruwh+HLCg== To: Peter Zijlstra , Sami Tolvanen Cc: Linus Torvalds , Joao Moreira , LKML , the arch/x86 maintainers , Tim Chen , Josh Poimboeuf , "Cooper, Andrew" , Pawan Gupta , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , "Moreira, Joao" , "Nuzman, Joseph" , Steven Rostedt , "Gross, Jurgen" , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann , Peter Collingbourne , Kees Cook Subject: Re: [patch 00/38] x86/retbleed: Call depth tracking mitigation In-Reply-To: References: <2f7f899cb75b79b08b0662ff4d2cb877@overdrivepizza.com> <87fsiyuhyz.ffs@tglx> Date: Sat, 23 Jul 2022 11:50:53 +0200 Message-ID: <87ilnotawy.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 On Thu, Jul 21 2022 at 17:54, Peter Zijlstra wrote: > On Wed, Jul 20, 2022 at 11:13:16PM +0200, Peter Zijlstra wrote: > The idea is the above callthunk that makes any offset work by not having > the full hash as an immediate and allow kCFI along with > -fpatchable-function-entry=N,M and include M in the offset. > > Specifically, I meant to use -fpatchable-function-entry=16,16, but alas, > I never got that far. That's embarrasing. I missed that option in the maze of gcc options. That would have spared me to stare at gcc code :)