Re: [PATCH] powerpc: Fix bad stack check in exception entry

2013-12-17 Thread Michael Ellerman
On Mon, 2013-12-16 at 15:12 +1100, Michael Neuling wrote: > In EXCEPTION_PROLOG_COMMON() we check to see if the stack pointer (r1) > is valid when coming from the kernel. If it's not valid, we die but > with a nice oops message. > > Currently we allocate a stack frame (subtract INT_FRAME_SIZE) be

[PATCH] powerpc: Fix bad stack check in exception entry

2013-12-15 Thread Michael Neuling
In EXCEPTION_PROLOG_COMMON() we check to see if the stack pointer (r1) is valid when coming from the kernel. If it's not valid, we die but with a nice oops message. Currently we allocate a stack frame (subtract INT_FRAME_SIZE) before we check to see if the stack pointer is negative. Unfortunatel