Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1619040pxb; Wed, 9 Feb 2022 00:15:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6nGql2yzDO0X32/r4barzzte+E+rKfNSH8anKXs6oMIbkTeZMNrzKS0v9HHbOLTFjKThh X-Received: by 2002:a50:9d0d:: with SMTP id v13mr1234838ede.242.1644394503619; Wed, 09 Feb 2022 00:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644394503; cv=none; d=google.com; s=arc-20160816; b=o6LtBxb+NQB9Vx68fqHdgTWbdYCVdlJoVOlgr7cgAAPW3V5nZMp0ytHWeOHyUBIw7u Jo0L/XeRF1dD+TaepPMZt+BkwgelKSOrzClk4flpA4VEdls6ENNjWkutkK2S7sO0pvDj P+xEjW2Jtm0yRSRSUqtHmdtHjVjbZeT8BptgX26n2CvKtVnnwFeOGDrKGayBFJ9V5IoD ACHGyfWAfQ+kg/bSKTbfxdM+SG+Tv8T+2smNMeR492dBR6EOjAgtATe7Z3wJ+S7oNWmf 23gtLLfm+eStdzY98K9GQdThS5J7GyFJ4kR6BmMyJMWr0XxiBTFFD6ZWJZUQK1QIMvTx bagg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=1bo3Yv6CTbCvUIaSEYPIqCvDwbZ5xCMX16vZh9VRnN8=; b=YkokTu4NInf9LPx3O60qhcGYJmdQxwR+3iUbYkQW+Q+IGpg6yAhJFUuqCJAlw5q7nm fsIV4vTY6j/Gl/K4eBW3zrij49JnP/QxBAbafuUJnDf0uKSo3hIn6LdIroLZn8SaZpw9 PjSKebW9lYnqlfWMDRraFrO93CitzKOTDtQExvhhYGkxc2owCXNjHLmoBHctNYvGGOcG NNdslBvvRlozLxhCNGn8azJFVBQzHTG3kSr0zrjPG2mnyCBuJCTBCO9JOfsguKg2me1n fMEpjzBgAgp9RRdocCr+V8I4bkg4kpo2ent376hplYnQV07aRj16z0fD6zxRlCWmWjiz Yyeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WJXmPv2B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ht19si10965706ejc.953.2022.02.09.00.14.38; Wed, 09 Feb 2022 00:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WJXmPv2B; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245153AbiBGWtt (ORCPT + 99 others); Mon, 7 Feb 2022 17:49:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbiBGWts (ORCPT ); Mon, 7 Feb 2022 17:49:48 -0500 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68F52C061355; Mon, 7 Feb 2022 14:49:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1644274187; x=1675810187; h=message-id:date:mime-version:to:cc:references:from: subject:in-reply-to:content-transfer-encoding; bh=kCrDIOrEFsaqkXzsZbh8yWB/DwYaGsvCXUnA57EV60o=; b=WJXmPv2BjjL6DfXYwYsIBdAdfdhF9CFbHiMIAZtBYux70MVKmBgz83ZS Ny6HdO/W7RljLfbi5MYWYuMy/fdFBrjAjAoQl4LfchVXzWww7mRXUhyjd M6fEvyrtC/AHHYxKhC/aQb5YJQhyi+GKbyTrHW3JpOfZ1iRahdws+N4O3 9vmyP2MrFDsM3MITWnod+HZCKDdFpROaZaXcaD0kMPXJbxxh+RpZP6YwC 0THtEHQRgMlgp38sOg3abYKTfzn+3mzicF0R5KuP67Ldl225p7vg5Gmlb KkNgfyESWnAYd5OBXn5EyxMLJatP1v7M/WfvjPeRvJrFiE/4XtENEO65c A==; X-IronPort-AV: E=McAfee;i="6200,9189,10251"; a="248772691" X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="248772691" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 14:49:46 -0800 X-IronPort-AV: E=Sophos;i="5.88,351,1635231600"; d="scan'208";a="525309179" Received: from hgrunes-mobl1.amr.corp.intel.com (HELO [10.251.3.57]) ([10.251.3.57]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2022 14:49:45 -0800 Message-ID: Date: Mon, 7 Feb 2022 14:49:45 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: Rick Edgecombe , x86@kernel.org, "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar , linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org, Arnd Bergmann , Andy Lutomirski , Balbir Singh , Borislav Petkov , Cyrill Gorcunov , Dave Hansen , Eugene Syromiatnikov , Florian Weimer , "H . J . Lu" , Jann Horn , Jonathan Corbet , Kees Cook , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V . Shankar" , Dave Martin , Weijiang Yang , "Kirill A . Shutemov" , joao.moreira@intel.com, John Allen , kcc@google.com, eranian@google.com Cc: Yu-cheng Yu References: <20220130211838.8382-1-rick.p.edgecombe@intel.com> <20220130211838.8382-5-rick.p.edgecombe@intel.com> From: Dave Hansen Subject: Re: [PATCH 04/35] x86/cpufeatures: Introduce CPU setup and option parsing for CET In-Reply-To: <20220130211838.8382-5-rick.p.edgecombe@intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 > * Some CPU features depend on higher CPUID levels, which may not always > * be available due to CPUID level capping or broken virtualization > @@ -1261,6 +1269,9 @@ static void __init cpu_parse_early_param(void) > if (cmdline_find_option_bool(boot_command_line, "noxsaves")) > setup_clear_cpu_cap(X86_FEATURE_XSAVES); > > + if (cmdline_find_option_bool(boot_command_line, "no_user_shstk")) > + setup_clear_cpu_cap(X86_FEATURE_SHSTK); Given this: https://lore.kernel.org/all/20220127115626.14179-2-bp@alien8.de/ I'd probably yank the command-line option out of this series, or stick it in a separate patch that you tack on to the end.