ARC: Fix KSTK_ESP()
authorVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 05:09:17 +0000 (10:39 +0530)
committerVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 05:18:23 +0000 (10:48 +0530)
commit13648b0118a24f4fc76c34e6c7b6ccf447e46a2a
tree1facc387bd1da19bb1ba8a343530135a1534dc57
parentceed97ab4ff76cb5b1d616a810e941f8837dc440
ARC: Fix KSTK_ESP()

/proc/<pid>/maps currently don't annotate stack vma with "[stack]"
This is because KSTK_ESP ie expected to return usermode SP of tsk while
currently it returns the kernel mode SP of a sleeping tsk.

While the fix is trivial, we also need to adjust the ARC kernel stack
unwinder to not use KSTK_SP and friends any more.

Cc: <stable@vger.kernel.org>
Reported-and-suggested-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/include/asm/processor.h
arch/arc/kernel/stacktrace.c