Re: [RFC] Restore PKRU to user-defined value after signal handling
From: Dave Hansen
Date: Wed Nov 06 2024 - 14:51:40 EST
On 11/6/24 11:40, Aruna Ramakrishna wrote:
> I do not understand why it has to be moved. Would you mind explaining?
You need to know what XSTATE_BV value got written by XSAVE. That's
dependent on: XINUSE and RFBM.
RFBM is 'mask' in xsave_to_user_sigframe().
So you can either completely regenerate 'mask' in
update_pkru_in_sigframe() or you can just pass 'mask' in.