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)
commit53290432145a8eb143fe29e06e9c1465d43dc723
tree1312ac6856bc9d350194a75b1e6a4f219f8c98b0
parent169113ece0f29ebe884a6cfcf57c1ace04d8a36a
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