diff options
| author | Juergen Gross <[email protected]> | 2018-02-01 12:40:19 +0000 |
|---|---|---|
| committer | Juergen Gross <[email protected]> | 2018-02-06 08:37:18 +0000 |
| commit | 4f277295e54c5b7340e48efea3fc5cc21a2872b7 (patch) | |
| tree | c0afd5986abcc7183cf4253a578e7a732753f7d8 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Merge branch 'master' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/t... (diff) | |
| download | kernel-4f277295e54c5b7340e48efea3fc5cc21a2872b7.tar.gz kernel-4f277295e54c5b7340e48efea3fc5cc21a2872b7.zip | |
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]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
