<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/parisc/include/asm/uaccess.h, branch linux-4.1.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-4.1.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2016-10-03T01:14:04Z</updated>
<entry>
<title>parisc: fix copy_from_user()</title>
<updated>2016-10-03T01:14:04Z</updated>
<author>
<name>Al Viro</name>
</author>
<published>2016-08-20T23:03:37Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f39be7f631c7ce7b721b0568510b73266ce4b3e9'/>
<id>urn:sha1:f39be7f631c7ce7b721b0568510b73266ce4b3e9</id>
<content type='text'>
[ Upstream commit aace880feea38875fbc919761b77e5732a3659ef ]

Cc: stable@vger.kernel.org
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
Signed-off-by: Sasha Levin &lt;alexander.levin@verizon.com&gt;
</content>
</entry>
<entry>
<title>parisc: Unbreak handling exceptions from kernel modules</title>
<updated>2016-04-20T05:08:54Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2016-04-08T16:32:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e213cce42b7107f64521eb1434e9dd5637ad777b'/>
<id>urn:sha1:e213cce42b7107f64521eb1434e9dd5637ad777b</id>
<content type='text'>
[ Upstream commit 2ef4dfd9d9f288943e249b78365a69e3ea3ec072 ]

Handling exceptions from modules never worked on parisc.
It was just masked by the fact that exceptions from modules
don't happen during normal use.

When a module triggers an exception in get_user() we need to load the
main kernel dp value before accessing the exception_data structure, and
afterwards restore the original dp value of the module on exit.

Noticed-by: Mikulas Patocka &lt;mpatocka@redhat.com&gt;
Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
Cc: stable@vger.kernel.org
Signed-off-by: Sasha Levin &lt;sasha.levin@oracle.com&gt;
</content>
</entry>
<entry>
<title>parisc: macro whitespace fixes</title>
<updated>2015-02-17T09:39:14Z</updated>
<author>
<name>Michael S. Tsirkin</name>
</author>
<published>2015-01-06T15:45:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b9762e7b774c5849f694693fcd17cba0e78f2629'/>
<id>urn:sha1:b9762e7b774c5849f694693fcd17cba0e78f2629</id>
<content type='text'>
While working on arch/parisc/include/asm/uaccess.h, I noticed that some
macros within this header are made harder to read because they violate a
coding style rule: space is missing after comma.

Fix it up.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>parisc/uaccess: fix sparse errors</title>
<updated>2015-02-16T21:41:27Z</updated>
<author>
<name>Michael S. Tsirkin</name>
</author>
<published>2015-01-06T15:44:10Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=876b2a008371663cb66637fde5274f67afef1780'/>
<id>urn:sha1:876b2a008371663cb66637fde5274f67afef1780</id>
<content type='text'>
virtio wants to read bitwise types from userspace using get_user.  At the
moment this triggers sparse errors, since the value is passed through an
integer.

Fix that up using __force.

Signed-off-by: Michael S. Tsirkin &lt;mst@redhat.com&gt;
Acked-by: Helge Deller &lt;deller@gmx.de&gt;
Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>parisc: Use BUILD_BUG() instead of undefined functions</title>
<updated>2014-11-10T21:22:42Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2014-10-21T19:29:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8dd95c68f32b821ec02e89c42a4e500d6aebbd84'/>
<id>urn:sha1:8dd95c68f32b821ec02e89c42a4e500d6aebbd84</id>
<content type='text'>
Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>Revert "parisc: implement full version of access_ok()"</title>
<updated>2013-11-19T22:31:35Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2013-11-19T22:31:35Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a0ffa8f06f77a6197405521324501614d281bee1'/>
<id>urn:sha1:a0ffa8f06f77a6197405521324501614d281bee1</id>
<content type='text'>
This reverts commit 63379c135331c724d40a87b98eb62d2122981341.

It broke userspace and adding more checking is not needed.
Even checking if a syscall would access memory in page zero doesn't
makes sense since it may lead to some syscalls returning -EFAULT
where we would return other error codes on other platforms.
In summary, just drop this change and return to always return 1.

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>parisc: implement full version of access_ok()</title>
<updated>2013-11-07T21:29:14Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2013-06-29T12:03:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63379c135331c724d40a87b98eb62d2122981341'/>
<id>urn:sha1:63379c135331c724d40a87b98eb62d2122981341</id>
<content type='text'>
Up to now PA-RISC could live with a trivial version of access_ok().
Our fault handlers can correctly handle fault cases.

But testcases showed that we need a better access check else we won't
always return correct errno failure codes to userspace.

Problem showed up during 32bit userspace tests in which writev() used a
32bit memory area and length which would then wrap around on 64bit
kernel.

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>parisc: provide macro to create exception table entries</title>
<updated>2013-11-07T21:25:33Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2013-10-13T19:11:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=61dbbaeb86c2181c79efae2d186193e0f8008af1'/>
<id>urn:sha1:61dbbaeb86c2181c79efae2d186193e0f8008af1</id>
<content type='text'>
Provide a macro ASM_EXCEPTIONTABLE_ENTRY() to create exception table
entries and convert all open-coded places to use that macro.

This patch is a first step toward creating a exception table which only
holds 32bit pointers even on a 64bit kernel. That way in my own kernel
I was able to reduce the in-kernel exception table from 44kB to 22kB.

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>parisc: uaccess: fix compiler warnings caused by __put_user casting</title>
<updated>2013-04-25T20:36:42Z</updated>
<author>
<name>Will Deacon</name>
</author>
<published>2013-04-22T12:53:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0f28b62890097cb8732581a80f0a47fd7649df7d'/>
<id>urn:sha1:0f28b62890097cb8732581a80f0a47fd7649df7d</id>
<content type='text'>
When targetting 32-bit processors, __put_user emits a pair of stw
instructions for the 8-byte case. If the type of __val is a pointer, the
marshalling code casts it to the wider integer type of u64, resulting
in the following compiler warnings:

  kernel/signal.c: In function 'copy_siginfo_to_user':
  kernel/signal.c:2752:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  kernel/signal.c:2752:11: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
  [...]

This patch fixes the warnings by removing the marshalling code and using
the correct output modifiers in the __put_{user,kernel}_asm64 macros
so that GCC will allocate the right registers without the need to
extract the two words explicitly.

Cc: Helge Deller &lt;deller@gmx.de&gt;
Signed-off-by: Will Deacon &lt;will.deacon@arm.com&gt;
Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
</content>
</entry>
<entry>
<title>[PARISC] update parisc to use generic strncpy_from_user()</title>
<updated>2012-05-31T10:14:37Z</updated>
<author>
<name>James Bottomley</name>
</author>
<published>2012-05-26T08:48:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b1195c0e3ee1a1ba986923bf3ed8311b7b336432'/>
<id>urn:sha1:b1195c0e3ee1a1ba986923bf3ed8311b7b336432</id>
<content type='text'>
Signed-off-by: James Bottomley &lt;JBottomley@Parallels.com&gt;
</content>
</entry>
</feed>
