Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp4477157rwb; Wed, 17 Aug 2022 00:02:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR7IWYLGiHbpElZM0MX+b+UbR1ijsNoyCjkpdBFW+NfeIFRlXgp4i/2eunt7P77kk8KWoR0d X-Received: by 2002:a17:902:6905:b0:170:f6f6:eaf9 with SMTP id j5-20020a170902690500b00170f6f6eaf9mr25254060plk.150.1660719760700; Wed, 17 Aug 2022 00:02:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660719760; cv=none; d=google.com; s=arc-20160816; b=ywC9oa5nQiojw2r/VO4d1/uHuEKADp7tORpnpQ8c1rU9x9Lut6RYhwqozAwaQ/TYgb GzTA3fJMGz2TTA2TJm/5+yLYP2tt30lhF+XPNTEBHvOnF2Qdzc0h8REIezqcsnQTp0yV QDJx7DhsT8a2QBJjDXbgTjXA7O0HJNyDcoOoqASRo8Rx3EG2EamEO8X/TPvWRcDX3i+I 6tzRD1MOHGU8ZyrQkhB/kTn1TW0iVOtUfZWKG3XXq9f/gwiCkHzzkJaxR8ii9cCUrfKf xicFqf+NMNn4FpyRYfe4rcbcs0n4IeRKliEm4cmL9az8W5IyQNc7j5YqFFMiPXI97oxy 97eg== 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=jh2VN7EbEuHp495bhU0IKbapcwYQ6kWiZIPUqwKXuFY=; b=IOlSQqWONa2bJdjUkNxgFbrZlQFt9d+Cy7t+pRrmZTt1eFC6BRegAPvcq2Gb0v1LJy NrKliRZzR5J6SF6V+KkQ1LV7HFh5X4TcLyHs5Cla6dSfoNFtQofi4fKrLzKUcoFn7cS6 hSICxspRR6J8STNhiGlgAScVWGW60u/CswLP0/Vrt7/xpB7sKRyNGzecY1yVP4Rb4WBe gjNrwKw5H54vRnRKQI06N4oqgzU2cZEHlD/BDWOnLtoRS4HoeiNpWaPoz48wFpWsl7tG fY3e2E5SY55Sf+1WaI12E9rJGz/ph2FTwASIIigYM6dXhoAPzDBZ6yl/ni8PeL08jSfX R4Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Z8qxUhi9; 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 f12-20020a170902ce8c00b0016d14ffc403si788526plg.240.2022.08.17.00.02.19; Wed, 17 Aug 2022 00:02:40 -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=Z8qxUhi9; 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 S238802AbiHQGzc (ORCPT + 99 others); Wed, 17 Aug 2022 02:55:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34914 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238733AbiHQGz0 (ORCPT ); Wed, 17 Aug 2022 02:55:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BAD45AC4D; Tue, 16 Aug 2022 23:55:25 -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=jh2VN7EbEuHp495bhU0IKbapcwYQ6kWiZIPUqwKXuFY=; b=Z8qxUhi9EYdI0kDbkJFgMlejj9 c4VZitB2+3rDHJKVcz3YUxCT9tb5949gZKJ4QpVIf+pBRkHdkmUkHLigv/hsaBniXEjB1U0SJneNj ioZbEkl89M91K/E20QmO15aNAX/tjYY7yWZRW0HUI0+3LjxfrYa1Oqau3sjHJVJS1Erb/E8VKrYMz NUepYeO9cSAq1kx/5l9VXimY45qu5u27qZyiA6VaiAMtWdtIm7324711ibQtVaphODqmQ5mqTLvEN tA03SKi82Gq7Jgch03O1oLMqtiEQHC7MEpqwmKjB652ceRY4/AUOwdh3VzhywiFxOt952FKFjmlX/ m2NLFIpQ==; 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 1oOCxK-007rJk-RU; Wed, 17 Aug 2022 06:55:10 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id B8DE198007F; Wed, 17 Aug 2022 08:55:08 +0200 (CEST) Date: Wed, 17 Aug 2022 08:55:08 +0200 From: Peter Zijlstra To: Daniel Sneddon Cc: Greg Kroah-Hartman , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Pawan Gupta , Borislav Petkov , Andrew Cooper , Thomas Gleixner , x86@kernel.org, Josh Poimboeuf Subject: Re: [PATCH] x86/nospec: Unwreck the RSB stuffing Message-ID: References: <20220809175513.345597655@linuxfoundation.org> <20220809175513.979067723@linuxfoundation.org> <839e2877-bb16-dbb5-d4da-bc611733c7e1@linux.intel.com> <84f4b1ea-d837-9a53-a21c-4ac602ff8e75@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <84f4b1ea-d837-9a53-a21c-4ac602ff8e75@linux.intel.com> 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Aug 16, 2022 at 11:04:36AM -0700, Daniel Sneddon wrote: > diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h > index 1a31ae6d758b..c5b55c9f2849 100644 > --- a/arch/x86/include/asm/cpufeatures.h > +++ b/arch/x86/include/asm/cpufeatures.h > @@ -420,7 +420,7 @@ > #define X86_FEATURE_V_TSC_AUX (19*32+ 9) /* "" Virtual TSC_AUX */ > #define X86_FEATURE_SME_COHERENT (19*32+10) /* "" AMD hardware-enforced > cache coherency */ > > -#define X86_FEATURE_NEVER (-1) /* "" Logical complement of ALWAYS */ > +#define X86_FEATURE_NEVER (0x7FFF) /* "" Logical complement of > ALWAYS */ Bah, I initially spelled that: ALT_NOT(X86_FEATURE_ALWAYS), but Boris made me do the -1 thing there. Oh well, Boris can fix that :-)