]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARC: Fix KSTK_ESP()
authorVineet Gupta <vgupta@synopsys.com>
Fri, 27 Feb 2015 05:09:17 +0000 (10:39 +0530)
committerSasha Levin <sasha.levin@oracle.com>
Sat, 14 Mar 2015 19:37:27 +0000 (15:37 -0400)
commitb7dc640d64902d88d4ff9117d1f417ea471ee562
tree648698e2ffb05769ad8afdee998491b3db69d8e4
parent8ed378b1711f05f26c4ebce1c81eda7cf6e89f44
ARC: Fix KSTK_ESP()

commit 13648b0118a24f4fc76c34e6c7b6ccf447e46a2a upstream.

/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.

Reported-and-suggested-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
arch/arc/include/asm/processor.h
arch/arc/kernel/stacktrace.c