mem: Lower messages severity for inability to reset dirty tracker

The _actual_ need for this is checked in other place.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
posix-timer: make parser a bit more readable

Cc: Pavel Tikhomirov <snorcht@gmail.com>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
mem: Remove pagemap2 mentions

This file was created for backward compatibility with
not-yet-patched kernel. Now we can remove it.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
kerndat: Sanitize pagemap entry read err check

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
util: print error message if a script is failed
debuginfo
test: check, that parasite can rollback itself (v2)

This test uses systemtap to replace random parasite command on
invalide command. The parasite code received this command and should
rollback itself. CRIU didn't recived ack, should understand that
something wrong and exits. The systemtap inverts exit code of criu.

"zdtm.sh -d" is used for executing tests and testing that the state of
processes don't corrupted.

v2: randomize a command, which will be replaced
check: check PTRACE_{GET,SET}SIGMASK
dump: move code for dumping threads in a separate function

The next patch will add another version of this function,
which will use PTRACE_SETSIGMASK.
ptrace: try to get signal blocking mask via ptrace (v2)

Two new commands SETSIGMASK and GETSIGMASK were added to ptrace.

It allows to execute only one parasite command for dumping threads,
so unrecoverable window become smaller and performance is improved.

v2: splite the patch in two parts
parasite: move code about creating control sockets in a separate func

It will be used in a few places
parasite: move code about parasite initialization in a separate function

The current scheme is used two commands to daemonize parasite.
The first command blocks signals, then a sigframe generated and the
second command daemonizes parasite. If CRIU crashes between this
commands, signals will not be unlocked.

PTRACE_GETSIGMASK allows to do the same with one command and a window,
when a process state can't be restored, is smaller.
parasite: block signals for each parasite command

Pending signals should be saved, so signals should be blocked.
Signals are blocked for EACH command, because a chance to corrupt a
process state should be so small as possible.
parasite: use only one command for executing parasite in a daemon mode

If a kernel supports PTRACE_SETSIGMASK, criu don't need to execute
PARASITE_CMD_INIT and PARASITE_CMD_DAEMONIZE, because the frist command
is used only for blocking signals. If criu crashes between these
commands, a process state will be corrupted, because all signals remain
blocked.
parasite: restore registers after each parasite command

Currenly we can restore blocking signals with help ptrace,
so if registers are restored after command, a process state
will not be corrupted if criu crashes.
posix-times: don't fail if /proc/PID/times is absent

/proc/PID/times was added in 3.10, but FC19 relesead with 3.9.

Usually we support only last version of kernel in the project git, so
we can commit it as an additional patch for the fedora package.

Cc: Adrian Reber <adrian@lisas.de>
Signed-off-by: Andrey Vagin <avagin@openvz.org>
link dependent mounts
save group amdn master in image
amend
collect