mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-18 00:58:31 +00:00
Add a test for the SIGSEGV fixed by "mem: keep COW root VMAs writable when premapping". The parent reserves an address range with PROT_NONE and never touches it, so the kernel does not account it (no "ac" flag in smaps). After fork(), the child turns the same range into a writable mapping and fills it with data. CRIU matches COW VMAs by start/end and flags but ignores their protection bits, so the parent's PROT_NONE, not-accountable VMA becomes the COW root of the child's data VMA. On restore the child inherits the root's mapping. Without the fix that mapping is PROT_NONE, so restoring the child's pages into it faults and the test fails at restore; with the fix it passes. Assisted-by: Claude Code:claude-opus-4-8 Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> |
||
|---|---|---|
| .. | ||
| compel | ||
| cuda-checkpoint | ||
| exhaustive | ||
| inhfd | ||
| javaTests | ||
| jenkins | ||
| libfault | ||
| others | ||
| pki | ||
| plugins | ||
| zdtm | ||
| .gitignore | ||
| abrt.sh | ||
| crit-recode.py | ||
| empty-netns-prep.sh | ||
| groups.desc | ||
| inhfd.desc | ||
| Makefile | ||
| pycriu | ||
| umount2.c | ||
| zdtm.desc | ||
| zdtm.py | ||
| zdtm_ct.c | ||
| zdtm_mount_cgroups | ||
| zdtm_umount_cgroups | ||