Re: [PATCH] x86/fpu: Allow PKRU to be (once again) written by ptrace.

From: Paolo Bonzini
Date: Wed Aug 03 2022 - 13:33:56 EST


On 8/3/22 19:25, Ingo Molnar wrote:
Ok - allowing ptrace to set the full 32 bits of the PKRU register seems OK
then, and is 100% equivalent to using WRPKRU, right? So there's no implicit
masking/clearing of bits depending on how many keys are available, or other
details where WRPKRU might differ from a pure 32-bit per thread write,
correct?

Yes, it's the same.

Paolo