Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3513980imw; Mon, 18 Jul 2022 09:24:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tLSR9jnDmriDfTxzOk2HbzJBbMFW5rscmI05So1gBG0b2iDe37D7vOCUS86z7ZoXTvzkHQ X-Received: by 2002:a05:6808:f0a:b0:337:8c1e:4aac with SMTP id m10-20020a0568080f0a00b003378c1e4aacmr16656882oiw.83.1658161456806; Mon, 18 Jul 2022 09:24:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658161456; cv=none; d=google.com; s=arc-20160816; b=YVl7sFb382xtiVpbwrMm8enfdWj6eZIgASeRMdVAWosvzZcXidLxiJDy41z8cAoo4k u5ppc1L8QijWggN/STinUqAq8Ox+nfZjlK16kmsh8xyZ/lrbMDEVQ3TKmBSh5OUVToco Pc9lRhSYcVbzYDzgH70tPvcwzOqdx0O88QRT08+S6n3B6kfTKoLjkWjFr8/a+9XHfySd 7EE7E+byfbAXrqbVlB5wSjWjCTtNolcsBAOiTlCMd54TMxNNvvwGcgKjrQJSLAS56nxM x8RBgXsas3ZUHmrKVVi11khietCG+mVRAbmwHlrQrovg1Quyt8cnkGr8NIfUee4e4VI+ I7bA== 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=+crDeFSf2FINyOliJvGzyzWKrsaftXMw2kMu2ZNWhMs=; b=ChibMuaL3/aeWefSjjAFv7eBaRiREIkJhGLSgaxKOa2BJrl0H5Deo4tqmGLB30fuyY I5IvfdFCGiCXq+mcMbTMGblikZyN19oWPTl0hhohg+x/hzPPbjjyIJmhzoBdoa5z+9g9 3zJ+qntMv1yBjkS+fDNBtg3U7bMV27yTvdixgdShmKRxlS6e6WqId971B+VvB3WhC27q 4P7ZPR0iDIKFCf2TTHfmh+4y2cW/mZdQtvyDUSyO0d41gDCl0tE2ViZAj4M6Fy0/6WpC aiGdOq2kaNs72OAuHo7VD9vv7EY6FhxJ67BrNL0pP5NtPRm4TVnZB1kklTOpXnh1Zrjs yOjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ulCadODE; 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 q28-20020a056808201c00b0033a1c8913e2si6694509oiw.208.2022.07.18.09.24.03; Mon, 18 Jul 2022 09:24: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=ulCadODE; 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 S235225AbiGRQLD (ORCPT + 99 others); Mon, 18 Jul 2022 12:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234831AbiGRQLA (ORCPT ); Mon, 18 Jul 2022 12:11:00 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D24D29CB5; Mon, 18 Jul 2022 09:10:59 -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=+crDeFSf2FINyOliJvGzyzWKrsaftXMw2kMu2ZNWhMs=; b=ulCadODE5fRHDcGeQY3qDQAwpT 8ekvnrFu2RKqzUugYSjyMGS6KL/j+ihhEmgvoT7oPi5Zfnxe9Dg64lTD3LY+E6qdP1TZQ44rqSZD8 SHa2Jq8QSL79uY0AKri4CS7hF8unKOSh7nCEyqMr+JDtrOl/N7D30qN/s2xc9bl+wdCW2lOuEITKw qQjt8hRQHJ6yu0YCRJsSdSFZULucdTaZ09QB8eUdmaPNNhjfWAfBKUObUPxYEjXvwWKlkXmWMk8Bm 5FRSRHH27UEDgv2AfNtJTF4jyNvakAXb1CdoPOH65Fnx6yTAv57p2hQOgefr6vRrms6LQELHhndiV T0AeEYzQ==; 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 1oDTKR-00CoXd-7k; Mon, 18 Jul 2022 16:10:39 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id D85E39802A7; Mon, 18 Jul 2022 18:10:36 +0200 (CEST) Date: Mon, 18 Jul 2022 18:10:36 +0200 From: Peter Zijlstra To: Thadeu Lima de Souza Cascardo Cc: linux-kernel@vger.kernel.org, linux-efi@vger.kernel.org, x86@kernel.org, ardb@kernel.org, tglx@linutronix.de, gregkh@linuxfoundation.org, torvalds@linux-foundation.org, Guenter Roeck , Borislav Petkov , Josh Poimboeuf , stable@vger.kernel.org, Andrew Cooper Subject: Re: [PATCH] efi/x86: use naked RET on mixed mode call wrapper Message-ID: References: <20220715194550.793957-1-cascardo@canonical.com> 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 Mon, Jul 18, 2022 at 10:59:18AM -0300, Thadeu Lima de Souza Cascardo wrote: > And I think you nailed what I had in mind for using IBPB when doing firmware > calls, and perhaps this is wanted even when we ignore this naked RET here. > > There is a typo on your patch below, but I will give it a try and see if it > doesn't blow up on AMD systems without IBPB (by way of emulation). Yeah, Boris pointed out the same. Typing is hard ;-)