Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1588460pxb; Thu, 4 Feb 2021 17:47:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxGEmdm/adyBzcw6KpgcUW/ePU/rblzIr44H+yz3e3RwvxLKtMus4XMrE4i9njBUCdgH3uq X-Received: by 2002:a17:906:860e:: with SMTP id o14mr1851533ejx.19.1612489621446; Thu, 04 Feb 2021 17:47:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612489621; cv=none; d=google.com; s=arc-20160816; b=iURbZRkBclqbYsncG/m36x8pF+jyq1fF/X0YhbWVQyU5l53Djhaahs/ZRCub0aOUyb AnLOw7xRMz2YB7zW4eNrh9UyZmPCrU3lKCa/tqQRbA50cibKTvIuXkY60BqHa330nvv5 QTS0n6TzkHaZLAIZtn/L5UzgDzCL7v1awHILNxi83I2rdP8V1hX0iGh6ybI+OpVkJx4K gjapaAi0Xv2Ma3YhH1Jsamc2BKGpcKHB3LN3Rx7VpMld5rrF4Sy5MU0YZNTmgSQNvbnQ RZlYkRhJWt0mLcLieO6aYuVSP+4KkOIKOEsI/g0nFxgFYOVVF84iK9XYLRqn2pQPgYUF /Cyg== 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=1mc7koCFdBCM4QqjJSOU9cMj9Z1hXBQ4lmWyrTn3L0c=; b=GiJJTHcjb/6Oh0dPjnJbh0Osw7ztZxVw6FYWl0oycf+XmFNsYlg3G8ImjVX9PDwQC/ 3ngZJmisS9Hjx091G3q06hf9P8Mozsm61opcsMJB+3YPP845+WDL2O4OxNFDLLqQTnXN XApdhoQT2buAjkBKzPY+X0ier45CxxxcukLtbjbUd6mp3My4iZJm6oCOpg2eYcySOno1 cjHWRHoZl7sATTKHXA9B+VXWHBlAFKpI5DhHT6HSoDe0siyjsnO/ytzjTVLi8fl332p2 A50j2H7TNMK3lqI5Adlq00QRACWZoe+V01sLntV33hL5Q5WUzC19HKXnHpou6N/cbq9+ p1dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=EnD8y5C9; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o28si4222671edz.348.2021.02.04.17.46.37; Thu, 04 Feb 2021 17:47:01 -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=@chromium.org header.s=google header.b=EnD8y5C9; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239874AbhBDUEh (ORCPT + 99 others); Thu, 4 Feb 2021 15:04:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239884AbhBDT5z (ORCPT ); Thu, 4 Feb 2021 14:57:55 -0500 Received: from mail-pj1-x102a.google.com (mail-pj1-x102a.google.com [IPv6:2607:f8b0:4864:20::102a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96C69C0613D6 for ; Thu, 4 Feb 2021 11:57:14 -0800 (PST) Received: by mail-pj1-x102a.google.com with SMTP id s24so2313769pjp.5 for ; Thu, 04 Feb 2021 11:57:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=1mc7koCFdBCM4QqjJSOU9cMj9Z1hXBQ4lmWyrTn3L0c=; b=EnD8y5C9tnrx7mX24x0SzpWobewSUEg1SAdrluNCKUh12ljNCsVkirYqiShSKNlsKa xsRi+eb+jTferbjeWUAFTZcgQYeDzubETPjwMBp58Msk92q3Hys/Nc4CJaACBm3/rjRC GvNCjLeIsVfLb9UgxqgnuVtL8xuHQDzZ4nhmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=1mc7koCFdBCM4QqjJSOU9cMj9Z1hXBQ4lmWyrTn3L0c=; b=rGB0PIYMHAX6LTpejQcPIYtYKFLHoYpnbYmgUexrvz0pIKe4KoLvyl2PmMBiXpw2RY 7yqlXVSprm5l0puf81d+GmW//hZoEbLPCEO68fNWwbCwCktXURf39bbVtsoqqqi0e8Cv ciDoJmo8LZOOk2eg6jyAwt0CdM1NgLctOJrT9KRV+Tovb7rACSlvo/bkal8FDOgEmVYY XJzcD1BfrcK6Sd6cQ3up8XKZdJ1rP4gdw7QWYbbZpsdg0ICH7hyaV1QFu0UaEimi+2TJ 3o0ewHOrPpZhuklE+6U88mDn6YidLwTfkb5pQxLFLSd5X1LmFXHU8ngilQhsLMzTFObu gjJQ== X-Gm-Message-State: AOAM533slzVnZcBYl9O/MhyteXOiXTcl3ZKcAuDho+h6tDfzrBvsw2eU c8PgrcMylilE5j2U7dw/sBIebg== X-Received: by 2002:a17:902:82cb:b029:e1:2b0f:da57 with SMTP id u11-20020a17090282cbb02900e12b0fda57mr748892plz.33.1612468634241; Thu, 04 Feb 2021 11:57:14 -0800 (PST) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id o1sm7150366pgq.1.2021.02.04.11.57.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 11:57:13 -0800 (PST) Date: Thu, 4 Feb 2021 11:57:12 -0800 From: Kees Cook To: Yu-cheng Yu Cc: 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 , Mike Kravetz , Nadav Amit , Oleg Nesterov , Pavel Machek , Peter Zijlstra , Randy Dunlap , "Ravi V. Shankar" , Vedvyas Shanbhogue , Dave Martin , Weijiang Yang , Pengfei Xu Subject: Re: [PATCH v19 03/25] x86/cpufeatures: Add CET CPU feature flags for Control-flow Enforcement Technology (CET) Message-ID: <202102041157.05BDDAE1@keescook> References: <20210203225547.32221-1-yu-cheng.yu@intel.com> <20210203225547.32221-4-yu-cheng.yu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210203225547.32221-4-yu-cheng.yu@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 03, 2021 at 02:55:25PM -0800, Yu-cheng Yu wrote: > Add CPU feature flags for Control-flow Enforcement Technology (CET). > > CPUID.(EAX=7,ECX=0):ECX[bit 7] Shadow stack > CPUID.(EAX=7,ECX=0):EDX[bit 20] Indirect Branch Tracking > > Signed-off-by: Yu-cheng Yu Reviewed-by: Kees Cook -- Kees Cook