]> 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)
commitaba2d8f70eecd264273eda68967451eefbb5a8f4
tree1312ac6856bc9d350194a75b1e6a4f219f8c98b0
parent50d65aa4c096e9ab9218915f31ee12bd9ee65e53
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