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 6B774C636D6 for ; Wed, 22 Feb 2023 12:32:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232131AbjBVMcp (ORCPT ); Wed, 22 Feb 2023 07:32:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbjBVMcl (ORCPT ); Wed, 22 Feb 2023 07:32:41 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 024163B0CE; Wed, 22 Feb 2023 04:32:35 -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 23BA01EC063A; Wed, 22 Feb 2023 13:32:34 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1677069154; 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=xlmpkjgwQoUi0lrUhbXBq+an05Z+QBYhopZRL4lwg/o=; b=Jto/XUVA00NcXdq+3KYnTdEuIq+ZfLSa7FvgBj8xhMAh2+jJI8Q5ZjRxIG38dYrCvRZr3y ZE+RlctgJ4Noe2M1SJ4F6QqrezH+iEgEOY7j5U7QRmuSoB3AxNM9r8RR4Jie7ntrG8g2Ns 6wBI2bGqPADhDl12jANa8oqMmHhbwiM= Date: Wed, 22 Feb 2023 13:32:33 +0100 From: Borislav Petkov To: KP Singh Cc: Pawan Gupta , linux-kernel@vger.kernel.org, pjt@google.com, evn@google.com, jpoimboe@kernel.org, tglx@linutronix.de, x86@kernel.org, hpa@zytor.com, peterz@infradead.org, kim.phillips@amd.com, alexandre.chartre@oracle.com, daniel.sneddon@linux.intel.com, corbet@lwn.net, bp@suse.de, linyujun809@huawei.com, jmattson@google.com, =?utf-8?B?Sm9zw6k=?= Oliveira , Rodrigo Branco , Alexandra Sandulescu , stable@vger.kernel.org Subject: Re: [PATCH v2 1/2] x86/speculation: Allow enabling STIBP with legacy IBRS Message-ID: References: <20230221184908.2349578-1-kpsingh@kernel.org> <20230222030728.v4ldlndtnx6gqd6x@desk> 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 Tue, Feb 21, 2023 at 09:49:57PM -0800, KP Singh wrote: > That is a bit more complicated as, for now, the user is not really > exposed to STIBP explicitly yet. Remember that we're exposing the normal user to a gazillion switches already. And not every user has done a PhD in hw vulns like we were forced to in the last, at least 5, years. So whatever you do, you should try to make it work automatic - if possible - and DTRT - i.e., sane defaults. Every new functionality added to that madness needs a proper justification. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette