arm64: Do not forget syscall when starting a new thread.
authorFrancis Laniel <flaniel@linux.microsoft.com>
Wed, 8 Jun 2022 16:24:46 +0000 (17:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:00 +0000 (14:23 +0200)
commit42eede3ae05bbf32cb0d87940b466ec5a76aca3f
treef7349ffe9fc763d641bbdea34dfcaaf1c659ba78
parentd1e812beae86ee9e8d3fc954374901d58dcd0b05
arm64: Do not forget syscall when starting a new thread.

[ Upstream commit de6921856f99c11d3986c6702d851e1328d4f7f6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/include/asm/processor.h