<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/s390/kernel/compat_linux.c, branch linux-2.6.28.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.28.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2008-10-16T18:21:33Z</updated>
<entry>
<title>compat: generic compat get/settimeofday</title>
<updated>2008-10-16T18:21:33Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2008-10-16T05:02:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b418da16dd44810e5d5a22bba377cca80512a524'/>
<id>urn:sha1:b418da16dd44810e5d5a22bba377cca80512a524</id>
<content type='text'>
Nothing arch specific in get/settimeofday.  The details of the timeval
conversion varied a little from arch to arch, but all with the same
results.

Also add an extern declaration for sys_tz to linux/time.h because externs
in .c files are fowned upon.  I'll kill the externs in various other files
in a sparate patch.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt; [ sparc bits ]
Cc: "Luck, Tony" &lt;tony.luck@intel.com&gt;
Cc: Ralf Baechle &lt;ralf@linux-mips.org&gt;
Acked-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
Cc: Matthew Wilcox &lt;matthew@wil.cx&gt;
Cc: Grant Grundler &lt;grundler@parisc-linux.org&gt;
Cc: Paul Mackerras &lt;paulus@samba.org&gt;
Cc: Benjamin Herrenschmidt &lt;benh@kernel.crashing.org&gt;
Cc: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Cc: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Cc: Ingo Molnar &lt;mingo@elte.hu&gt;
Cc: Thomas Gleixner &lt;tglx@linutronix.de&gt;
Cc: "H. Peter Anvin" &lt;hpa@zytor.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>compat: move cp_compat_stat to common code</title>
<updated>2008-10-16T18:21:33Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2008-10-16T05:02:05Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f7a5000f7a8924e9c5fad1801616601d6dc65a17'/>
<id>urn:sha1:f7a5000f7a8924e9c5fad1801616601d6dc65a17</id>
<content type='text'>
struct stat / compat_stat is the same on all architectures, so
cp_compat_stat should be, too.

Turns out it is, except that various architectures have slightly and some
high2lowuid/high2lowgid or the direct assignment instead of the
SET_UID/SET_GID that expands to the correct one anyway.

This patch replaces the arch-specific cp_compat_stat implementations with
a common one based on the x86-64 one.

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Acked-by: David S. Miller &lt;davem@davemloft.net&gt; [ sparc bits ]
Acked-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt; [ parisc bits ]
Cc: &lt;linux-arch@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[S390] s390: use sys_pause for 31bit pause entry point</title>
<updated>2008-10-10T19:33:56Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2008-10-10T19:33:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d86730bb9597b02bff59a3a5a01c0094d71a265f'/>
<id>urn:sha1:d86730bb9597b02bff59a3a5a01c0094d71a265f</id>
<content type='text'>
sys32_pause is a useless copy of the generic sys_pause.
(and it's certainly not there for old sparc32 binaries..)

Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>arch: Remove unnecessary inclusions of asm/semaphore.h</title>
<updated>2008-04-19T02:14:49Z</updated>
<author>
<name>Matthew Wilcox</name>
</author>
<published>2008-02-26T14:55:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=950e4da32426859ee4b37b2c95026d4f1efa5d05'/>
<id>urn:sha1:950e4da32426859ee4b37b2c95026d4f1efa5d05</id>
<content type='text'>
None of these files use any of the functionality promised by
asm/semaphore.h.  It's possible that they rely on it dragging in some
unrelated header file, but I can't build all these files, so we'll have
fix any build failures as they come up.

Signed-off-by: Matthew Wilcox &lt;willy@linux.intel.com&gt;
</content>
</entry>
<entry>
<title>remove include/asm-*/ipc.h</title>
<updated>2007-10-17T15:42:55Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2007-10-17T06:29:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=cba4fbbff2e9722e93b28e18fa7714b9013cbdda'/>
<id>urn:sha1:cba4fbbff2e9722e93b28e18fa7714b9013cbdda</id>
<content type='text'>
All asm/ipc.h files do only #include &lt;asm-generic/ipc.h&gt;.

This patch therefore removes all include/asm-*/ipc.h files and moves the
contents of include/asm-generic/ipc.h to include/linux/ipc.h.

Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
Cc: &lt;linux-arch@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[S390] System call cleanup.</title>
<updated>2007-04-27T14:01:42Z</updated>
<author>
<name>Martin Schwidefsky</name>
</author>
<published>2007-04-27T14:01:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=03ff9a235a0602724fc54916469b6e0939c62c9b'/>
<id>urn:sha1:03ff9a235a0602724fc54916469b6e0939c62c9b</id>
<content type='text'>
Remove system call glue for sys_clone, sys_fork, sys_vfork, sys_execve,
sys_sigreturn, sys_rt_sigreturn and sys_sigaltstack. Call do_execve from
kernel_execve directly, move pt_regs to the right place and branch to
sysc_return to start the user space program. This removes the last
in-kernel system call.

Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>[PATCH] Common compat_sys_sysinfo</title>
<updated>2007-02-11T18:51:32Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2007-02-10T09:46:00Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d4d23add3abcd18d8021b99f230df608ccb2f007'/>
<id>urn:sha1:d4d23add3abcd18d8021b99f230df608ccb2f007</id>
<content type='text'>
I noticed that almost all architectures implemented exactly the same
sys32_sysinfo...  except parisc, where a bug was to be found in handling of
the uptime.  So let's remove a whole whack of code for fun and profit.
Cribbed compat_sys_sysinfo from x86_64's implementation, since I figured it
would be the best tested.

This patch incorporates Arnd's suggestion of not using set_fs/get_fs, but
instead extracting out the common code from sys_sysinfo.

Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: &lt;linux-arch@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>[S390] noexec protection</title>
<updated>2007-02-05T20:18:17Z</updated>
<author>
<name>Gerald Schaefer</name>
</author>
<published>2007-02-05T20:18:17Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c1821c2e9711adc3cd298a16b7237c92a2cee78d'/>
<id>urn:sha1:c1821c2e9711adc3cd298a16b7237c92a2cee78d</id>
<content type='text'>
This provides a noexec protection on s390 hardware. Our hardware does
not have any bits left in the pte for a hw noexec bit, so this is a
different approach using shadow page tables and a special addressing
mode that allows separate address spaces for code and data.

As a special feature of our "secondary-space" addressing mode, separate
page tables can be specified for the translation of data addresses
(storage operands) and instruction addresses. The shadow page table is
used for the instruction addresses and the standard page table for the
data addresses.
The shadow page table is linked to the standard page table by a pointer
in page-&gt;lru.next of the struct page corresponding to the page that
contains the standard page table (since page-&gt;private is not really
private with the pte_lock and the page table pages are not in the LRU
list).
Depending on the software bits of a pte, it is either inserted into
both page tables or just into the standard (data) page table. Pages of
a vma that does not have the VM_EXEC bit set get mapped only in the
data address space. Any try to execute code on such a page will cause a
page translation exception. The standard reaction to this is a SIGSEGV
with two exceptions: the two system call opcodes 0x0a77 (sys_sigreturn)
and 0x0aad (sys_rt_sigreturn) are allowed. They are stored by the
kernel to the signal stack frame. Unfortunately, the signal return
mechanism cannot be modified to use an SA_RESTORER because the
exception unwinding code depends on the system call opcode stored
behind the signal stack frame.

This feature requires that user space is executed in secondary-space
mode and the kernel in home-space mode, which means that the addressing
modes need to be switched and that the noexec protection only works
for user space.
After switching the addressing modes, we cannot use the mvcp/mvcs
instructions anymore to copy between kernel and user space. A new
mvcos instruction has been added to the z9 EC/BC hardware which allows
to copy between arbitrary address spaces, but on older hardware the
page tables need to be walked manually.

Signed-off-by: Gerald Schaefer &lt;geraldsc@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>[S390] Get rid of a lot of sparse warnings.</title>
<updated>2007-02-05T20:16:47Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2007-02-05T20:16:47Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=2b67fc46061b2171fb8fbb55d1ac717abd533569'/>
<id>urn:sha1:2b67fc46061b2171fb8fbb55d1ac717abd533569</id>
<content type='text'>
Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
<entry>
<title>[S390] uaccess error handling.</title>
<updated>2006-10-27T10:39:22Z</updated>
<author>
<name>Heiko Carstens</name>
</author>
<published>2006-10-27T10:39:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=12bae23507129a7337378e6433bff6f8696bdb45'/>
<id>urn:sha1:12bae23507129a7337378e6433bff6f8696bdb45</id>
<content type='text'>
Consider return values for all user space access function and
return -EFAULT on error.

Signed-off-by: Heiko Carstens &lt;heiko.carstens@de.ibm.com&gt;
Signed-off-by: Martin Schwidefsky &lt;schwidefsky@de.ibm.com&gt;
</content>
</entry>
</feed>
