<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/sparc64/kernel/rtrap.S, 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-07-28T00:32:19Z</updated>
<entry>
<title>sparc64: tracehook: TIF_NOTIFY_RESUME</title>
<updated>2008-07-28T00:32:19Z</updated>
<author>
<name>Roland McGrath</name>
</author>
<published>2008-04-20T22:06:49Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e35a8925e0e7af8b26161a2c161ea31be0296b80'/>
<id>urn:sha1:e35a8925e0e7af8b26161a2c161ea31be0296b80</id>
<content type='text'>
This adds TIF_NOTIFY_RESUME support for sparc64.
When set, we call tracehook_notify_resume() on the way to user mode.

Signed-off-by: Roland McGrath &lt;roland@redhat.com&gt;
</content>
</entry>
<entry>
<title>sparc64: Prevent stack backtrace false positives on trap frames.</title>
<updated>2008-05-22T04:50:01Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-05-22T04:50:01Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ada44a0430fdd00b3f38aad0aa518e97cb760bd0'/>
<id>urn:sha1:ada44a0430fdd00b3f38aad0aa518e97cb760bd0</id>
<content type='text'>
When we fully commit to returning back to kernel mode from
a trap, zero out the regs-&gt;magic value to prevent false
positives during stack backtraces.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sparc64: remove CVS keywords</title>
<updated>2008-05-20T07:33:43Z</updated>
<author>
<name>Adrian Bunk</name>
</author>
<published>2008-05-19T23:52:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=b00dc8376465ee5f8dd49b95924e31b4c2404ab0'/>
<id>urn:sha1:b00dc8376465ee5f8dd49b95924e31b4c2404ab0</id>
<content type='text'>
This patch removes the CVS keywords that weren't updated for a long time
from comments.

Signed-off-by: Adrian Bunk &lt;bunk@kernel.org&gt;
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sparc64: Use a TS_RESTORE_SIGMASK</title>
<updated>2008-05-13T05:45:15Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-05-13T05:45:15Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9a28dbf8af11d127bf1c644143e7882cb91515dd'/>
<id>urn:sha1:9a28dbf8af11d127bf1c644143e7882cb91515dd</id>
<content type='text'>
This mirrors x86 changeset 5a8da0ea82db6fa9737041381079fd16f25dcce2
("signals: x86 TS_RESTORE_SIGMASK") on sparc64.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>sparc: Fix debugger syscall restart interactions.</title>
<updated>2008-05-11T09:07:19Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-05-11T09:07:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=28e6103665301ce60634e8a77f0b657c6cc099de'/>
<id>urn:sha1:28e6103665301ce60634e8a77f0b657c6cc099de</id>
<content type='text'>
So, forever, we've had this ptrace_signal_deliver implementation
which tries to handle all of the nasties that can occur when the
debugger looks at a process about to take a signal.  It's meant
to address all of these issues inside of the kernel so that the
debugger need not be mindful of such things.

Problem is, this doesn't work.

The idea was that we should do the syscall restart business first, so
that the debugger captures that state.  Otherwise, if the debugger for
example saves the child's state, makes the child execute something
else, then restores the saved state, we won't handle the syscall
restart properly because we lose the "we're in a syscall" state.

The code here worked for most cases, but if the debugger actually
passes the signal through to the child unaltered, it's possible that
we would do a syscall restart when we shouldn't have.

In particular this breaks the case of debugging a process under a gdb
which is being debugged by yet another gdb.  gdb uses sigsuspend
to wait for SIGCHLD of the inferior, but if gdb itself is being
debugged by a top-level gdb we get a ptrace_stop().  The top-level gdb
does a PTRACE_CONT with SIGCHLD to let the inferior gdb see the
signal.  But ptrace_signal_deliver() assumed the debugger would cancel
out the signal and therefore did a syscall restart, because the return
error was ERESTARTNOHAND.

Fix this by simply making ptrace_signal_deliver() a nop, and providing
a way for the debugger to control system call restarting properly:

1) Report a "in syscall" software bit in regs-&gt;{tstate,psr}.
   It is set early on in trap entry to a system call and is fully
   visible to the debugger via ptrace() and regsets.

2) Test this bit right before doing a syscall restart.  We have
   to do a final recheck right after get_signal_to_deliver() in
   case the debugger cleared the bit during ptrace_stop().

3) Clear the bit in trap return so we don't accidently try to set
   that bit in the real register.

As a result we also get a ptrace_{is,clear}_syscall() for sparc32 just
like sparc64 has.

M68K has this same exact bug, and is now the only other user of the
ptrace_signal_deliver hook.  It needs to be fixed in the same exact
way as sparc.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SPARC64]: %l6 trap return handling no longer necessary.</title>
<updated>2008-04-24T10:15:22Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2008-04-24T10:15:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7697daaa894ca2bc5cd652269c316bcdc3ec441b'/>
<id>urn:sha1:7697daaa894ca2bc5cd652269c316bcdc3ec441b</id>
<content type='text'>
Now that we indicate the "restart system call" in the
trap type field of pt_regs-&gt;magic, we don't need to
set the %l6 boolean in all of the trap return paths.

And we therefore don't need to pass it to do_notify_resume().

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SPARC64]: Add irqtrace/stacktrace/lockdep support.</title>
<updated>2006-12-10T10:39:09Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2006-11-16T21:38:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=10e267234cc0133bc9ed26bc34eb09de90c248c0'/>
<id>urn:sha1:10e267234cc0133bc9ed26bc34eb09de90c248c0</id>
<content type='text'>
Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>Remove obsolete #include &lt;linux/config.h&gt;</title>
<updated>2006-06-30T17:25:36Z</updated>
<author>
<name>Jörn Engel</name>
</author>
<published>2006-06-30T17:25:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6ab3d5624e172c553004ecc862bfeac16d9d68b7'/>
<id>urn:sha1:6ab3d5624e172c553004ecc862bfeac16d9d68b7</id>
<content type='text'>
Signed-off-by: Jörn Engel &lt;joern@wohnheim.fh-wedel.de&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
</content>
</entry>
<entry>
<title>[SPARC64]: Drop %gl to 0 before re-enabling PSTATE_IE in rtrap</title>
<updated>2006-03-20T09:13:57Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2006-02-23T00:15:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=fc504928677049f0ad3f1fd4e0bb3908172df8f3'/>
<id>urn:sha1:fc504928677049f0ad3f1fd4e0bb3908172df8f3</id>
<content type='text'>
If we take a window fault, on SUN4V set %gl to zero before we
turn PSTATE_IE back on in %pstate.  Otherwise if we take an
interrupt we'll end up with corrupt register state.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
<entry>
<title>[SPARC64]: Fix return from trap on SUN4V.</title>
<updated>2006-03-20T09:13:19Z</updated>
<author>
<name>David S. Miller</name>
</author>
<published>2006-02-17T00:23:45Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=af02bec66294c76fba181c665c68a31fd4392020'/>
<id>urn:sha1:af02bec66294c76fba181c665c68a31fd4392020</id>
<content type='text'>
We need to set the global register set _AND_ disable
PSTATE_IE in %pstate.  The original patch sequence was
leaving PSTATE_IE enabled when returning to kernel mode,
oops.

This fixes the random register corruption being seen
on SUN4V.

Signed-off-by: David S. Miller &lt;davem@davemloft.net&gt;
</content>
</entry>
</feed>
