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

2013-10-01 Thread Kees Cook
On Tue, Oct 1, 2013 at 1:48 PM, H. Peter Anvin wrote: > 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

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

2013-10-01 Thread H. Peter Anvin
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 >

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

2013-10-01 Thread Kees Cook
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

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

2013-10-01 Thread Kees Cook
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

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

2013-10-01 Thread H. Peter Anvin
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,

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

2013-10-01 Thread Kees Cook
On Tue, Oct 1, 2013 at 1:48 PM, H. Peter Anvin h...@zytor.com wrote: 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