Re: [PATCH 4/5] x86/pkeys: replace PKRU modification infrastructure

From: Dave Hansen
Date: Tue Jun 01 2021 - 18:49:41 EST


On 6/1/21 3:43 PM, Dave Kleikamp wrote:
> On 6/1/21 4:54 PM, Babu Moger wrote:
>> Hi Dave,
>> Thanks for the patches and trying to address the issues.
>>
>> I know these patches are in early stages and there is still a discussion
>> on different ways to address these issues. But I wanted to give a try
>> anyway.
>>
>> Tried to boot the system with these patches. But system did not come up
>> after this patch(#4). System fails very early in the boot process. So, I
>> could'nt collect much logs. It failed both on AMD and Intel machines.
>> I will try to collect more logs.
>> Thanks
>> Babu
>
> Same here. Hitting this line in arch/x86/include/asm/fpu/xstate.h
>
>         BUG_ON(!(xstate->header.xcomp_bv & BIT_ULL(xfeature_nr)));
>
> [    0.384929] kernel BUG at arch/x86/include/asm/fpu/xstate.h:177!

Thanks for the report. I am, indeed, reworking this code a bit. I'll
pay close attention if this code remains in some form.