]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2015 12:31:31 +0000 (13:31 +0100)
commite12348dff72867bc10ebccdcd712a3d69a436bd0
tree26284033d56beb4818216cdc3b12b716cffaa186
parent136ff69491588c69f62d1b1f24060a77a5cd35d4
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arc/include/asm/processor.h
arch/arc/kernel/stacktrace.c