Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit b27de3a1 authored by AKASHI Takahiro's avatar AKASHI Takahiro Committed by Nirmal Abraham
Browse files

arm64: ptrace: add NT_ARM_SYSTEM_CALL regset



This regeset is intended to be used to get and set a system call number
while tracing.
There was some discussion about possible approaches to do so:

(1) modify x8 register with ptrace(PTRACE_SETREGSET) indirectly,
    and update regs->syscallno later on in syscall_trace_enter(), or
(2) define a dedicated regset for this purpose as on s390, or
(3) support ptrace(PTRACE_SET_SYSCALL) as on arch/arm

Thinking of the fact that user_pt_regs doesn't expose 'syscallno' to
tracer as well as that secure_computing() expects a changed syscall number,
especially case of -1, to be visible before this function returns in
syscall_trace_enter(), (1) doesn't work well.
We will take (2) since it looks much cleaner.

Signed-off-by: default avatarAKASHI Takahiro <takahiro.akashi@linaro.org>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
Git-commit: 766a85d7bc5d7f1ddd6de28bdb844eae45ec63b0
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarIan Maund <imaund@codeaurora.org>
Signed-off-by: default avatarRavi Kumar Siddojigari <rsiddoji@codeaurora.org>
Change-Id: I6b8a9355f12e08e1dbfed97c13917c235dd0c86d
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 4141b0e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment