Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3808593pxu; Mon, 30 Nov 2020 10:39:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJyB1D4iezDb5hrLGkQtpsyyLcGd/AL3JKuWlq+WeDwFOYs4XMsyffrXx6VQanA8NG9Lf2bp X-Received: by 2002:a17:906:a418:: with SMTP id l24mr9697501ejz.360.1606761557652; Mon, 30 Nov 2020 10:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606761557; cv=none; d=google.com; s=arc-20160816; b=LQeAiRckJ24ZkujIpZ0kyZMSfU586Oq3hZgcU5tyD6AIzpSp/TpzYMWbBhLqM5f/i4 HLvYwD0FjuIXlN4w5AfDLl4IfstAOAu4zcZoVc4jVda3xKZJGHuP9DZAhQc/Y7NOS7L/ KjAQeaF7zCbI8B+j5QoROTKZHo6os6q8afsJJEuZwB85TPbqJlM5pt8qTU6f45HLxhaw P5XMr0cuFVTHUeGo+8KcVD7zgh4LbRMAPBxT1y/bGL5/6pGqmi9mdCEgMzFGVdYfjAI6 tFGkxoOImNG10ZSFKgs6jMvOLw+pmpZ6WxfOngOjpAyp591JkGLgIhBXR98Gdxk7pXsi Fo6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=+RSIe6dq2R40ptvYE7V/FV1HaMbjmgQB7aHoLW01pLw=; b=wftc7D2rFylBH1ruqB+cakPlrJaLQFWKAXcR6Z8T1sahgQCS+6AM9fnM1+k1enDudJ 2mENbUnCd4A5IWRq6drx0DiScjKjszC3c3BPM08chPMvEhrhwEZmpESq499hHY0JgoxX 79XIB8lV9vehIvq+SoAgui3TEpLS0jobS+9xhcrXsyDRDkXCAZDbiX1XJV0FoXLz7IXK aNLtz1JKZ+WXlk6mX4TwcfKKs0L9rExyDi4sWyqUDhmyFxG65+UyzbpmS4Uuh/DFWTnX s1tRqUIm9R3/J9tfFrmKOiJ5+d2hlKE4HBs6qZiPmZ6gDYvDfrcQiLgEq+m+ak8sSiHX yw9w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 t5si2500869ejy.33.2020.11.30.10.38.54; Mon, 30 Nov 2020 10:39:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729731AbgK3SfY (ORCPT + 99 others); Mon, 30 Nov 2020 13:35:24 -0500 Received: from mga01.intel.com ([192.55.52.88]:62352 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728704AbgK3SfX (ORCPT ); Mon, 30 Nov 2020 13:35:23 -0500 IronPort-SDR: UTdE267KSYaxn8SJxWlVjn4DEvbhyY/FSyIB+6PRlgsMhdNpAnZI9bdUy8RANMU0YkahP6RYyj ZZWD49aavLWg== X-IronPort-AV: E=McAfee;i="6000,8403,9821"; a="190876622" X-IronPort-AV: E=Sophos;i="5.78,382,1599548400"; d="scan'208";a="190876622" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2020 10:34:42 -0800 IronPort-SDR: 9dOX7jHwsdaXZ+0ublJbeehadYhgfNdrRIew/cg2EBrlxQ8Z8VCjMhjxmSSYjpqFnIOReAcFrd drhoHvA7exmA== X-IronPort-AV: E=Sophos;i="5.78,382,1599548400"; d="scan'208";a="345167847" Received: from yyu32-mobl1.amr.corp.intel.com (HELO [10.212.122.22]) ([10.212.122.22]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Nov 2020 10:34:39 -0800 Subject: Re: [PATCH v15 01/26] Documentation/x86: Add CET description To: Nick Desaulniers Cc: Dave.Martin@arm.com, arnd@arndb.de, bp@alien8.de, bsingharora@gmail.com, corbet@lwn.net, dave.hansen@linux.intel.com, esyr@redhat.com, fweimer@redhat.com, gorcunov@gmail.com, hjl.tools@gmail.com, hpa@zytor.com, jannh@google.com, keescook@chromium.org, linux-api@vger.kernel.org, linux-arch@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, luto@kernel.org, mike.kravetz@oracle.com, mingo@redhat.com, nadav.amit@gmail.com, oleg@redhat.com, pavel@ucw.cz, pengfei.xu@intel.com, peterz@infradead.org, ravi.v.shankar@intel.com, rdunlap@infradead.org, tglx@linutronix.de, vedvyas.shanbhogue@intel.com, weijiang.yang@intel.com, x86@kernel.org, maskray@google.com, llozano@google.com, clang-built-linux@googlegroups.com, erich.keane@intel.com References: <20201110162211.9207-2-yu-cheng.yu@intel.com> <20201130182641.29812-1-ndesaulniers@google.com> From: "Yu, Yu-cheng" Message-ID: <4fad528b-e467-f96d-b7fb-9484fd975886@intel.com> Date: Mon, 30 Nov 2020 10:34:38 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.1 MIME-Version: 1.0 In-Reply-To: <20201130182641.29812-1-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/30/2020 10:26 AM, Nick Desaulniers wrote: > (In response to https://lore.kernel.org/lkml/20201110162211.9207-2-yu-cheng.yu@intel.com/) > >> These need to be enabled to build a CET-enabled kernel, and Binutils v2.31 >> and GCC v8.1 or later are required to build a CET kernel. > > What about LLVM? Surely CrOS might be of interest to ship this on (we ship the > equivalent for aarch64 on Android). > I have not built with LLVM, but think it probably will work as well. I will test it. >> An application's CET capability is marked in its ELF header and can be >> verified from the following command output, in the NT_GNU_PROPERTY_TYPE_0 >> field: >> >> readelf -n | grep SHSTK >> properties: x86 feature: IBT, SHSTK > > Same for llvm-readelf. > I will add that to the document. Thanks, Yu-cheng