Re: Adding TIF_TRACE_KERNEL to x86_64

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Mathieu Desnoyers <mathieu.desnoyers@...>
Cc: <linux-kernel@...>
Date: Saturday, October 27, 2007 - 3:00 pm

On Fri, Oct 26, 2007 at 03:37:38PM -0400, Mathieu Desnoyers wrote:

Yes. The code was not designed to allow that. The syscall path
has been optimized to go as fast as possible.


ptrace only changes state in stopped processes; and those are not hanging
in syscalls. So no there is no race in a standard kernel.

If you wanted to change it the right way would be probably to test
for SYSCALL_TRACE too in the work flags and handle it there

-Andi

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Adding TIF_TRACE_KERNEL to x86_64, Mathieu Desnoyers, (Fri Oct 26, 3:37 pm)
Re: Adding TIF_TRACE_KERNEL to x86_64, Andi Kleen, (Sat Oct 27, 3:00 pm)
[PATCH] Fix x86_64 TIF_SYSCALL_TRACE race in entry.S, Mathieu Desnoyers, (Sat Oct 27, 2:08 pm)
Re: [PATCH] Fix x86_64 TIF_SYSCALL_TRACE race in entry.S, Mathieu Desnoyers, (Sun Oct 28, 5:15 pm)
Re: [PATCH] Fix x86_64 TIF_SYSCALL_TRACE race in entry.S, Mathieu Desnoyers, (Sun Oct 28, 6:31 pm)