- 27 Jan, 2016 13 commits
-
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
Although we don't want to restore the values on these files, we definitely do want to restore the permissions, as certain container engines (lxc) make use of this. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
These are present in every cgroup, so let's dump them. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
The root mount is always external and master_id is external too. It's required to validate mounts. We already do this on restore, but we need to do this on dump too. Otherwise we will get the error: Mount %d %s (master_id: %d shared_id: %d) has unreachable sharing. Try --enable-external-masters. https://jira.sw.ru/browse/PSBM-43260Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Cyrill Gorcunov authored
If for some reason ptrace_poke_area return error we might left dumpee with memfd descriptor opened. Later in code we remove out injected blob making dumpee to look untouched but descriptor will hang there. lsof from container output: | systemd-u 48 root 6u REG 0,4 0 53855 /memfd:CRIUMFD (deleted) Thus lets close it immediately. https://jira.sw.ru/browse/PSBM-43199Signed-off-by:
Cyrill Gorcunov <gorcunov@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
* Split into two -- full/sb comparisons * Code formatting (spaces) * Arg names Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
- 21 Jan, 2016 4 commits
-
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
criu detaches from tasks in freezer_detach() in this case Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
We need to detach from all processes before waiting the root task, because one of these processes may collect processes from a target pid namespace. The pid namespace is destroyed only when all processes have been killed and collected. https://jira.sw.ru/browse/PSBM-43089Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Acked-by:
Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
- 20 Jan, 2016 9 commits
-
-
Kirill Tkhai authored
This fixes the following test error: FAIL: binfmt_misc.c:111: mount failed (errno = 1 (Operation not permitted)) CRIU tests (./test/zdtm.py run -a) passed. Signed-off-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
There's only one user of it, so better to reshuffle the arg set. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
If we happen to get 0 as the fd for the mountpoint, there is an error: (00.280617) Dumping task cwd id 0x2b root id 0x2b (00.280697) mnt: Dumping mountpoints (00.280702) mnt: 132: 34:/ @ ./run/lock (00.280714) mnt: Path `/run/lock' resolved to `./run/lock' mountpoint tar: /proc/self/fd/0: Cannot open: Not a directory tar: Error is not recoverable: exiting now (00.283581) Error (util.c:666): exited, status=2 (00.283598) Error (mount.c:1220): mnt: Can't dump tmpfs content Instead, let's not ever use 0 as the mountpoint fd. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Igor Sukhih authored
Introduce post-setup-namespaces action script It needed to have possibility to run cutom script after mount namespace is configured Signed-off-by:
Igor Sukhih <igor@parallels.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Kirill Tkhai authored
It's a debug message, and it shouldn't be printed with pr_perror(). Also, we interested in debug in the both cases: magic and extensions. Signed-off-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Kirill Tkhai authored
Generate random binfmt_misc entries of different types and check that they remain registered after the signal. v2: pr_perror() in cleanup, .desc file and TST_DIR in Makefile Signed-off-by:
Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
- 18 Jan, 2016 7 commits
-
-
Laurent Dufour authored
This patch introduces basic CPU feature checking for PowerPC. Signed-off-by:
Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Laurent Dufour authored
This test calls iptables to set a new packet filter using a shared library libxt_standard.so. Unfortunately, depending on the distribution we are running on, this shared library may be stored on a different place. This patch allows this test to be run on Debian like systems. Signed-off-by:
Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Laurent Dufour authored
Depending on the distribution, binaries or shared libraries a test is dependent of may not be stored at the same place. This patch introduces the ability to define option in the dependency list, by separating the optional target names by a '|' character. For instance the dependency of test may be described this way: {'flavor': 'ns', 'deps': [ '/bin/foo|/usr/bin/foo' ], 'flags': 'suid'} Note, there shouldn't be any spaces around the '|'. If none of the optional dependency is satisfied, an error is raised. Signed-off-by:
Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com> Tested-by:
Adrian Reber <adrian@lisas.de>
-
Pavel Emelyanov authored
Recent kernels allow for user to read proc pagemap file, but zero pfns in it. Support this mode for user dumps. https://github.com/xemul/criu/issues/101Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Laurent Dufour authored
The descriptor for test netns-nf and netns are referencing /bin/diff. On Fedora this is a hard link to /usr/bin/diff created during the install of the package diffutils. However this hard link doesn't exist on Debian like systems. Referencing /usr/bin/diff works in both cases. Signed-off-by:
Laurent Dufour <ldufour@linux.vnet.ibm.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Tycho Andersen authored
It turns out we can't just test for /proc/<pid>, because the kernel appends (deleted), since the directory is actually deleted (vs. something like /proc/1/mountinfo, where the file still exists in the unlinked directory, so there is no (deleted)). See comment for details. v2: s/ret/is_dead in /proc/<pid>/xxx test, split tests to correctly test both cases Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
- 13 Jan, 2016 7 commits
-
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
A static test should not change its state during C/R. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Sergey Bronnikov authored
This patch updates Makefile for measuring code coverage in CRIU. criu binary should be compiled with option --coverage and linked with -lgcov option. lcov utility creates HTML pages containing the source code annotated with coverage information. make GCOV=1 make test make gcov Look at gcov/html/index.html Changes: - disable optimization on compilation for gathering coverage data - mention an option for coverage in help - cleanup the files produced for code coverage - make path to coverage files produced by tests in ns independent on environment - add an option lcov_branch_coverage as branch coverage disabled by default Signed-off-by:
Sergey Bronnikov <sergeyb@openvz.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Andrew Vagin authored
A static test should not change its state during C/R ===================== Run zdtm/live/static/session00 in ns ===================== Start test ./session00 --pidfile=session00.pid --outfile=session00.out Run criu dump Run criu restore 7: Old files lost: set(['4']) 7: New files appeared: set([]) ############# Test zdtm/live/static/session00 FAIL at fds compare ############## Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-
Vijaya Kumar K authored
Define correct syscall numbers for fanotify_init and fanotify_mark for arm64. Signed-off-by:
Vijaya Kumar K <vijayak@caviumnetworks.com> Reviewed-by:
Christopher Covington <cov@codeaurora.org> Signed-off-by:
Pavel Emelyanov <xemul@virtuozzo.com>
-