criu/compel
Mike Rapoport b13b95e522 compel: fix how PTRACE_GET_THREAD_AREA errors are handled
When PTRACE_GET_THREAD_AREA errors on kernels with
!CONFIG_IA32_EMULATION beacuse of missing support (-EIO), compel should
ignore uch errors in native mode.

However the check for error type uses return value of ptrace rather than
errno, which will always result in error propagation.

Use errno to detect type of error to fix this.

Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
2022-04-28 17:53:52 -07:00
..
arch compel: fix how PTRACE_GET_THREAD_AREA errors are handled 2022-04-28 17:53:52 -07:00
include clang-format: do automatic comment fixups 2022-04-28 17:53:52 -07:00
plugins compel: fix GCC 12 failure (out of bounds) 2022-04-28 17:53:52 -07:00
src compel: fix parasite with GCC 12 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