Skip to content

Commit 64284a9

Browse files
wildea01Russell King
authored andcommitted
ARM: 7454/1: entry: don't bother with syscall tracing on ret_from_fork path
ret_from_fork is setup for a freshly spawned child task via copy_thread, called from copy_process. The latter function clears TIF_SYSCALL_TRACE and also resets the child task's audit_context to NULL, meaning that there is little point invoking the system call tracing routines. Furthermore, getting hold of the syscall number is a complete pain and it looks like the current code doesn't even bother. This patch removes the syscall tracing checks from ret_from_fork. Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 8f827a1 commit 64284a9

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎arch/arm/kernel/entry-common.S‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,7 @@ ENDPROC(ret_to_user)
9595
ENTRY(ret_from_fork)
9696
bl schedule_tail
9797
get_thread_info tsk
98-
ldr r1, [tsk, #TI_FLAGS] @ check for syscall tracing
9998
mov why, #1
100-
tst r1, #_TIF_SYSCALL_WORK @ are we tracing syscalls?
101-
beq ret_slow_syscall
102-
mov r1, sp
103-
mov r0, #1 @ trace exit [IP = 1]
104-
bl syscall_trace
10599
b ret_slow_syscall
106100
ENDPROC(ret_from_fork)
107101

0 commit comments

Comments
 (0)