]> 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)
commite8a326810bfbf38db9d744bf34187d26be2e17aa
treedd1a2a6075667841f88b1ea8b62f4df2e18c3c68
parentc69aca666857dbffb1f74f8281ce2c1a9630fec8
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