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 76D0ACCA479 for ; Mon, 18 Jul 2022 16:11:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235251AbiGRQLD (ORCPT ); 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: 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 ;-)