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 A1F34C27C7C for ; Mon, 20 Feb 2023 18:54:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231918AbjBTSyE (ORCPT ); Mon, 20 Feb 2023 13:54:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjBTSyD (ORCPT ); Mon, 20 Feb 2023 13:54:03 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 117723AA0; Mon, 20 Feb 2023 10:53:36 -0800 (PST) Received: from zn.tnic (p5de8e9fe.dip0.t-ipconnect.de [93.232.233.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E8FC41EC04CC; Mon, 20 Feb 2023 19:51:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1676919119; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=SSI2QUS4gPgyROxBzM1uO8MeH81fqKcEPDy6EQ9SUhI=; b=PLEafz0rE2HtVtzDMcP95ZtgiqrlP12lGJLuxVnWukFH3rMK4kJcIq5emUhxcCgqtOoj7b pOPH/n4t1cj6MM9kU7YHVF/FngZ0IM1AF3orMjT9Ce7kH7BaMOvvKKGHoL3GpnYCuvEYUB xscOd1GmfiCIjbrPd9thFmWOAz0nneU= Date: Mon, 20 Feb 2023 19:51:54 +0100 From: Borislav Petkov To: KP Singh Cc: Josh Poimboeuf , linux-kernel@vger.kernel.org, pjt@google.com, evn@google.com, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, hpa@zytor.com, peterz@infradead.org, pawan.kumar.gupta@linux.intel.com, kim.phillips@amd.com, alexandre.chartre@oracle.com, daniel.sneddon@linux.intel.com, =?utf-8?B?Sm9zw6k=?= Oliveira , Rodrigo Branco , Alexandra Sandulescu , Jim Mattson , stable@vger.kernel.org Subject: Re: [PATCH RESEND] x86/speculation: Fix user-mode spectre-v2 protection with KERNEL_IBRS Message-ID: References: <20230220120127.1975241-1-kpsingh@kernel.org> <20230220121350.aidsipw3kd4rsyss@treble> <20230220163442.7fmaeef3oqci4ee3@treble> <20230220175929.2laflfb2met6y3kc@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 20, 2023 at 10:44:21AM -0800, KP Singh wrote: > No it cannot with IBRS which is really just KERNEL_IBRS enabled, we See my other reply. The intent is there to be able to do it. What needs to be figured out now is *why* we said no STIBP with IBRS? Was it an omission or was there some intent behind it. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette