Skip to content
Commit 4f277295 authored by Juergen Gross's avatar Juergen Gross
Browse files

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: stable@vger.kernel.org
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: default avatarChris Patterson <cjp256@gmail.com>
Signed-off-by: default avatarJuergen Gross <jgross@suse.com>
parent ddb9e13a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment