<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/parisc/kernel/traps.c, branch linux-2.6.30.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-2.6.30.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2009-03-31T02:51:35Z</updated>
<entry>
<title>parisc: oops_enter()/oops_exit() in die()</title>
<updated>2009-03-31T02:51:35Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2009-02-16T03:03:11Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c48faf86b0d59cc43ff4eede59c4af7afbd7c0ff'/>
<id>urn:sha1:c48faf86b0d59cc43ff4eede59c4af7afbd7c0ff</id>
<content type='text'>
As pointed out by Russell in http://marc.info/?l=linux-arch&amp;m=118208089204630&amp;w=2

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>parisc: add ftrace (function and graph tracer) functionality</title>
<updated>2009-03-31T02:51:34Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2009-02-08T23:43:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d75f054a2cf0614ff63d534ff21ca8eaab41e713'/>
<id>urn:sha1:d75f054a2cf0614ff63d534ff21ca8eaab41e713</id>
<content type='text'>
This patch adds the ftrace debugging functionality to the parisc kernel.
It will currently only work with 64bit kernels, because the gcc options -pg
and -ffunction-sections can't be enabled at the same time and -ffunction-sections
is still needed to be able to link 32bit kernels.

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>parisc: export length of os_hpmc vector</title>
<updated>2009-01-05T19:18:27Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2009-01-03T06:35:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ae16489eb1175066c8f3008fc3c0396c525e1906'/>
<id>urn:sha1:ae16489eb1175066c8f3008fc3c0396c525e1906</id>
<content type='text'>
and use this instead of dealing with exporting start/end and
toying with function descriptors.

Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>parisc: fix kernel crash (protection id trap) when compiling ruby1.9</title>
<updated>2009-01-05T19:16:46Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2008-12-20T02:29:06Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=c61c25eb02757ecf697015ef4ae3675c5e114e2e'/>
<id>urn:sha1:c61c25eb02757ecf697015ef4ae3675c5e114e2e</id>
<content type='text'>
On Wed, Dec 17, 2008 at 11:46:05PM +0100, Helge Deller wrote:
&gt;

Honestly, I can't decide whether to apply this. It really should never
happen in the kernel, since the kernel can guarantee it won't get the
access rights failure (highest privilege level, and can set %sr and
%protid to whatever it wants.)

It really genuinely is a bug that probably should panic the kernel. The
only precedent I can easily see is x86 fixing up a bad iret with a
general protection fault, which is more or less analogous to code 27
here.

On the other hand, taking the exception on a userspace access really
isn't all that critical, and there's fundamentally little reason for the
kernel not to SIGSEGV the process, and continue...

Argh.

(btw, I've instrumented my do_sys_poll with a pile of assertions that
 %cr8 &lt;&lt; 1 == %sr3 == current-&gt;mm.context... let's see if where we're
 getting corrupted is deterministic, though, I would guess that it won't
 be.)

Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>parisc: fix kernel crash when unwinding a userspace process</title>
<updated>2008-11-26T22:22:39Z</updated>
<author>
<name>Helge Deller</name>
</author>
<published>2008-11-26T20:46:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=7a3f5134a8f5bd7fa38b5645eef05e8a4eb62951'/>
<id>urn:sha1:7a3f5134a8f5bd7fa38b5645eef05e8a4eb62951</id>
<content type='text'>
Any user on existing parisc 32- and 64bit-kernels can easily crash
the kernel and as such enforce a DSO.
A simple testcase is available here:
        http://gsyprf10.external.hp.com/~deller/crash.tgz

The problem is introduced by the fact, that the handle_interruption()
crash handler calls the show_regs() function, which in turn tries to
unwind the stack by calling parisc_show_stack().  Since the stack contains
userspace addresses, a try to unwind the stack is dangerous and useless
and leads to the crash.

The fix is trivial: For userspace processes
a) avoid to unwind the stack, and
b) avoid to resolve userspace addresses to kernel symbol names.

While touching this code, I converted print_symbol() to %pS
printk formats and made parisc_show_stack() static.

An initial patch for this was written by Kyle McMartin back in August:
http://marc.info/?l=linux-parisc&amp;m=121805168830283&amp;w=2

Compile and run-tested with a 64bit parisc kernel.

Signed-off-by: Helge Deller &lt;deller@gmx.de&gt;
Cc: Grant Grundler &lt;grundler@parisc-linux.org&gt;
Cc: Matthew Wilcox &lt;matthew@wil.cx&gt;
Cc: &lt;stable@kernel.org&gt;		[2.6.25.x, 2.6.26.x, 2.6.27.x, earlier...]
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>parisc: replace remaining __FUNCTION__ occurrences</title>
<updated>2008-05-15T14:38:54Z</updated>
<author>
<name>Harvey Harrison</name>
</author>
<published>2008-05-14T23:21:55Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=91bae23ce185b74c9b6dda86b92bb204a1c951c3'/>
<id>urn:sha1:91bae23ce185b74c9b6dda86b92bb204a1c951c3</id>
<content type='text'>
__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison &lt;harvey.harrison@gmail.com&gt;
Cc: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
Cc: Matthew Wilcox &lt;willy@debian.org&gt;
Cc: Grant Grundler &lt;grundler@parisc-linux.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>[PARISC] clean up show_stack</title>
<updated>2008-03-16T02:12:15Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2008-03-01T18:30:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=dc39455e7948ec9bc5f3f2dced5c2f5ac8a8dfd9'/>
<id>urn:sha1:dc39455e7948ec9bc5f3f2dced5c2f5ac8a8dfd9</id>
<content type='text'>
When we show_regs, we obviously have a struct pt_regs of the calling
frame. Use these in show_stack so we don't have the entire bogus call trace
up to the show_stack call.

Signed-off-by: Kyle McMartin &lt;kyle@mcmartin.ca&gt;
</content>
</entry>
<entry>
<title>[PARISC] dump_stack in show_regs</title>
<updated>2008-03-16T02:12:01Z</updated>
<author>
<name>Kyle McMartin</name>
</author>
<published>2008-02-19T07:26:46Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=d0347b49c9a877a33c59f80de1a9dbabd5244205'/>
<id>urn:sha1:d0347b49c9a877a33c59f80de1a9dbabd5244205</id>
<content type='text'>
Originally, show_stack was used in BUG() output. However, a recent commit
changed it to print register state (no idea what that's supposed to help,
really...) and parisc was missing a backtrace because of it.

Signed-off-by: Kyle McMartin &lt;kyle@parisc-linux.org&gt;
</content>
</entry>
<entry>
<title>Use helpers to obtain task pid in printks (arch code)</title>
<updated>2007-10-19T18:53:43Z</updated>
<author>
<name>Alexey Dobriyan</name>
</author>
<published>2007-10-19T06:40:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=19c5870c0eefd27c6d09d867465e0571262e05d0'/>
<id>urn:sha1:19c5870c0eefd27c6d09d867465e0571262e05d0</id>
<content type='text'>
One of the easiest things to isolate is the pid printed in kernel log.
There was a patch, that made this for arch-independent code, this one makes
so for arch/xxx files.

It took some time to cross-compile it, but hopefully these are all the
printks in arch code.

Signed-off-by: Alexey Dobriyan &lt;adobriyan@openvz.org&gt;
Signed-off-by: Pavel Emelyanov &lt;xemul@openvz.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>Report that kernel is tainted if there was an OOPS</title>
<updated>2007-07-17T17:23:02Z</updated>
<author>
<name>Pavel Emelianov</name>
</author>
<published>2007-07-17T11:03:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=bcdcd8e725b923ad7c0de809680d5d5658a7bf8c'/>
<id>urn:sha1:bcdcd8e725b923ad7c0de809680d5d5658a7bf8c</id>
<content type='text'>
If the kernel OOPSed or BUGed then it probably should be considered as
tainted.  Thus, all subsequent OOPSes and SysRq dumps will report the
tainted kernel.  This saves a lot of time explaining oddities in the
calltraces.

Signed-off-by: Pavel Emelianov &lt;xemul@openvz.org&gt;
Acked-by: Randy Dunlap &lt;randy.dunlap@oracle.com&gt;
Cc: &lt;linux-arch@vger.kernel.org&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
[ Added parisc patch from Matthew Wilson  -Linus ]
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
