]> Git Repo - linux.git/commit
x86/xen: init %gs very early to avoid page faults with stack protector
authorJuergen Gross <[email protected]>
Thu, 1 Feb 2018 12:40:19 +0000 (13:40 +0100)
committerJuergen Gross <[email protected]>
Tue, 6 Feb 2018 08:37:18 +0000 (09:37 +0100)
commit4f277295e54c5b7340e48efea3fc5cc21a2872b7
treec0afd5986abcc7183cf4253a578e7a732753f7d8
parentddb9e13af3bba3f8c36ccee0eb9563a82b425c12
x86/xen: init %gs very early to avoid page faults with stack protector

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: [email protected]
Signed-off-by: Juergen Gross <[email protected]>
Reviewed-by: Boris Ostrovsky <[email protected]>
Tested-by: Chris Patterson <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
arch/x86/xen/xen-head.S
This page took 0.055946 seconds and 4 git commands to generate.