]> bbs.cooldavid.org Git - net-next-2.6.git/commit
sparc32: Fix unaligned stack handling on trap return.
authorDavid S. Miller <davem@davemloft.net>
Fri, 24 Sep 2010 05:06:47 +0000 (22:06 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Oct 2010 15:59:55 +0000 (08:59 -0700)
commit9088333e3d83a68aeac15f7810c3cbf332b80303
tree7187e09ba5e21ee60df9c1efc6d2b8f793e64399
parentcaebf9103be2e6a5330c6395a1f9f213edb0c8df
sparc32: Fix unaligned stack handling on trap return.

When the rett stack checking code sees the stack is unaligned (in both
the sun4c and srmmu cases) it jumps to the window fault-in path.

But that just tries to page the stack pages in, it doesn't do anything
special if the stack is misaligned.

Therefore we essentially just loop forever in the trap return path.

Fix this by emitting a SIGILL in the stack fault-in code if the stack
is mis-aligned.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/mm/fault_32.c