From: Will Deacon Date: Fri, 29 Aug 2014 15:11:10 +0000 (+0100) Subject: arm64: report correct stack pointer in KSTK_ESP for compat tasks X-Git-Tag: fixes-v3.17-rc4~33^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3168a743461ecf86adf3e7dcfcd79271828fb263;p=pandora-kernel.git arm64: report correct stack pointer in KSTK_ESP for compat tasks The KSTK_ESP macro is used to determine the user stack pointer for a given task. In particular, this is used to to report the '[stack]' VMA in /proc/self/maps, which is used by Android to determine the stack location for children of the main thread. This patch fixes the macro to use user_stack_pointer instead of directly returning sp. This means that we report w13 instead of sp, since the former is used as the stack pointer when executing in AArch32 state. Cc: Reported-by: Serban Constantinescu Signed-off-by: Will Deacon --- Reading git-diff-tree failed