OSDN Git Service

new helper: compat_user_stack_pointer()
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 14 Dec 2012 18:49:35 +0000 (13:49 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 19 Dec 2012 23:07:40 +0000 (18:07 -0500)
commit9b064fc3f95a8e44e929fdf4d6037334ea03d15b
treedd1a2a6075667841f88b1ea8b62f4df2e18c3c68
parent5c49574ffd7ac07eae8c3b065d19e6ebc7e4760f
new helper: compat_user_stack_pointer()

Compat counterpart of current_user_stack_pointer(); for most of the biarch
architectures those two are identical, but e.g. arm64 and arm use different
registers for stack pointer...

Note that amd64 variants of current_user_stack_pointer/compat_user_stack_pointer
do *not* rely on pt_regs having been through FIXUP_TOP_OF_STACK.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
arch/arm64/include/asm/compat.h
arch/x86/include/asm/ptrace.h
include/linux/compat.h