-
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
dump: Don't unfreeze tasks on dump failure with --no-resume-on-error. #2215
Draft
osctobe
wants to merge
193
commits into
checkpoint-restore:criu-dev
Choose a base branch
from
osctobe:leave-stopped
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 all commits
Commits
Show all changes
193 commits
Select commit
Hold shift + click to select a range
823db1b
Add flog to CRIU
prakritigoyal19 1444b72
flog: Missing varargs init or cleanup (VARARGS)
adrianreber cc193dc
Run 'make indent' on 'flog/'
adrianreber 1fa21a0
flog: typo: mmaped -> mmapped
kolyshkin 7eaf7a3
flog: fix some codespell warnings
kolyshkin aed3f34
limit the field width of 'scanf'
Daz-3ux d6860d0
sk-inet: Add IP TOS socket option
h0lyalg0rithm 0dd4668
zdtm: Add tests for ip tos restore
h0lyalg0rithm 13eb876
dump: increase fcntl call failure judgment
hdzhoujie 970c4ab
compel: support XSAVE on newer Intel CPUs
adrianreber 1d4c5ed
ci: fix new codespell errors
adrianreber d98c533
scripts: make newer versions of shellcheck happy
adrianreber 8e0697d
criu-ns: make --pidfile option show pid in caller pidns
Snorch 806ee35
docs: rename amdgpu_plugin.txt to criu-amdgpu-plugin.txt
rst0git f57bda4
lib/c: add empty_ns interfaces to libcriu
adrianreber f308272
criu-ns: Add --criu-binary argument to run_criu()
warusadura 38db5e1
criu-ns: Add support for older Python version in CI
warusadura 8094df8
criu-ns: Add tests for criu-ns script
warusadura f0e9358
criu-ns: Install Python pathlib module in CentOS 7
warusadura 9130fef
criu-ns: Update shebang line to python
warusadura 358f09c
timers: improve and fix posix timer id sequence checks
KAGA-KOKO 104a828
action-scripts: Add pre-stream hook
rst0git 4d137b8
cgroup/restore: split prepare_task_cgroup code into two separate func…
valeriyvdovin af0e413
Fix dumping hugetlb-based memfd on kernels < 4.16.
osctobe 11288c9
Fix mount(cgroup2) for older kernels.
osctobe 9e6454f
Restore THP_DISABLE prctl.
osctobe 7ca6856
Log if prctl(SET_THP_DISABLE) doesn't work as expected.
osctobe d3a33ca
zdtm: thp_disable: Output a single failure message
osctobe 6006cb6
zdtm: thp_disable: Verify prctl(THP_DISABLE) migration
osctobe c75c017
zdtm: thp_disable: Verify MADV_NOHUGEPAGE before migration
osctobe c6ee1ba
Fill FPU init state if it's not provided by kernel.
osctobe 9e2e560
compel/test: Return 0 in case of error in fdspy
ancientmodern 3d4d943
Allow passing --leave_stopped by RPC.
osctobe 161a5ff
Allow passing --display_stats via RPC.
mclapinski 7f7b553
Allow passing --log_to_stderr via RPC.
mclapinski e55e168
zdtm: Allow overriding /tmp.
osctobe 0bd5abe
zdtm: Add timeouts for test commands.
osctobe 05f2319
zdtm: Allow --keep-going for single test.
osctobe e595787
zdtm: Implement test sharding.
osctobe 9301aba
zdtm: sock_opts00: Improve error messages.
osctobe a2c4dd2
Allow skipping iptables/nftables invocation.
osctobe f018893
test/thp_disable: fix lint
rst0git e6427c5
sockets: Increase the size of sockets hashmap to 16K.
osctobe 12290f4
pipes: Plug pipe fd leak in "Unable to set a pipe size" error case.
osctobe f5cd44f
kerndat: Make socket feature probing work on IPv6-only host.
osctobe 1e90fc8
restore: remove unused `secbits` field.
osctobe aa6b633
build: Remove HAS_MEMFD test
osctobe 2d76e4b
build: Debug system feature tests.
osctobe 722a90c
build: Fix LIBS vs LDFLAGS order.
osctobe 85f53bd
build: Use make-provided AR for building libzdtmtst.
osctobe eece28d
build: Guard against libbsd's version of `__aligned`.
osctobe 0588c3b
build: libnfnetlink: Remove nla_get_s32().
osctobe b02d53a
action-scripts: allow shell scripts in rpc mode
rst0git cde9bcf
docker/podman: test c/r with action-script
rst0git 8ba6efb
rpc: Support gathering external file list after freezing process tree.
osctobe 6cfe7aa
rpc: Support setting images_dir by path.
osctobe fb8ca64
util: Downgrade ignored errors to warnings.
osctobe f0d1b89
kerndat: unexport kerndat_nsid()
osctobe a5939b0
kerndat: Don't fail on NETLINK/nsid support missing.
osctobe ba11426
util: Make CRIU run_id machine-level unique.
osctobe 4c2b71c
zdtm: Update netns purpose comment in zdtm_ct.
osctobe 3a932e9
readme: refactor asciinema link for video playback
Guleri24 42a5b64
ci: disable CentOS 7 test in Cirrus CI
rst0git f8466ca
ci: clean up CentOS 7 related tweaks
rst0git e9901cd
coredump: drop python 2 support
rst0git 91edb5f
crit: drop python 2 support
rst0git 02bd1bc
crit: add requirements.txt for pip>=20.1
rst0git c794f39
remove python-future dependency
rst0git 5f4d92f
make: remove checks for python 2 binary
rst0git cc5742d
test/criu-ns: drop python 2 compatibility
rst0git a8cfec9
test/others: drop setup_swrk() py2 compatibility
rst0git 460c4d2
lib/py: drop python 2 compatibility
rst0git 75d9d68
zdtm: drop python 2 compatibility
rst0git b759678
cgroup: Propagate error on cgroup mount failure.
osctobe ce33c49
files-reg: Debug "open file on overmounted mount" error.
osctobe b42e7af
compel: Log the status word with "Task is still running" errors.
osctobe cf01c32
sk-unix: Log both peer names when failing on an external stream unix …
osctobe 13c08b8
soccr: Log offset when failed to restore socket's queued data.
osctobe dc3f4b5
soccr: Log name of socket queue that failed to restore.
osctobe 4d67f67
log: Remove error logs for ignored or otherwise logged subprocess exits.
osctobe fb149f7
mount: Demote fsnotify logs for ignored failures.
osctobe cf4b225
irmap: Reduce error log severity to warning.
osctobe a4bb3f9
kerndat: bind ipv6-socket only if ipv6 is enabled
yevzman a96aa58
zdtm: replace NR_fstat with NR_statx
znley 935e60d
kerndat: don't leak a socket file descriptor
avagin 2d6f04c
ci: add workflow to ensure self-contained commits
snprajwal f684719
include: add common header files for loongarch64
znley 52630db
compel: add loongarch64 support
znley 521383d
images: add loongarch64 core image
znley 95fbd7e
criu: add loongarch64 support to parasite and restorer
znley c941282
zdtm: add loongarch64 support
znley f70c782
ci: add workflow for loongarch64
znley 9f69484
util: Implement fchown() and fchmod() wrappers.
osctobe 923e66b
sk-unix: Avoid restore_file_perms() EPERM error for no-op changes.
osctobe 5f214bc
files-reg: Avoid EPERM in ghost_apply_metadata() for no-op changes.
osctobe 6e23125
cgroup: Replace restore_perms() with cr_fchperm().
osctobe 00d061b
memfd: Avoid EPERM for no-op chown().
osctobe e90fbd7
tty: Avoid EPERM for no-op chown().
osctobe b9f360b
restore: Avoid need for CAP_SETPCAP if not changing uids.
osctobe 53dd6ba
restore: Skip setgroups() when already correct.
osctobe ff67ad8
restore: Fix capability migration requirements between different kern…
osctobe 6bad5d2
prctl: Migrate prctl(NO_NEW_PRIVS) setting.
osctobe d490218
prctl: test prctl(NO_NEW_PRIVS) setting
osctobe 988a5f4
restore: Skip dropping BSET capability if irrelevant.
osctobe cc500d9
sk-inet: Extend 'TCP repair off' failure log.
osctobe f2d9672
memfd: dump and restore permissions.
osctobe 88249fe
zdtm/memfd00: test memfd file mode
osctobe 9118601
apparmor: fix incorrect usage of sizeof on char ptr
ancientmodern 1db922f
page-xfer: Pull tcp_cork,nodelay().
osctobe 72494ed
irmap: scan user-provided paths in order
osctobe 242de4e
amdgpu_plugin: remove duplicated log prefix
rst0git 6fc5bc6
scripts/apt: don't hide apt output
avagin 2199220
ci/docker: install all required packages
avagin e1cda9f
lib/py: add VMA_AREA_MEMFD constant
rst0git 288d6a6
loongarch64: reformat syscall_64.tbl for 8-wide tabs
avagin 2f50da4
dump+restore: Implement membarrier() registration c/r.
osctobe b5c3ccc
zdtm: membarrier: test migration of membarrier() registration
osctobe 5fedcaa
Put a cap on the size of single preadv in restore operation.
osctobe 649292c
github: auto-remove `changes requested` and `awaiting reply` labels
avagin 942b5fd
loongarch64: fix syscall_64.tbl
avagin 359b257
memfd: don't set fd attributes not needed for vma mapping
osctobe 675c5e4
ci/loongarch64: compile tests before running zdtm.py
avagin af31e8e
kerndat: Make pagemap check more robust against swapped out pages.
osctobe 38baf73
compel/infect: include the relevant pid in "no-breakpoints restore" d…
osctobe ba27d27
proc_parse: remove trivial goto from vma_get_mapfile_user()
osctobe 2df6ec5
test/other: add test for action-script
rst0git 92b96a5
proc_parse: Log smaps entry while dumping VMA.
osctobe a04fac5
kerndat: Make errors from clone3() check more precise.
osctobe d0f88ff
kerndat: check_pagemap: close(fd) on error path
osctobe 6d0e785
kerndat: check_pagemap: reword retried case explanation
osctobe e0d13ef
memfd: return original memfd fd for execveat()
osctobe a652c68
zdtm: test execveat(memfd)
osctobe 959a32d
CONTRIBUTING.md: don't mention ctags
Snorch 75146b0
CONTRIBUTING.md: improve coding-style related sections
Snorch 03541c0
lint: don't fail workflow on indent fail
Snorch 1df618a
vagrant: update to version 2.3.7
rst0git 82bfb67
vagrant: run tests with fedora 38
rst0git 4b7287b
dump: use MEMBARRIER_CMD_GET_REGISTRATIONS when available
mclapinski d752479
zdtm: test MEMBARRIER_CMD_GLOBAL_EXPEDITED migration
mclapinski f043f53
criu/plugin: Add environment variable to cap size of buffers.
fdavid-amd 4766ffa
compel: Add support for ppc64le scv syscalls
ymanton 4ae1518
lib/pycriu: generate version.py
rst0git b8b2fe6
crit/setup.py: use __version__ from pycriu
rst0git 150eecc
py/cli: add --version option
rst0git 5e37ccf
ci: stop testing ubuntu overlayfs
avagin 1a6c015
zdtm: If ignoring kernel taint, also ignore taint changes.
osctobe f74140c
zdtm: cgroup04: Improve error messages.
osctobe 66369f9
zdtm: cgroup04: Improve skip check's robustness.
osctobe 87c42d5
zdtm: Treat ESRCH from kill() as success.
osctobe a056519
zdtm: socket_udp_shutdown: Make the test fail instead of timing out.
osctobe 8b5f3af
zdtm: check userns once
avagin 1e4f5fb
Return page size as unsigned long
yota9 4f0c07f
vma: Add !VVAR condition to vma_entry_can_be_lazy
yota9 5de9040
criu: change the comment about magic numbers
mclapinski f832d87
plugins: the UPDATE_VMA_MAP callback returns fd with the full control
avagin 25f685e
amdgpu: don't leak fd on an error path in open_img_file
avagin 01d559d
amdgpu: print an error if the dup syscall fails
avagin f593257
ci: enable build with amdgpu plugin
rst0git 2ff90f0
amdgpu: fix clang warnings
rst0git f54cf19
memfd: don't reopen file descriptors for memory mappings
avagin c20fb83
zdtm/memfd04: check execveat on memfd that has memory mappings
avagin 5bf7652
clang-format: disable column limit constraint
Snorch e3391ed
pie: Mark __export_*() functions as externally_visible
0x7f454c46 24e2492
util: allow to run criu under strace
avagin 4e5247a
tun: don't parse buffers that have not been filled with data
avagin 3015aad
apparmor: remove the redundant check
9e05b65
arch/x86: remove the redundant check
06a3f13
zdtm/cow00: fix typo
c03c737
zdtm/thread_different_uid_gid: remove the redundant check
ab73a84
criu/proc_parse: refactor the eventpoll parser
811a380
files-reg: don't change the file pos in get_build_id
mclapinski d9ca0c7
zdtm/lib: add missing signal.h header
mclapinski 42c1c84
zdtm/static: test the offset migration of ELF files
mclapinski 711775f
zdtm: cgroup_ifpriomap: Improve skip check's robustness.
osctobe df24fe8
lib: use separate packages for pycriu and crit
rst0git c474816
Makefile: introduce ARCHCFLAGS for arch specific cflags
marcusfolkesson d88dcef
comple: correct the syscall number of bind on ARM64
SallyKAN 5e56756
ci: fix rawhide netlink error
adrianreber 4213f16
test: check for btrfs in the current directory
adrianreber 9d3e71a
ci: switch to permissive selinux mode during test
adrianreber b17a73b
ci: fix codespell errors
avagin 95975e0
docker-test: fix condition for max tries
rst0git 0da1ab2
docker-test: downgrade docker to v24.0.7
rst0git 378da3b
Makefile: Use common warnings settings for loongarch64
iv-m dc49eb4
tty: skip ioctl(TIOCSLCKTRMIOS) if possible
mihalicyn 1573064
ci: do not use 'tail' for skip-file-rwx-check test
adrianreber 561f845
ci: fix centos-stream 9 ci errors
adrianreber e7aca13
ci: disable non-root in user namespace test in container
adrianreber 61224f2
gitignore: remove historical left-over files
rst0git 50aa6da
make: fix compilation on alpine
avagin cda1c5c
irmap: hardcode some more interesting paths
rayrapetyan d056af7
dump: Don't unfreeze tasks on dump failure with --no-resume-on-error.
osctobe 6f08f8f
test/jenkins: test --no-resume-on-error
osctobe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[codespell] | ||
skip = ./.git,./test/pki | ||
ignore-words-list = creat,fpr,fle,ue,bord,parms,nd,te,testng | ||
ignore-words-list = creat,fpr,fle,ue,bord,parms,nd,te,testng,inh,wronly,renderd,bui,clen |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Verify self-contained commits | ||
|
||
on: pull_request | ||
|
||
# Cancel any preceding run on the pull request | ||
concurrency: | ||
group: commit-test-${{ github.event.pull_request.number }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
# Check if pull request does not have label "not-selfcontained-ok" | ||
if: "!contains(github.event.pull_request.labels.*.name, 'not-selfcontained-ok')" | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Needed to rebase against the base branch | ||
fetch-depth: 0 | ||
# Checkout pull request HEAD commit instead of merge commit | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
- name: Install dependencies | ||
run: sudo apt-get install -y libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler protobuf-compiler python3-protobuf libnl-3-dev libnet-dev libcap-dev | ||
- name: Configure git user details | ||
run: | | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "checkpoint-restore" | ||
- name: Configure base branch without switching current branch | ||
run: git fetch origin ${{ github.base_ref }}:${{ github.base_ref }} | ||
- name: Build each commit | ||
run: git rebase ${{ github.base_ref }} -x "make -C scripts/ci check-commit" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: LoongArch64 Qemu Test | ||
|
||
on: [push, pull_request] | ||
|
||
# Cancel any preceding run on the pull request. | ||
concurrency: | ||
group: loongarch64-qemu-test-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/criu-dev' }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: sudo make -C scripts/ci loongarch64-qemu-test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Remove labels | ||
on: [issue_comment, pull_request_review_comment] | ||
jobs: | ||
remove-labels-on-comments: | ||
name: Remove labels on comments | ||
if: github.event_name == 'issue_comment' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mondeja/remove-labels-gh-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
labels: | | ||
changes requested | ||
awaiting reply |
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
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
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.
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.
Could you add some lines about what situations it is useful and why? What benefit does it provide?
How should a user decide what is preferred for them in case of criu failure?
Current doc lines are copy'n'paste from above without adding any useful context.