criu/compel/include
Dmitry Safonov 5f185caa73 compel/x86: Add workaround on ptrace() bug on Skylake
On Skylake processors and kernel older than v4.14
    ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, iov)
may return not full xstate, ommiting FP part (that is XFEATURE_MASK_FP).
There is a patch which describes this bug:
  https://www.mail-archive.com/linux-kernel@vger.kernel.org/msg1318800.html
Anyway, it's fixed in v4.14 kernel by (what we believe with Andrey) this:
  https://patchwork.kernel.org/patch/9567939/

As we still support kernels from v3.10 and newer, we need to have a
workaround for this kernel bug on Skylake CPUs.

Big thanks to Shlomi for the reports, the effort and for providing an
Amazon VM to test this. I wish more bug reporters were like you.

Reported-by: Shlomi Matichin <shlomi@binaris.com>
Provided-test-env: Shlomi Matichin <shlomi@binaris.com>
Investigated-with: Andrei Vagin <avagin@virtuozzo.com>
Signed-off-by: Dmitry Safonov <dima@arista.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
2018-03-02 21:52:13 +03:00
..
uapi compel/x86: Add workaround on ptrace() bug on Skylake 2018-03-02 21:52:13 +03:00
compel-cpu.h compel: Split cpu.h heander into uapi and priv parts 2017-03-15 00:06:10 +03:00
elf32-types.h compel: Reshuffle the directories structure 2017-03-14 23:58:09 +03:00
elf64-types.h compel: Reshuffle the directories structure 2017-03-14 23:58:09 +03:00
errno.h infect: Move errno.h to compel 2017-03-15 00:06:01 +03:00
infect-priv.h compel: Add ctx flags to get_task_regs() 2018-03-02 21:52:13 +03:00
log.h compel_print_on_level(): annotate with printf 2017-03-15 09:36:06 +03:00
piegen.h compel hgen: drop -u option 2017-03-15 00:06:17 +03:00
ptrace.h compel: return ptrace area helpers back to uapi 2017-04-02 18:12:10 +03:00
rpc-pie-priv.h compel: kill self-unmap in parasite 2017-03-15 00:06:14 +03:00
shmem.h compel: plugins -- Add shmem plugin 2017-03-14 23:58:09 +03:00