]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
x86/xen: init %gs very early to avoid page faults with stack protector
authorJuergen Gross <jgross@suse.com>
Thu, 1 Feb 2018 12:40:19 +0000 (13:40 +0100)
committerJuergen Gross <jgross@suse.com>
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: stable@vger.kernel.org
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Tested-by: Chris Patterson <cjp256@gmail.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/xen-head.S