<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/x86/lib/getuser.S, branch linux-3.17.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-3.17.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2013-02-12T07:14:48Z</updated>
<entry>
<title>x86: Be consistent with data size in getuser.S</title>
<updated>2013-02-12T07:14:48Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2013-02-12T07:14:48Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=16640165c9079e2cf36fdcfca093f29663a716f7'/>
<id>urn:sha1:16640165c9079e2cf36fdcfca093f29663a716f7</id>
<content type='text'>
Consistently use the data register by name and use a sized assembly
instruction in getuser.S.  There is never any reason to macroize it,
and being inconsistent in the same file is just annoying.

No actual code change.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
</content>
</entry>
<entry>
<title>x86-32: Add support for 64bit get_user()</title>
<updated>2013-02-07T23:07:28Z</updated>
<author>
<name>Ville Syrjälä</name>
</author>
<published>2012-12-12T11:34:03Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=96477b4cd705c5416346aef262b0a1116cfcdd80'/>
<id>urn:sha1:96477b4cd705c5416346aef262b0a1116cfcdd80</id>
<content type='text'>
Implement __get_user_8() for x86-32. It will return the
64-bit result in edx:eax register pair, and ecx is used
to pass in the address and return the error value.

For consistency, change the register assignment for all
other __get_user_x() variants, so that address is passed in
ecx/rcx, the error value is returned in ecx/rcx, and eax/rax
contains the actual value.

[ hpa: I modified the patch so that it does NOT change the calling
  conventions for the existing callsites, this also means that the code
  is completely unchanged for 64 bits.

  Instead, continue to use eax for address input/error output and use
  the ecx:edx register pair for the output. ]

This is a partial refresh of a patch [1] by Jamie Lokier from
2004. Only the minimal changes to implement 64bit get_user()
were picked from the original patch.

[1] http://article.gmane.org/gmane.linux.kernel/198823

Originally-by: Jamie Lokier &lt;jamie@shareable.org&gt;
Signed-off-by: Ville Syrjälä &lt;ville.syrjala@linux.intel.com&gt;
Link:
http://lkml.kernel.org/r/1355312043-11467-1-git-send-email-ville.syrjala@linux.intel.com
Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>x86, smap: Add STAC and CLAC instructions to control user space access</title>
<updated>2012-09-21T19:45:27Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2012-09-21T19:43:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63bcff2a307b9bcc712a8251eb27df8b2e117967'/>
<id>urn:sha1:63bcff2a307b9bcc712a8251eb27df8b2e117967</id>
<content type='text'>
When Supervisor Mode Access Prevention (SMAP) is enabled, access to
userspace from the kernel is controlled by the AC flag.  To make the
performance of manipulating that flag acceptable, there are two new
instructions, STAC and CLAC, to set and clear it.

This patch adds those instructions, via alternative(), when the SMAP
feature is enabled.  It also adds X86_EFLAGS_AC unconditionally to the
SYSCALL entry mask; there is simply no reason to make that one
conditional.

Signed-off-by: H. Peter Anvin &lt;hpa@linux.intel.com&gt;
Link: http://lkml.kernel.org/r/1348256595-29119-9-git-send-email-hpa@linux.intel.com
</content>
</entry>
<entry>
<title>x86, extable: Remove open-coded exception table entries in arch/x86/lib/getuser.S</title>
<updated>2012-04-20T20:51:39Z</updated>
<author>
<name>H. Peter Anvin</name>
</author>
<published>2012-04-20T19:19:51Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1a27bc0d99aabea6b628cb994a21a1c79b569fc9'/>
<id>urn:sha1:1a27bc0d99aabea6b628cb994a21a1c79b569fc9</id>
<content type='text'>
Remove open-coded exception table entries in arch/x86/lib/getuser.S,
and replace them with _ASM_EXTABLE() macros; this will allow us to
change the format and type of the exception table entries.

Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Cc: David Daney &lt;david.daney@cavium.com&gt;
Link: http://lkml.kernel.org/r/CA%2B55aFyijf43qSu3N9nWHEBwaGbb7T2Oq9A=9EyR=Jtyqfq_cQ@mail.gmail.com
</content>
</entry>
<entry>
<title>x86: use _types.h headers in asm where available</title>
<updated>2009-02-13T19:35:01Z</updated>
<author>
<name>Jeremy Fitzhardinge</name>
</author>
<published>2009-02-13T19:14:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0341c14da49e7b93d2998926f6ac89a3129e3fa1'/>
<id>urn:sha1:0341c14da49e7b93d2998926f6ac89a3129e3fa1</id>
<content type='text'>
In general, the only definitions that assembly files can use
are in _types.S headers (where available), so convert them.

Signed-off-by: Jeremy Fitzhardinge &lt;jeremy.fitzhardinge@citrix.com&gt;
</content>
</entry>
<entry>
<title>x86: merge getuser asm functions.</title>
<updated>2008-07-09T07:14:05Z</updated>
<author>
<name>Glauber Costa</name>
</author>
<published>2008-06-24T15:05:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6c2d458680d49d939ffd4b4cdc84d9e004d65910'/>
<id>urn:sha1:6c2d458680d49d939ffd4b4cdc84d9e004d65910</id>
<content type='text'>
getuser_32.S and getuser_64.S are merged into getuser.S.

Signed-off-by: Glauber Costa &lt;gcosta@redhat.com&gt;
Signed-off-by: H. Peter Anvin &lt;hpa@zytor.com&gt;
Signed-off-by: Ingo Molnar &lt;mingo@elte.hu&gt;
</content>
</entry>
</feed>
