From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BA4C0C43334 for ; Wed, 20 Jul 2022 17:25:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234716AbiGTRZI (ORCPT ); Wed, 20 Jul 2022 13:25:08 -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: 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.