2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 13:58:34 +00:00
Andrey Vagin bae333dfcb restorer: fix a race condition between access and unmap to task_entries
If we have tree threads, a following situation can occur:

T2: dec task_entries->nr_in_progress
T3: dec task_entries->nr_in_progress
T3: futex(&task_entries->nr_in_progress, WAKE_UP);
T1: unmap task_entries
T2: futex(&task_entries->nr_in_progress, WAKE_UP) -> EFAULT -> BUG_ON()

This patch adds a futex for synchronising threads.

Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
2012-11-26 18:46:11 +04:00
2012-10-18 19:47:17 +04:00
2012-11-26 18:38:15 +04:00
2012-11-23 16:37:39 +04:00
2012-07-09 15:03:38 +04:00
2012-03-25 23:31:20 +04:00
2011-12-05 14:11:05 +04:00
2012-11-23 16:43:33 +04:00
2012-11-12 17:42:59 +04:00
2012-07-30 13:52:37 +04:00
2012-08-20 15:14:43 +04:00
2012-09-12 20:00:55 +04:00
2012-08-20 15:14:57 +04:00
2012-11-06 13:37:15 +04:00
2012-09-14 22:09:22 +04:00
2012-11-11 13:28:59 +04:00
2012-11-23 16:43:33 +04:00
2012-04-25 21:35:40 +04:00
2012-01-29 16:26:36 +04:00
2012-11-23 16:43:33 +04:00

crtools
=======

An utility to checkpoint/restore tasks.

Some code snippets are borrowed from

 - Linux kernel (http://kernel.org/)
 - git (http://git-scm.com/)
 - kvm-tools (https://github.com/penberg/linux-kvm)
 - ptrace-parasite (https://code.google.com/p/ptrace-parasite/)

Many thanks to these projects.

Licensed under GPLv2 (http://www.gnu.org/licenses/gpl-2.0.txt)
Description
No description provided
Readme 81 MiB
Languages
C 86%
Python 6.1%
Java 2.6%
Shell 2.6%
Makefile 2%
Other 0.7%