On 3/13/19 5:40 AM, Paolo Bonzini wrote: > +static bool have_cet(void) > +{ > +#if defined CONFIG_CET > + uint64_t ssp; > + asm ("xor %0, %0; rdsspq %0\n" : "=rm" (ssp));
The xor is incompatible with a memory output. I don't think you really wanted that in the first place. Just use "=r". The rest is hard to review because of ARCH_X86_CET_ALLOC_SHSTK. I'm surprised that a prctl actually allocates memory... r~