Re: x86/insn-eval: negative return value?

From: Kees Cook
Date: Wed Nov 22 2017 - 18:17:42 EST


On Wed, Nov 22, 2017 at 3:06 PM, Borislav Petkov <bp@xxxxxxx> wrote:
> On Wed, Nov 22, 2017 at 01:48:55PM -0800, Kees Cook wrote:
>> Cool, yeah, that looks like it would solve it. Thanks for taking a look!
>
> Btw, how do you build the kernel with clang?
>
> I tried:
>
> make -j9 CC=clang HOSTCC=clang
>
> and clang here is:
>
> clang version 3.8.1-24 (tags/RELEASE_381/final)

clang-5.0 appears to be the minimum version needed (to produce
something that actually boots and runs).

$ clang-5.0 --version
clang version 5.0.0-3 (tags/RELEASE_500/final)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin

-Kees

--
Kees Cook
Pixel Security