diff options
author | Francis Laniel <flaniel@linux.microsoft.com> | 2022-06-08 17:24:46 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2022-07-01 12:33:05 +0100 |
commit | de6921856f99c11d3986c6702d851e1328d4f7f6 (patch) | |
tree | fc80e3bcfba5ed070c43deb8de1bca270bf501ec /arch/arm64/include/asm/processor.h | |
parent | 9f6a503d5238f444b13aaeaf8b88032dbcc5b707 (diff) | |
download | linux-de6921856f99c11d3986c6702d851e1328d4f7f6.tar.bz2 |
arm64: Do not forget syscall when starting a new thread.
Enable tracing of the execve*() system calls with the
syscalls:sys_exit_execve tracepoint by removing the call to
forget_syscall() when starting a new thread and preserving the value of
regs->syscallno across exec.
Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com>
Link: https://lore.kernel.org/r/20220608162447.666494-2-flaniel@linux.microsoft.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/include/asm/processor.h')
-rw-r--r-- | arch/arm64/include/asm/processor.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm64/include/asm/processor.h b/arch/arm64/include/asm/processor.h index 9e58749db21d..86eb0bfe3b38 100644 --- a/arch/arm64/include/asm/processor.h +++ b/arch/arm64/include/asm/processor.h @@ -272,8 +272,9 @@ void tls_preserve_current_state(void); static inline void start_thread_common(struct pt_regs *regs, unsigned long pc) { + s32 previous_syscall = regs->syscallno; memset(regs, 0, sizeof(*regs)); - forget_syscall(regs); + regs->syscallno = previous_syscall; regs->pc = pc; if (system_uses_irq_prio_masking()) |