Re: [PATCH v2 2/2] x86/asm: Pin sensitive CR0 bits

2019-06-14 Thread Thomas Gleixner
On Tue, 4 Jun 2019, Kees Cook wrote: > With sensitive CR4 bits pinned now, it's possible that the WP bit for > CR0 might become a target as well. Following the same reasoning for > the CR4 pinning, this pins CR0's WP bit (but this can be done with a > static value). > > Suggested-by: Peter

[PATCH v2 2/2] x86/asm: Pin sensitive CR0 bits

2019-06-04 Thread Kees Cook
With sensitive CR4 bits pinned now, it's possible that the WP bit for CR0 might become a target as well. Following the same reasoning for the CR4 pinning, this pins CR0's WP bit (but this can be done with a static value). Suggested-by: Peter Zijlstra Signed-off-by: Kees Cook ---