Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5911003imw; Wed, 20 Jul 2022 15:29:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uKjVRb+4wQXw5+H2jfXrQ41guKThZI+rKzcqNMeZUm+le+1D/2IbJnY32spdR5tEIM24Fl X-Received: by 2002:a17:907:3e8c:b0:72b:4f2d:782b with SMTP id hs12-20020a1709073e8c00b0072b4f2d782bmr36415081ejc.223.1658356156131; Wed, 20 Jul 2022 15:29:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658356156; cv=none; d=google.com; s=arc-20160816; b=OsJPT3ZfChrf1FGOP9v5xeSzrNdMvB0pQuAKNuoybpgFmgbtr9BYbXpq/omEOaiX9/ Ts5BjB5JLKLYcAIQan/7QZm7wuIyIH5ut/Azyc7q30fETcqz4ninqqLHavGI4QDBRnal d+WGHXHKubb/+Z4f1mJFoUXrs1u1AKK0HDM0CRUjAmAHGt5Vwufw0uD5AEszVDaKNSJp nCrHuQoqIQposRdD+9lbtHSwrwOJFyJ6GeX2xJwBngJ7hkcUekMSN6Mag009oyoEZ//M RVjg4XgDiGkWFsd8CY+L0zaRWSBgIm4HYyT/xiLVKOhnqzTYCnp3XD9uiHaDh5e2NH39 UNUQ== 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=FiZLfbIHMEm5bs2l9a0O1tE0/R/MU//G5wqi4u7xynA=; b=m6l3GFQaWAzYsF84y50SGTKzhWb1jLWx7yOQV1BYwezurpqL7BMIdP1D0pgJH6gEqG kvTz2fNjXCZYuJxP7m/ZkpF5XcgaBTKUt0Gs37I2RLVMeAdmahIerCFkhQ7MDRvjjCUT wJ6xLj8zsgdPZBLQeKpgT3KR6+eEiBN9mNfsdFUERt8m0TWfyo2RlhuR2V3DQvIgMfzx ExeOtwvwDcLwSb2UR1K8K6birpXCRCwjOnzZZB1l/9LzJhAoHrsHaAeZeEv5PFj7JBXJ e7hV4jLhUFAcu46uZFa8G+Yc1VgFdKDubqoOSHam4XmwimKVfSRfd0BKVcJX7xBsRUh3 v3VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=UEqYJftg; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l20-20020a170906795400b00711d50b288fsi536174ejo.547.2022.07.20.15.28.51; Wed, 20 Jul 2022 15:29:16 -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=@infradead.org header.s=casper.20170209 header.b=UEqYJftg; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbiGTWAe (ORCPT + 99 others); Wed, 20 Jul 2022 18:00:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbiGTWAc (ORCPT ); Wed, 20 Jul 2022 18:00:32 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3722B18E12; Wed, 20 Jul 2022 15:00:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=FiZLfbIHMEm5bs2l9a0O1tE0/R/MU//G5wqi4u7xynA=; b=UEqYJftgqJBF0z+MKxvXZRo8NX ppYxh/pP5a/Tn6On9z3mIURCgdZa6jsVZcbyRqYabMmvuMST3uOmKGrtJk0G3LSgwbEBGs0o42E77 +rBWTcE31Gy2gJ6oiJoCsWHY/TM5LTHL+IB51mwLYjtV9lVYpTC0RyhxctZSbQlEAfH0txtJKy9Zm EgWnt6BbhzmHBB4Z09/CF6W0s7huui2t+RF6rBeS7UxTHpu3XBpO1aOplKWVcW9l2zKV2zo23/U23 C6MG9NYo+4wSteHYbhzzleXizWeohaCLVfQtlDgBDX+Cs4+3/E77fiTfy9KZjIMRTfsZS0lgiinUs KYaUsO1Q==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oEHjp-00Epie-SM; Wed, 20 Jul 2022 22:00:14 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 76B29980BBE; Thu, 21 Jul 2022 00:00:13 +0200 (CEST) Date: Thu, 21 Jul 2022 00:00:13 +0200 From: Peter Zijlstra To: Justin Forbes Cc: Linus Torvalds , Jiri Slaby , Naresh Kamboju , Greg Kroah-Hartman , Linux Kernel Mailing List , stable , Andrew Morton , Guenter Roeck , Shuah Khan , patches@kernelci.org, lkft-triage@lists.linaro.org, Pavel Machek , Jon Hunter , Florian Fainelli , Sudip Mukherjee , Slade Watkins , John Harrison , Tejas Upadhyay , Anusha Srivatsa , Jani Nikula , Daniele Ceraolo Spurio Subject: Re: [PATCH 5.18 000/231] 5.18.13-rc1 review Message-ID: References: <20220719114714.247441733@linuxfoundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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_NONE 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 Wed, Jul 20, 2022 at 11:47:02PM +0200, Peter Zijlstra wrote: > On Wed, Jul 20, 2022 at 12:57:26PM -0500, Justin Forbes wrote: > > On Wed, Jul 20, 2022 at 10:28:33AM -0700, Linus Torvalds wrote: > > > [ Adding PeterZ and Jiri to the participants. ] > > > > > > Looks like 5.18.13 added that commit 9bb2ec608a20 ("objtool: Update > > > Retpoline validation") but I don't see 3131ef39fb03 ("x86/asm/32: Fix > > > ANNOTATE_UNRET_SAFE use on 32-bit") in that list. > > > > It should be noted that the build doesn't fail, it just warns. > > I am guessing the 32bit failure is what promoted someone to look at > > the logs to begin with and notice the warn initially. I just verified > > that it exists in our builds of 5.18.13-rc1, but not on mainline builds. > > I am gueesing it is because commit 9bb2ec608a20 ("objtool: Update Retpoline > > validation") should be followed up with at least commit f43b9876e857c > > ("x86/retbleed: Add fine grained Kconfig knobs") > > Still updateing the stable repro to see what the actual code looks like, > but that warning seems to suggest the -mfunction-return=thunk-extern > compiler argument went missing. > > For all the files objtool complains about, does the V=1 build output > show that option? Ok, I'm now looking at stable-rc/linux-5.18.y which reports itself as: VERSION = 5 PATCHLEVEL = 18 SUBLEVEL = 13 EXTRAVERSION = -rc1 and I'm most terribly confused... it has the objtool patch to validate return thunks, *however*, I'm not seeing any actual retbleed mitigations *anywhere*. How, what, why!?