[CRIU] [PATCH v4 00/19] Introduce custom per-task service fds placement
Kirill Tkhai
ktkhai at virtuozzo.com
Wed Jan 17 11:39:31 MSK 2018
Several words about new placement are in https://criu.org/Service_descriptors
On 16.01.2018 20:44, Andrei Vagin wrote:
> Applied, thanks
>
> On Wed, Jan 10, 2018 at 05:00:22PM +0300, Kirill Tkhai wrote:
>> Hi,
>>
>> this is the v4 of the patch set. In comparation to v3
>> there is added a functionality for preventing service
>> fds reuse. See patches [1-10/19] for the details. These
>> patches all are new, and there are no other thanges.
>>
>> https://travis-ci.org/tkhai/criu/builds/327226233
>>
>> ---
>>
>> Kirill Tkhai (19):
>> core: Init fdstore even earlier
>> sfds: Kill SELF_STDIN_OFF via fdstore
>> files: Do not close PROC_PID_FD_OFF sfd in prepare_fds()
>> mnt: Remove useless closes in __mntns_get_root_fd()
>> socket: Remove useless close_pid_proc() from set_netns()
>> utils: Add print_stack_trace()
>> sfds: Protect service fds reuse
>> mnt: Populate ROOT_FD_OFF
>> sfds: Populate pid proc
>> sfds: Protect service fds
>> files: Rename service_fd_rlim_cur to service_fd_base_cur
>> files: Count inh_fd_max
>> files: Pass pstree_item argument to clone_service_fd()
>> files: Close old service fd in clone_service_fd()
>> files: Do setup_newborn_fds() later
>> files: Refactor clone_service_fd()
>> files: Prepare clone_service_fd() for overlaping ranges.
>> files: Make tasks set their own service_fd_base
>> zdtm: Add fd01 test
>>
>>
>> criu/cr-restore.c | 56 +++++++++++++++---
>> criu/files.c | 10 +++
>> criu/include/files.h | 2 +
>> criu/include/servicefd.h | 5 +-
>> criu/include/tty.h | 1
>> criu/include/util.h | 7 ++
>> criu/mount.c | 3 -
>> criu/sockets.c | 2 -
>> criu/tty.c | 15 ++---
>> criu/util.c | 134 ++++++++++++++++++++++++++++++++++++++------
>> test/zdtm/static/Makefile | 1
>> test/zdtm/static/fd01.c | 106 +++++++++++++++++++++++++++++++++++
>> test/zdtm/static/fd01.desc | 1
>> 13 files changed, 296 insertions(+), 47 deletions(-)
>> create mode 100644 test/zdtm/static/fd01.c
>> create mode 100644 test/zdtm/static/fd01.desc
>>
>> --
>> Signed-off-by: Kirill Tkhai <ktkhai at virtuozzo.com>
More information about the CRIU
mailing list