Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3996577rdg; Wed, 18 Oct 2023 11:39:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG7RgXY95pcxRLSRgCESdj9BcD1HFwIWhKWXN7oKMJj5Fr+Z3QLQduw5llETPBJB0/fc3GR X-Received: by 2002:a05:6a00:2e0e:b0:6b7:cc4b:21d8 with SMTP id fc14-20020a056a002e0e00b006b7cc4b21d8mr5826070pfb.1.1697654385110; Wed, 18 Oct 2023 11:39:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697654385; cv=none; d=google.com; s=arc-20160816; b=S7vS4x4LQZW5FZx/Rp6XgmuXK7cPj3hyxbwiJCsH4PB8ncuFMMBcNXWd0WAzuYyzZq iZiaR/BbgYYBgCQZmm7YVBLtVL/pLQ5aWox0PPeE2uwyADMbL/M2d4DxSMtMXMtB+caj VM6/7Bl2wP93YlHN3OyxMDfQUriVR2dah7kajTe6VwavZ7C0Zz2eUpHkdwDytqzx8Yj3 Nfpl2hbWSSOxWbHaHT6mMUwxuSfdgOCGIq13hd59OXdQ90RdveW+BPDbyZik7XG9REB4 s/Nt+22wQ/sgVmnYsrMR/QprropYX1eC6U3kbNGVFOtmIniug0bFNLOdbA4+qCH99lS5 hyDA== 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=zTOeZNM1Uu+PwOSF4miJgDqV3Fgqt1ucBtUccRSb+XI=; fh=ryNl978v0qTqD2R+xUvvqKb6xbCiYXTSd64Ar2Y696I=; b=dauF55zkmlHDCkMVCBZsLysZtjzpaRuFeUC61iLNsBQ3k6CTmXALuBAGIsQOUWKAjf 7B5Eplw5Fu8zdht7vKvvGKNo9WkBT13MsD6hYUsHjPB9vPvZlenak+suOS2EvfFlwKn9 k2V0+SqPOmhYziEEm3+r4AGw7D0oeC2IdlUjASAH3d3VD4hYB423VMfxbfq6mWXl4zVj 9rR0JwQeM6zyS+FGQ3BmILEBfGJDVXDUgVKh5Uf7ag0/a+r4dXC0lQqP8ri/SBGpmbKj HJRy18iZsjPUEBfF5WehadE0pemizEwF9SUNDDRwbO6g6AVJ6cr1HnoVIlC4/5AqovYK na1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wpav0P83; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id y63-20020a633242000000b0057cf9be76c2si2827502pgy.580.2023.10.18.11.39.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:39:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Wpav0P83; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 4D4B68027CC5; Wed, 18 Oct 2023 11:39:42 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230296AbjJRSjU (ORCPT + 99 others); Wed, 18 Oct 2023 14:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229697AbjJRSjS (ORCPT ); Wed, 18 Oct 2023 14:39:18 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A883F114; Wed, 18 Oct 2023 11:39:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0570BC433C7; Wed, 18 Oct 2023 18:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697654357; bh=x8dFuwyGInKhNBiscjehEKYq44BwgNqs2OP/+pasWyA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wpav0P83xp5UY6Dim6d/k9nvOyb+bwCRgPLpEQaFv/T5XQsbsmcf5N7g7AGZwFvwz WCPitWFl84XF4z5tI3AcNr3lP7xxzpgRZkDejvKhEdENzVOQ9wGk+WvI8FjwTY5QLl OXToAr81DhhIAhtHhh2PnaZWMTuFRqV0FwnSqfcppdR84GA3e9p9vsWJNZ19v+0wyf 2AD1L956lISicl273ibBqnXZK9klsSts79KOFuWkD4IWWiq2wCMJlE3k/r7xgKLfFi VWVwgxTYGuOG4ZMSaYK0lTBLaSOTzxHVIMkry08q6ZH7b9mo2/BVCrHkLsmNlCigLX NWjbYSMLJQlOA== Date: Wed, 18 Oct 2023 11:39:15 -0700 From: Josh Poimboeuf To: Borislav Petkov Cc: Ingo Molnar , linux-kernel@vger.kernel.org, linux-tip-commits@vger.kernel.org, David Kaplan , "Peter Zijlstra (Intel)" , x86@kernel.org, David Howells Subject: Re: [tip: x86/bugs] x86/retpoline: Ensure default return thunk isn't used at runtime Message-ID: <20231018183915.xwamzzqjf6gehaou@treble> References: <20231012141031.GHZSf+V1NjjUJTc9a9@fat_crate.local> <169713303534.3135.10558074245117750218.tip-bot2@tip-bot2> <20231018132352.GBZS/caGJ8Wk9kmTbg@fat_crate.local> <20231018151245.GCZS/17QhDGe7q6K+w@fat_crate.local> <20231018155433.z4auwckr5s27wnig@treble> <20231018175531.GEZTAcE2p92U1AuVp1@fat_crate.local> <20231018181431.skre6i6vzrxsprck@treble> <20231018182223.GFZTAiX4BJ6FT8bHzz@fat_crate.local> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231018182223.GFZTAiX4BJ6FT8bHzz@fat_crate.local> X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:39:42 -0700 (PDT) On Wed, Oct 18, 2023 at 08:22:23PM +0200, Borislav Petkov wrote: > On Wed, Oct 18, 2023 at 11:14:31AM -0700, Josh Poimboeuf wrote: > > > > > WARN_ONCE() is not enough considering that if this fires, it means we're > > > > > not really properly protected against one of those RET-speculation > > > > > things. > > > > > > > > > > It needs to be warning constantly but then still allow booting. I.e, > > > > > a ratelimited warn of sorts but I don't think we have that... yet. > > > ^ > -----| this here. > > > > > > I'm not sure a rate-limited WARN() would be a good thing. Either the > > > > user is regularly checking dmesg (most likely in some automated fashion) > > > > or they're not. If the latter, a rate-limited WARN() would wrap dmesg > > > > pretty quickly. > > > > > > Well, freezing the box without any mention about why it happens is not > > > viable either. So for lack of a better solution, overflowing dmesg is > > > all we could do. > > > > Why not just WARN_ONCE() then? > > See above....^ And see my reply to that? Not trying to be daft, I just didn't see how your reply was responsive. A single WARN_ONCE() has the benefit of not overflowing dmesg, while also making the warning available to those looking at dmesg (or the taint flag), as those who care should be. A rate-limited WARN() is problematic, as it overflows dmesg (and possibly wrapping other logs), potentially obscuring other important data. > > Ok. A revert is fine for now, but either way we do need to get to the > > bottom of why objtool is messing up. Can you share the config? > > Attached. > > And as said, you need gcc 13. Thanks, I'll see if I can recreate. -- Josh