[CRIU] [PATCH] ptrace: don't call PTRACE_INTERRUPT many times

Pavel Emelyanov xemul at parallels.com
Tue Apr 23 12:58:06 EDT 2013


On 04/23/2013 06:32 PM, Cyrill Gorcunov wrote:
> On Tue, Apr 23, 2013 at 04:54:53PM +0400, Andrey Vagin wrote:
>> According to the commit message in the kernel git, a new trap flag
>> JOBCTL_TRAP_INTERRUPT is added, which is set on PTRACE_INTERRUPT and
>> cleared when any trap happens.
>>
>> Currently we have a race window beetwen PTRACE_CONT and
>> PTRACE_INTERRUPT. If a process stops before PTRACE_INTERRUPT,
>> the flag JOBCTL_TRAP_INTERRUPT will be set once again.
>>
>> https://bugzilla.openvz.org/show_bug.cgi?id=2569
>>
>> Signed-off-by: Andrey Vagin <avagin at openvz.org>
>> ---
> Acked-by: Cyrill Gorcunov <gorcunov at openvz.org>
> 
> Thanks a lot, Andrew!
> .
> 


applied


More information about the CRIU mailing list