mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
ci: fix userfaultfd test failures
Newer kernels (5.11) require echo 1 > /proc/sys/vm/unprivileged_userfaultfd Without the 'echo 1' the kernel prints a message like this: uffd: Set unprivileged_userfaultfd sysctl knob to 1 if kernel faults must be handled without obtaining CAP_SYS_PTRACE capability Signed-off-by: Adrian Reber <areber@redhat.com>
This commit is contained in:
parent
e11c742e01
commit
a86a66fc2c
1 changed files with 6 additions and 0 deletions
|
|
@ -197,6 +197,12 @@ fi
|
|||
# shellcheck disable=SC2086
|
||||
./test/zdtm.py run -a -p 2 --keep-going $ZDTM_OPTS
|
||||
|
||||
# Newer kernels are blocking access to userfaultfd:
|
||||
# uffd: Set unprivileged_userfaultfd sysctl knob to 1 if kernel faults must be handled without obtaining CAP_SYS_PTRACE capability
|
||||
if [ -e /proc/sys/vm/unprivileged_userfaultfd ]; then
|
||||
echo 1 > /proc/sys/vm/unprivileged_userfaultfd
|
||||
fi
|
||||
|
||||
LAZY_EXCLUDE="-x maps04 -x cmdlinenv00 -x maps007"
|
||||
|
||||
LAZY_TESTS='.*(maps0|uffd-events|lazy-thp|futex|fork).*'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue