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 B73BDC6379F for ; Mon, 20 Feb 2023 19:05:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233079AbjBTTFV (ORCPT ); Mon, 20 Feb 2023 14:05:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233113AbjBTTEy (ORCPT ); Mon, 20 Feb 2023 14:04:54 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 43A0015567; Mon, 20 Feb 2023 11:04:28 -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 6EDCD1EC04DA; Mon, 20 Feb 2023 20:02:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1676919726; 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=4GcXMqJBjY+WMfE0MjhGLsF19J5f3aOlyr/A9l1PdQs=; b=pLVJXnzgggDD5pUELetDR+zSK/KLH76EO+FR/r6wm7qQUoKcCYkCitknE4LiC5WOiKBesP lZg6Zbun7whxlaus/3GTrp+zwCwbiIDxDhIk5dLd7NbnVAaQ+E6F1oEN4B0mMbYneDtDeL QgEzxenjZj50CyqIdDRXgJ5L3LVQz1g= Date: Mon, 20 Feb 2023 20:02:02 +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: <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:56:38AM -0800, KP Singh wrote: > Sure, it looks like an omission to me, we wrote a POC on Skylake that > was able to do cross-thread training with the current set of > mitigations. Right. > STIBP with IBRS is still correct if spectre_v2=ibrs had really meant > IBRS everywhere, Yeah, IBRS everywhere got shot down as a no-no very early in the game, for apparent reasons. > but just means KERNEL_IBRS, which means only kernel is protected, > userspace is still unprotected. Yes, that was always the intent with IBRS: enable on kernel entry and disable on exit. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette