Re: [PATCH v9 14/26] x86/arch_prctl: Create ARCH_SET_STATE_ENABLE/ARCH_GET_STATE_ENABLE
From: Bae, Chang Seok
Date: Fri Aug 13 2021 - 15:44:10 EST
On Aug 9, 2021, at 17:57, Bae, Chang Seok <chang.seok.bae@xxxxxxxxx> wrote:
> On Aug 9, 2021, at 16:42, Macieira, Thiago <thiago.macieira@xxxxxxxxx> 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