]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: compat: Don't pull syscall number from regs in arm_compat_syscall
authorWill Deacon <will.deacon@arm.com>
Thu, 3 Jan 2019 18:00:39 +0000 (18:00 +0000)
committerWill Deacon <will.deacon@arm.com>
Fri, 4 Jan 2019 14:18:01 +0000 (14:18 +0000)
commit1eafd0fd5e0ede82e895577d6dfd7215c85a6ec2
tree1312ac6856bc9d350194a75b1e6a4f219f8c98b0
parent005868903f1ba6c4f2aca283ae0796c6916d538e
arm64: compat: Don't pull syscall number from regs in arm_compat_syscall

The syscall number may have been changed by a tracer, so we should pass
the actual number in from the caller instead of pulling it from the
saved r7 value directly.

Cc: <stable@vger.kernel.org>
Cc: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Dave Martin <Dave.Martin@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/sys_compat.c
arch/arm64/kernel/syscall.c