]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: ptrace: Use NO_SYSCALL instead of -1 in syscall_trace_enter()
authorWill Deacon <will@kernel.org>
Fri, 10 Jul 2020 12:20:57 +0000 (13:20 +0100)
committerWill Deacon <will@kernel.org>
Thu, 16 Jul 2020 10:42:08 +0000 (11:42 +0100)
commit12c6f8dbd12f669a5999e3bd8b4fd992b5dc675f
treefd08a028af7aae9121e697d1eae8bb401b4891eb
parent5d6fc97d41f270118fc9fa486ae89dac5aa33481
arm64: ptrace: Use NO_SYSCALL instead of -1 in syscall_trace_enter()

Setting a system call number of -1 is special, as it indicates that the
current system call should be skipped.

Use NO_SYSCALL instead of -1 when checking for this scenario, which is
different from the -1 returned due to a seccomp failure.

Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Keno Fischer <keno@juliacomputing.com>
Cc: Luis Machado <luis.machado@linaro.org>
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/ptrace.c