]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit18a65973148f55b3b9c1f19e895dce5ca1ecfb93
treedd1a2a6075667841f88b1ea8b62f4df2e18c3c68
parent0d57695b94d3d70934225be87b6bbd0c87cc7db1
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