criu/compel
Alexander Mikhalitsyn fc1eb01ff3 x86/compel/fault-inject: bound xsave features set
Since
e2e8be37 ("x86/compel/fault-inject: Add a fault-injection for corrupting extended regset")
we doing fault-injection test for C/R of threads register set by filling tasks
xsave structures with the garbage. But there are some features for which that's not
safe. It leads to failures like described in #1635

In this particular case we meet the problem with PKRU feature, the problem
that after corrupting pkru registers we may restrict access to some vma areas,
so, after that process with the parasite injected get's segfault and crashes.

Let's manually specify which features is save to fill with the garbage by
keeping proper XFEATURE_MASK_FAULTINJ mask value.

Fixes: e2e8be37 ("x86/compel/fault-inject: Add a fault-injection for corrupting extended regset")

https://github.com/checkpoint-restore/criu/issues/1635

Signed-off-by: Alexander Mikhalitsyn <alexander.mikhalitsyn@virtuozzo.com>
2022-04-28 17:53:52 -07:00
..
arch x86/compel/fault-inject: bound xsave features set 2022-04-28 17:53:52 -07:00
include clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
plugins Run 'make indent' on header files 2021-09-03 10:31:00 -07:00
src clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
test Run 'make indent' on all C files 2021-09-03 10:31:00 -07:00
.gitignore compel: adapt .gitgnore for aarch64 and ppc64le 2017-08-09 18:51:42 +03:00
compel-host compel cli: show includes 2017-03-15 00:09:55 +03:00
Makefile x86: Use PTRACE_GET_THREAD_AREA instead of sys_get_thread_area() 2021-09-03 10:31:00 -07:00