Re: [PATCH 1/7] x86, kaslr: move CPU flags out of cpucheck

From: H. Peter Anvin
Date: Tue Oct 01 2013 - 16:49:35 EST


On 10/01/2013 12:37 PM, Kees Cook wrote:
> Refactor the CPU flags handling out of the cpucheck routines so that
> they can be reused by the future ASLR routines (in order to detect CPU
> features like RDRAND and RDTSC).
>
> This reworks has_eflag() and has_fpu() to be used on both 32-bit and
> 64-bit, and refactors the calls to cpuid to make them PIC-safe on 32-bit.
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>

Please flag the ones that specifically touch the boot code so that is
clear. Neither the title or the description makes that at all clear,
and at first reading is fairly confusing as a result.

-hpa


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/