Re: [PATCH v9 14/26] x86/arch_prctl: Create ARCH_SET_STATE_ENABLE/ARCH_GET_STATE_ENABLE

Bae, Chang Seok
2021-08-13T19:44:10Z

On Aug 9, 2021, at 17:57, Bae, Chang Seok <chang.seok.bae@intel.com> wrote:
> On Aug 9, 2021, at 16:42, Macieira, Thiago <thiago.macieira@intel.com> wrote:
>>
>> This means the corruption can get worse since the rollback code can undo or
>> partially undo the progression of the other ARCH_SET_STATE_ENABLE.
>
> Maybe something like this can help here to ensure a valid rollback.

After reconsidering this, I think the group_leader task’s permission value is
reliable. Perhaps, reference group_leader’s everywhere, instead of each
task's. I think that way resolves the corner case in a simple way.

Thanks,
Chang