-
Notifications
You must be signed in to change notification settings - Fork 599
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[draft] support of bindmounted unix dgram sockets #1001
Draft
mihalicyn
wants to merge
277
commits into
checkpoint-restore:criu-dev
Choose a base branch
from
mihalicyn:criu-mult-unix-sk-bindmounts
base: criu-dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
277 commits
Select commit
Hold shift + click to select a range
36b628b
remote: Remove unused constants
rst0git 1a8c654
crtools: Fix typo
rst0git be22689
criu: fix leaks detected by coverity scan
Snorch 91babe7
test: make zdtm.py python2/python3 compatible
avagin 2df652d
crtools: image-{cache, proxy} requires address/port
rst0git 62c6539
criu: fix gcc-8 warnings
avagin f2054ba
remote: don't read from pointer after free
avagin d170cca
img-proxy: Remove duplicated include
rst0git 383da03
remote: Merge check_pending_{reads,forwards}
rst0git 69ed736
remote: Replace PATHLEN with PATH_MAX
rst0git 68d4924
remote: Refactor TCP server setup
rst0git a713c2c
remote: Refactor TCP client setup
rst0git b99a274
remote: pull_snapshot_ids: Simplify if condition
rst0git 3b9babc
remote: Use tmp file buffer when restore ip dump
rst0git ae5a850
python: Replace xrange with range
rst0git 2fffe9c
image: fix typo in debug message
Snorch 85f1a3e
py: Reformat everything into pep8 style
xemul 0dbf262
Fix typos
rst0git 88c337e
remote: Fix code indentation
rst0git 96a823e
img-cache: Drop unnecessary accept_proxy_to_cache
rst0git 66f2f31
img-cache/proxy: Close sockets on failure
rst0git d2c44c3
remote: Drop unused PB_LOCAL_IMAGE_SIZE
rst0git a539277
remote: Introduce strflags() macro
rst0git 7223ac7
remote: Fix stringop-truncation warning
rst0git 0a58954
remote: Fix 'flags' maybe uninitialized warning
rst0git 3058b3f
remote: Make private functions static
rst0git d2d254c
remote: Use xmalloc/xzalloc/xfree
rst0git 7f63b26
remote: Ignore interupt signals
rst0git f428d30
util: Don't pass address/port as arguments
rst0git a37a02d
remote: Rename 'proxy_to_cache_fd' to 'remote_sk'
rst0git c64f657
remote: Rename 'local_req_fd' to 'local_sk'
rst0git 75dead1
util: Fix addr casting for IPv4/IPv6 in autobind
rst0git 2f665d8
util: Introduce fd_set_nonblocking()
rst0git 047b127
remote: Use \0 as indicator for a "finish" msg
rst0git 861510f
Sort includes in criu/img-*.c
rst0git 48ff3f1
util: Remove deprecated print_data() routine
rst0git 83cb0c0
criu-ns: Convert to python3 style print() syntax
rst0git 3846d16
criu-ns: Print usage info when no args provided
rst0git 50b1a49
criu-ns: Convert c_char_p strings to bytes object
rst0git 38a9b23
Convert spaces to tabs
rst0git 13d2868
net: fix coverity RESOURCE_LEAK
adrianreber fe9ad62
py: Manual fixlets of code formatting
rst0git a981ddf
files-reg: Drop clear_ghost_files() prototype
rst0git cf7e7fc
cr-dump: Remove redundant if-statement
rst0git 024bb21
arch/x86: push correct eip on the stack before lretq
avagin 266db50
compel/x86: Don't use pushq for a label
0x7f454c46 bdee0a7
scripts: Drop Fedora 28/rawhide fix
rst0git f3caa7f
Add new command line option: --cgroup-yard
mclapinski 10fb1cf
test: implement test for new --cgroup-yard option
mclapinski cc1fcfa
travis: Install missing diffutils dependency
rst0git cf54e13
arch/x86: fpu_state->fpu_state_ia32.xsave hast to be 64-byte aligned
avagin 463227b
Introduce flush_early_log_to_stderr destructor
rst0git 8d2a56a
Convert pr_msg() error messages to pr_err()
rst0git 3e03d51
test/cgroup_yard: always clean up a test cgroup yard
avagin 78f70bd
zdtm/cgroup_yard: create a test cgroup yard from the post-start hook
avagin bd80be8
cgroup: fixup nits
Snorch 7df16f9
pipe: print pipe_id as unsigned to generate an external pipe name
avagin 1816886
unix: print inode numbers as unsigned int
avagin fdbaf4a
Cleanup do_full_int80()
nviennot 36e1da9
restorer/inotify: Don't overflow PIE stack
0x7f454c46 e515ef0
Adding --pre-dump-mode option
dubeyabhishek 1c673f3
Handling iov generation for non-PROT_READ regions
dubeyabhishek bb504a8
Skip adding PROT_READ to non-PROT_READ mappings
dubeyabhishek cce4019
Adding cnt_sub for stats manipulation
dubeyabhishek a39e7a9
read mode pre-dump implementation
dubeyabhishek 0b56cdc
Refactor time accounting macros
dubeyabhishek 55bcadb
zdtm: handle --pre-dump-mode in the rpc mode
avagin 4b9bcba
lib/c: fix a compile time error
avagin 31e47a5
criu: use atomic_add instead of atomic_sub
avagin 141e697
image: avoid name conflicts in image files
avagin 919f4e7
Guard against empty file lock status
nviennot 40b5731
page-pipe: Resize up to PIPE_MAX_SIZE
rst0git 48ae837
cgroup: fix cg_yard leak on error path in prepare_cgroup_sfd
Snorch 196551b
image-desc: Remove CR_FD_FILE_LOCKS_PID
rst0git 91a5cad
service: Use space on stack for msg buffer
rst0git ee96348
Couple of fixes to build and run libcriu tests
4c1350d
Enable libcriu testing in travis jobs
870eaa5
Add `criu` to PATH env variable in libcriu tests
99049e2
early-log: Print warnings only if the buffer is full
0x7f454c46 48c9672
Action scripts should be invoked with normal signal behavior
nviennot 0d6e92a
Fix broken web-links
ligurio c28e3b8
travis: start to use aarch64 hardware
adrianreber 2bb53e7
test/static:conntracks: Support nftables
a43ea01
test/java: Add FileRead Tests
nidhi1605 72d44f8
travis: Disallow failures on ia32
0x7f454c46 d125c2b
mount: remove useless check in populate_mnt_ns
Snorch 53b22e4
ns: make rst_new_ns_id static
Snorch 743cb26
ns/restore/image: do not read namespace images for non-namespaced case
Snorch 74faa96
mount: rework mount tree build step on restore
Snorch 8529a48
mount: make mnt_resort_siblings nonrecursive and reuse friendly
Snorch 7cc9a72
Run java functional tests on travis
nidhi1605 7cdca4c
travis: fix copy paste error from previous commit
adrianreber e98fe21
travis: Do not run privileged containers in LXD
adrianreber f7c5bc8
Makefile hack for travis aarch64/armv8l
adrianreber 6f1fb1b
travis: switch all arm related tests to real hardware
adrianreber 524263e
travis: switch pcp64le and s390x to real hardware
adrianreber 025f8d9
travis: remove group from .travis.yml
adrianreber 05b078f
lib/ptrace: Allow PTRACE_PEEKDATA with errno != 0
0x7f454c46 c19c153
lib/ptrace: Be more elaborate about failures
0x7f454c46 038f3eb
compel/infect: Warn if close() failed on memfd
0x7f454c46 eda9a11
compel: Mark compat argument of __NR() as used
0x7f454c46 0020f2a
lib/infect: Check if compel succeed in executing munmap
0x7f454c46 0998ac6
cr-dump: Try to cure remote on err-pathes
0x7f454c46 341d781
cr-dump: Warn if unmapping local memfd failed
0x7f454c46 0a4d747
cr-restore: Warn if restorer can't be unmapped
0x7f454c46 281c9f3
parasite-syscall: Log if can't cure on failed infection
0x7f454c46 9e998ad
compel/infect: Detach but fail compel_resume_task()
0x7f454c46 674bd13
criu: Kill tasks even when the network is unlocked
0x7f454c46 bcbe0af
compel/criu: Add __must_check
0x7f454c46 715a105
Checkpoint only specified controllers
mclapinski 078efae
travis: group lazy-pages options
rppt f5c8c9e
travis: exclude uns tests for lazy-pages on newer kernels
rppt 4c1ff11
mount: Add error messages
rst0git 1b31164
mount: Bind-mount root via userns_call
rst0git 91884a1
restore: Create temp proc in /tmp
rst0git 6f23010
man: Describe --root option requirements
rst0git 49a0fb0
zdtm: Replace if->continue with if->elif->else
rst0git 7b970be
zdtm: Set --root path to 0700 on restore
avagin e7baaf1
build: Remove SRCARCH
0x7f454c46 70a5b0c
build/nmk: Remove SRCARCH
0x7f454c46 da58a10
build/nmk: Provide proper SUBARCH
0x7f454c46 1f09aba
build: Use SUBARCH
0x7f454c46 37eb8bf
build/zdtm: Support cross-build
0x7f454c46 f577270
build/zdtm: Makefile hack for travis aarch64/armv8l
0x7f454c46 3e09b0b
build/zdtm: Use pkg-config to find includes/libs
0x7f454c46 c3e1157
travis: Add armv7-cross as cross-compile test
0x7f454c46 53018af
Documentation: Add a hint about docker build
0x7f454c46 455e8f4
zdtm/socket-tcp-fin-wait1: Use array index fro TEST_MSG
0x7f454c46 5d451ee
Add File-based Java Functional Tests
nidhi1605 4405944
travis: ignore fails of podman-test
avagin 41bcada
kerndat: check whether the new mount API is supported of not
avagin cb1f602
util: introduce the mount_detached_fs helper
avagin 08a86c7
mount: use new mount API to open the proc file system
avagin 2a4fffb
net: use new mount API to open the sysfs file system
avagin e209cd6
cgroup: use new mount API to open the cgroup file system
avagin fd4d0e6
readme: github pull-requests is the preferred way to contribute
avagin f728391
restorer/inotify: reorder inotify cleanup after waiting helpers and z…
Snorch a1533cd
mount: Order call_helper_process calls
cyrillos 5515496
unix: sysctl -- Preserve max_dgram_qlen value
cyrillos 1e39d9b
zdtm: sysctl net.unix.max_dgram_qlen value preservation test
mihalicyn 08766ef
x86/cpu: cleanup and improve xfeatures_mask check
Snorch 51c1445
crit: fix python3 encoding issues
nviennot 65cd7a6
scripts: alpine: Install py2 packages with pip
rst0git 210166b
sockets: Remove duplicate variable assignment
rst0git 5dc8827
socket: c/r support for SO_KEEPALIVE
rst0git c8e9637
zdtm: Add test for SO_KEEPALIVE
rst0git d5a1c54
Fix tests on Ubuntu
adrianreber ee96f50
style: Enforce kernel style -Wdeclaration-after-statement
nviennot 09c918c
style: Enforce kernel style -Wstrict-prototypes
nviennot faf310c
net: add nftables c/r
mihalicyn ec1690d
zdtm: nft tables preservation test
mihalicyn 6905c22
files: fix ghost file error path
nviennot e6946e2
python: Improve decoding of file flags
nviennot 4470237
files: Remove O_CLOEXEC from file flags
nviennot 74f8c75
files: Add FD_CLOEXEC test
nviennot de7690d
travis: switch alpine to python3
adrianreber 0d75cd9
Add Socket-based Java Functional Tests
nidhi1605 32f4f8b
Switch open-j9 alpine tests to python3
nidhi1605 72925cc
ppc64le: remove register '1' from clobber list
adrianreber 2121d21
image: core -- Reserve start_time field
valeriyvdovin 7e7b647
travis: reduce the number of podman tests
adrianreber bde7bea
kerndat: detect if system support clone3() with set_tid
adrianreber e97bc57
Add assembler wrapper for clone3()
adrianreber 2082c03
Use clone3() with set_tid to create processes
adrianreber c53ed92
s390x: remove stack pointer from clobber list
adrianreber 0f0564a
s390x: use clone3() if possible
adrianreber b2d9412
arm: remove stack pointer from clobber list
adrianreber 0d9209d
ppc64le: use clone3() if possible
adrianreber a369581
clone3: handle clone3() with CLONE_PARENT
adrianreber 784919b
aarch64: use clone3() if possible
adrianreber 8d108a9
arm: use clone3() if it exists
adrianreber f075c1d
travis: fix warning and errors from validation
adrianreber bdcf709
compel: add -ffreestanding to force gcc not to use builtin memcpy, me…
mihalicyn 049cd5b
doc/Makefile: don't hide xmlto stderr
kolyshkin 9d219e8
criu(8): some minor rewording
kolyshkin 0011cbb
criu(8): fix for asciidoctor
kolyshkin af9157f
criu: fix build failure against gcc-10
c172688
test/vdso: check the code path when here is no API to map vDSO
avagin f32a4e4
vdso: use correct offsets to remap vdso and vvar mappings
avagin 83e0882
typo: fix missing space in error message
nviennot c365f70
memfd: add file support
nviennot 1386dbb
files: increase path buffer size in inherited_fd()
nviennot 883d3e4
memfd: add --inherit-fd support
nviennot 8c006c2
memfd: add memory mapping support
nviennot 3eb95b5
memfd: add seals support
nviennot 557b191
inhfd_test: add support for non-pair files
nviennot 6cf5182
memfd: add tests
nviennot 9049d7b
criu: Use strlcpy() instead of strncpy()
0x7f454c46 6875c9a
criu: Make use strlcpy() to copy into allocated strings
0x7f454c46 7491326
zdtm: Make test_{doc,author} weak variables
0x7f454c46 a3501c0
vdso: Add vdso_is_present() helper
0x7f454c46 fa292e4
vdso: Repair !CONFIG_VDSO
0x7f454c46 540ab31
vdso: Don't page-align vvar
0x7f454c46 7150497
zdtm: mntns_rw_ro_rw update error msg
rst0git 43a7b34
Travis: fix podman test case
adrianreber b5e857b
test/zdtm/inhfd: update dump options one each iteration
avagin a6083ea
python: sort imports
avagin 285e689
test/jenkins: remove empty line at the end of file
Snorch a5f6158
uffd: use userns_call() to execute ioctl(UFFDIO_API)
rppt 832ab07
criu(8): Add documentation for --enable-fs
rst0git 30b07fc
criu(8): Convert tabs to spaces
rst0git 4c27b3d
seize: prepare for cgroupv2 freezer
adrianreber aac4116
seize: factor out opening and writing the freezer state
adrianreber 6f19249
seize: support cgroup v2 freezer
adrianreber 378337a
cgroup2: add minimal cgroup2 support
adrianreber 0c4b856
fs: use __open_proc instead of open("/proc/...", ... )
avagin 9be35de
memfd: don't corrupt a state of the dumped fd
avagin e333749
zdtm/inhfd: force python to read new data from a file
avagin 52c5dd5
fown: Don't fail on dumping files opened with O_PATH
cyrillos a90e88d
zdtm: add a test for files opened with O_PATH
Snorch 657268d
files: allow dumping opened symlinks
mihalicyn 27807fb
zdtm: add a test on open symlink migration
Snorch 84ad718
zdtm/fifo_loop: don't try to write more than pipe size
avagin 8ca165e
criu: Remove compel.h includes
0x7f454c46 fb386c2
compel: Remove compel.h
0x7f454c46 e419f2e
travis: Add aarch64-cross test on amd64
0x7f454c46 037aaf9
travis: Use debian/buster as base for cross build tests
0x7f454c46 717de3e
crit-recode: skip (not try to parse) nftables raw image
mihalicyn e7c8ac1
travis: add ppc64-cross test on amd64
rppt e0fca8b
mailmap: update my email
avagin 9433b7b
make: use cflags/ldflags for config.h detection mechanism
nviennot 2334261
mem: dump shared memory file descriptors
avagin 27c6039
mem/vma: set VMA_FILE_{PRIVATE,SHARED} if a vma file is borrowed
avagin 941d31b
test/zdtmp: add a test to C/R shared memory file descriptors
avagin 419ccc9
zdtm: Implemented get_current_dir_name wrapper that checks for 'x' pe…
valeriyvdovin f883e92
zdtm: Use safe helper function to initialize unix socket sockaddr str…
valeriyvdovin 49cc6ce
pipe: restore pipe size even if a pipe is empty
avagin b00267e
test/pipe03: check that pipe size is restored
avagin d2b99a2
test/fifo_loop: change sizes of all fifo-s to fit a test buffer
avagin ff6c7d9
vz7: sockets: Separate socket buffer size setting into a helper
f42491e
sk-unix -- Restore qlen before pushing queued data back
c6d3f25
unix: image -- Move uflags into enum
1b85265
unix: Collect bindmounted unix sockets
cyrillos 9d83f94
unix: Collect images before opening mountpoints
cyrillos b2b2bfb
unix: Collect bindmounted unix sockets into own list
cyrillos 5dda301
unix: Move shared data init into early stage
cyrillos b2ee9fa
unix: Add support for bindmounted sockets
3ec1c5a
unix: test -- Add bind-mount-unix test case
6c9ee70
unix: bindmount -- Move mounting code to be called before first mount
271a6cb
zdtm: Add sstrncpy helper
cyrillos 803ffb0
unix: bindmount -- Show details about queuer
6ee1ad6
unix: break_connected -- Add a log recod
32e74c2
unix: make_socket -- Add more detailed logs
7f93219
unix: make_socket -- Break connected pair if requested
2f9a89f
unix: bind_unix_sk -- Add ability to skip waiters notification
9581911
unix: unlink_sk -- Don't unlink bindmounted sockets
726f6b0
unix: unix_prepare_bindmount -- Allow to connect via relative name
95c2c84
test: bind-mount-unix -- Implement real connect
2aa32b3
unix: Don't forget to close ns descriptor on error path
bdc533e
unix: Disable switching mount namespace
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This hunk is supper strange, please fix it =) You better merge "unix: bindmount -- Move mounting code to be called before first mount" to this commit.