Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp5739746imw; Wed, 20 Jul 2022 11:30:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1u1sH0JCZdLvDkIE7bZso1955OjXX39FBuEK+nvmILv/cqqZdZ3cWoYLE733MNpK5itz1oI X-Received: by 2002:a17:90b:4ac1:b0:1ef:c1ba:e73e with SMTP id mh1-20020a17090b4ac100b001efc1bae73emr6887250pjb.47.1658341822475; Wed, 20 Jul 2022 11:30:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658341822; cv=none; d=google.com; s=arc-20160816; b=f030A2V2yvVuLGniZmDnA/A9ah3Irp+o2CbBIL3Vlk+ZdsvNdkWWuQCqaHlT9REolW rb5w8EvlU4A0EB1a1vnQ5q8xfoL1zMzB6zyVYomPxsXHrWzgwCsQB1mNk/8yE4umfYGo vyOjqoTozTtjuR7elK6tQ3eOvZQ3p8/wOR4kszUOg+AcOng6OwciWxI/HPHDRo55qGD8 bIo/L0jZPwhg7MXri9LKGfgVewy4CUyGmNtUv5t9/QkhLrIpNY+RxLFmeq+9dBAE9zMA RykNeWwGRXanWCOpejDXnvfqbERy3SVS/oYAdqriL8rWDlTzBjdh0RJuufaL/49KHUHu Zykg== 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=pFpGMzqUPjI7i/5145DxoFt8ywldYy6rEYyRWkNVjSw=; b=CSuqehDLCco0oGBWOqvWg3WnJmQ0MGcYFpex3GzKoS+4wBwDqe8TN+p8fG2/hj2BO6 SJwECUsiIeoYNUV70N5y3K39WlPIZ8h+ESWy2fhcRWpsvwhjSJvY6lFq9duLUP0ZAB0b FP7UU5cletw2TzuAb/m0GcBBHsvtBTdKX9yM33u41oDriKgL2NQtO6FzQAOyoJ02bXKG wlP7eBYq7+OGfAIgtUZuWWFgT6aNGBUfkKeNIBRKksLoOPAHnsfFpP9JsF9zYyPbxk1y 5zE5znZ7OFcg1Fo5PdV06wongukiU17ZJ5VVly1he3l1EHmomAq4/ZlNKF2YXKwiWDb7 4Pyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=sPdlSECo; 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 b12-20020a170903228c00b0016c40f8cb7dsi24981611plh.176.2022.07.20.11.30.07; Wed, 20 Jul 2022 11:30:22 -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=sPdlSECo; 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 S231668AbiGTRZH (ORCPT + 99 others); Wed, 20 Jul 2022 13:25:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240269AbiGTRZF (ORCPT ); Wed, 20 Jul 2022 13:25:05 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3442C1B6 for ; Wed, 20 Jul 2022 10:25:03 -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=pFpGMzqUPjI7i/5145DxoFt8ywldYy6rEYyRWkNVjSw=; b=sPdlSECo2Nma2PNnHKBWFsvRoi KAKFuRYu7lg/BYRKHWqIjYxc+0hG4rkKxEEDjWGqBr0AXGjbbDSzAy0+NYFOexlTK7kbeOstAdqok K56euDgkYbWWkx2gbkeyYw/wa+oqh4dQbQXvxxVze1QyRCaVastTZR8gGCZXgSuMdf/VM3O+8x/AE RlNR48hOfhS1/DDSHtb36lgkxCvlaitroFENrZQDjcIt41Qy00LNoMdVhlX4CGgb96nsixAHC5xZ6 kTYL3Q14aUCcsh9myMZETXnC+H604S3nGv/X3Uwm7uNLCj1Zcpt0sHVAl7Fe6VznYsS8kLJM5wyc0 lfPsEdNg==; 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 1oEDR4-00Ee8I-E3; Wed, 20 Jul 2022 17:24:34 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 8298A980BBE; Wed, 20 Jul 2022 19:24:32 +0200 (CEST) Date: Wed, 20 Jul 2022 19:24:32 +0200 From: Peter Zijlstra To: Linus Torvalds Cc: Steven Rostedt , Thomas Gleixner , LKML , the arch/x86 maintainers , Tim Chen , Josh Poimboeuf , Andrew Cooper , Pawan Gupta , Johannes Wikner , Alyssa Milburn , Jann Horn , "H.J. Lu" , Joao Moreira , Joseph Nuzman , Juergen Gross , Masami Hiramatsu , Alexei Starovoitov , Daniel Borkmann Subject: Re: [patch 00/38] x86/retbleed: Call depth tracking mitigation Message-ID: References: <20220716230344.239749011@linutronix.de> <20220720125736.48164a14@gandalf.local.home> 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 10:09:37AM -0700, Linus Torvalds wrote: > On Wed, Jul 20, 2022 at 9:57 AM Steven Rostedt wrote: > > > > [ 2.488712] WARNING: CPU: 0 PID: 0 at arch/x86/kernel/alternative.c:558 apply_returns+0xa3/0x1ec > > That warning is kind of annoying, in how it doesn't actually give any > information about where the problem is. > > I do note that we only fix up JMP32_INSN_OPCODE, and I wonder if we > have a "jmp __x86_return_thunk" that is close enough to the return > thunk that it actually uses a byte offset? > > But that WARN_ON_ONCE() should probably be changed to actually give > some information about where the problem is. There's a patch for that: https://lkml.kernel.org/r/20220713213819.460771-1-keescook@chromium.org it seems to have gotten lost, let me go queue that.