[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFP8O3LjdP69_T1Ve-zZjvg7+v8xV1mh9Wk8zm4LpAsE2PG58Q@mail.gmail.com>
Date: Mon, 30 Nov 2020 11:38:58 -0800
From: Fāng-ruì Sòng <maskray@...gle.com>
To: "Yu, Yu-cheng" <yu-cheng.yu@...el.com>
Cc: Nick Desaulniers <ndesaulniers@...gle.com>,
Dave P Martin <Dave.Martin@....com>,
Arnd Bergmann <arnd@...db.de>, Borislav Petkov <bp@...en8.de>,
bsingharora@...il.com, Jonathan Corbet <corbet@....net>,
dave.hansen@...ux.intel.com, esyr@...hat.com,
Florian Weimer <fweimer@...hat.com>, gorcunov@...il.com,
"H.J. Lu" <hjl.tools@...il.com>, "H. Peter Anvin" <hpa@...or.com>,
jannh@...gle.com, Kees Cook <keescook@...omium.org>,
linux-api@...r.kernel.org, linux-arch <linux-arch@...r.kernel.org>,
Linux Doc Mailing List <linux-doc@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>, linux-mm@...ck.org,
luto@...nel.org, mike.kravetz@...cle.com,
Ingo Molnar <mingo@...hat.com>, nadav.amit@...il.com,
oleg@...hat.com, pavel@....cz, pengfei.xu@...el.com,
Peter Zijlstra <peterz@...radead.org>,
ravi.v.shankar@...el.com, Randy Dunlap <rdunlap@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
vedvyas.shanbhogue@...el.com, weijiang.yang@...el.com,
X86 ML <x86@...nel.org>, Luis Lozano <llozano@...gle.com>,
clang-built-linux <clang-built-linux@...glegroups.com>,
erich.keane@...el.com
Subject: Re: [PATCH v15 01/26] Documentation/x86: Add CET description
On Mon, Nov 30, 2020 at 10:34 AM Yu, Yu-cheng <yu-cheng.yu@...el.com> wrote:
>
> 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 <application> | grep SHSTK
> >> properties: x86 feature: IBT, SHSTK
> >
> > Same for llvm-readelf.
> >
>
> I will add that to the document.
>
> Thanks,
> Yu-cheng
The baseline LLVM version is 10.0.1, which is good enough for clang
-fcf-protection=full, llvm-readelf -n, LLD's .note.gnu.property
handling (the LLD option is `-z force-ibt`, though)
--
宋方睿
Powered by blists - more mailing lists