]> Git Repo - linux.git/commit
x86/vdso32/syscall.S: Do not load __USER32_DS to %ss
authorDenys Vlasenko <[email protected]>
Fri, 27 Mar 2015 18:48:17 +0000 (11:48 -0700)
committerIngo Molnar <[email protected]>
Tue, 31 Mar 2015 08:45:15 +0000 (10:45 +0200)
commite7d6eefaaa443130079d73cd05039d90b3db7a4a
treea4d3bc5bb4690e7d40a26fd4c113c60e1a4bf1ce
parent0a4f59d6e09ef16fbb7d213cfa1bf472c7845fda
x86/vdso32/syscall.S: Do not load __USER32_DS to %ss

This vDSO code only gets used by 64-bit kernels, not 32-bit ones.

On 64-bit kernels, the data segment is the same for 32-bit and
64-bit userspace, and the SYSRET instruction loads %ss with its
selector.

So there's no need to repeat it by hand. Segment loads are somewhat
expensive: tens of cycles.

Signed-off-by: Denys Vlasenko <[email protected]>
[ Removed unnecessary comment. ]
Signed-off-by: Andy Lutomirski <[email protected]>
Cc: Alexei Starovoitov <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Will Drewry <[email protected]>
Link: http://lkml.kernel.org/r/63da6d778f69fd0f1345d9287f6764d58be519fa.1427482099.git.luto@kernel.org
Signed-off-by: Ingo Molnar <[email protected]>
arch/x86/vdso/vdso32/syscall.S
This page took 0.054334 seconds and 4 git commands to generate.