- 04 Dec, 2015 5 commits
-
-
Andrew Vagin authored
Currently we see that a cgroup yard are not umounted with the ENOENT error, because cwd was changed. v2: construct a path to remove a roots yard Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
This conflicts with predefined constants in our own syscalls lib. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Cyrill Gorcunov authored
We will need it for cr-check. Signed-off-by:
Cyrill Gorcunov <gorcunov@openvz.org> iAcked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 03 Dec, 2015 12 commits
-
-
Pavel Emelyanov authored
When using non-run command the 'sat' option is not in opts dict, so it should be checked with softer method. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
This test does nasty things with the root it runs in, in particular is kills and creates /dev/null which may result in /dev/null become 'deleted' for the tests running in paralles with this. The lattest is critical for uns flavor as ghost /dev/null will not be re-created (mknod fails). Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Also remove now unused skip_pid label. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
The ns and uns flavors are MUCH better ways of launching tests in namespaces. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Instead of doing some dirs/files/links in launcher and some in libzdtm, make everything in the launcher. The library is then just to set up the namespaces. Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tycho Andersen authored
If we get EBUSY here, it means that we didn't umount in the test (i.e. we didn't call fini() on some path). We should just do that instead. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tycho Andersen authored
The kernel only requires that we supply a scope id to bind() when the source address is of certain types, so lets only save/supply the scope id in these cases. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 02 Dec, 2015 1 commit
-
-
Tycho Andersen authored
This change does two things to be more defensive: 1. add a checkskip script which fails if __NR_seccomp isn't defined, and 2. allows seccomp_filter_tsync to compile even if it isn't defined (and then fails "gracefully" with a skip message if it does). The checkskip bits are necessary because zdtm.sh gets confused if the test exits 0 without actually invoking criu. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 30 Nov, 2015 8 commits
-
-
Andrew Vagin authored
It's possiable, if a parent task lives in a sub-mntns and its child lives in the root mntns. A mount namespace is restored before forking children, so all children are created in parent's mount namespace. If a child lives in another mount namespace, we need to move it into the required mntns. Reported-by: Mr Jenkins Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tycho Andersen authored
This tests c/r of the link-local scope-id argument to bind(). v2: sort the interfaces so diff works Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Tycho Andersen authored
For some ipv6 scope types (link local, amongo others), we need to tell the kernel the ifindex of the interface whose address we want to bind to as well as the address itself. v2: use SO_BINDTODEVICE to get the ifname, and pass that through instead of using netlink to grab all the ipv6 sockets via rtnetlink. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
CID 154853 (#1 of 1): Uninitialized scalar variable (UNINIT) 7. uninit_use_in_call: Using uninitialized value c when calling write. Reported-by: coverity Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
CID 154850 (#1 of 1): Resource leak (RESOURCE_LEAK) 9. leaked_handle: Handle variable cwd_fd going out of scope leaks the handle. Reported-by: coverity Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
CID 154852 (#1 of 3): Resource leak (RESOURCE_LEAK) 32. leaked_storage: Variable info going out of scope leaks the storage it points to. Reported-by: coverity Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 27 Nov, 2015 3 commits
-
-
Tycho Andersen authored
This header is unused, and not present on kernels w/o CONFIG_BPF_SYSCALL, so let's not require it. Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
nsid->mnt.ns_fd is initialized into 0, so currently fini_restore_mntns() closes the 0 descriptor if processes lives in a current mount namespace (NS_CRIU). Without this patch I get the following error: (00.166444) 4109: Inherit fd tty:[8800:d] -> 0 has been closed v2: typo fix v3: do nothing when processes are restored in the local mntns Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
stopped03 is an old name of stopped12 Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 26 Nov, 2015 10 commits
-
-
Tycho Andersen authored
Signed-off-by:
Tycho Andersen <tycho.andersen@canonical.com> Acked-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
If a task is stopped, waitpid() will return its status, but wait4() in seize_wait_task will hang forever, because a stopped state is reported only once. v2: don't like a file object Reported-by:
Andrey Ryabinin <aryabinin@virtuozzo.com> Cc: Andrey Ryabinin <aryabinin@virtuozzo.com> Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
The timeout between iterations should be the save oder with scheduler timeslice, which is about 100 msec. Currently we wait for inly 10 msec, which is obviously not enough. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Emelyanov authored
Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
We need to call close_image() for "empty" images. v2: don't touch generic functiuons Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Pavel Ganyushin authored
This is old missed test. Fail expected. Signed-off-by:
Pavel Ganyushin <pganyushin@odin.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
A task can be stopped and has a queued SIGSTOP, in this case we need to resume the task twice to skip "both" signals. v2: detect SIGSTOP in shared and per-process queues Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
Andrew Vagin authored
We found that we want to know whether SIGSTOP is queue in both or is in one of this queues. Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-
- 25 Nov, 2015 1 commit
-
-
Andrew Vagin authored
We get the stack trace if a test failed: Test output: ================================ 09:11:34.584: 4: PASS <<< ================================ Traceback (most recent call last): File "zdtm.py", line 922, in <module> do_run_test(tinfo[0], tinfo[1], tinfo[2], tinfo[3]) File "zdtm.py", line 696, in do_run_test t.kill() File "zdtm.py", line 302, in kill self.__flavor.fini() File "zdtm.py", line 168, in fini subprocess.check_call(["mount", "--make-private", self.root]) File "/usr/lib64/python2.7/subprocess.py", line 540, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['mount', '--make-private', '/tmp/criu-root-YN1t3X']' returned non-zero exit status 32 umount: /tmp/criu-root-YN1t3X: not mounted Cc: Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Andrew Vagin <avagin@virtuozzo.com> Acked-by:
Tycho Andersen <tycho.andersen@canonical.com> Signed-off-by:
Pavel Emelyanov <xemul@parallels.com>
-