Re: [Xen-devel] [PATCH v2] x86/xen: init %gs very early to avoid page faults with stack protector
From: Chris Patterson
Date: Thu Feb 01 2018 - 19:36:37 EST
Works great, tested it and it fixes booting Linux v4.15 kernel for me :)
Cheers!
On Thu, Feb 1, 2018 at 3:17 PM, Boris Ostrovsky
<boris.ostrovsky@xxxxxxxxxx> wrote:
> On 02/01/2018 07:40 AM, Juergen Gross wrote:
>> When running as Xen pv guest %gs is initialized some time after
>> C code is started. Depending on stack protector usage this might be
>> too late, resulting in page faults.
>>
>> So setup %gs and MSR_GS_BASE in assembly code already.
>>
>> Cc: stable@xxxxxxxxxxxxxxx
>> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
>
> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxxx
> https://lists.xenproject.org/mailman/listinfo/xen-devel