Re: [PATCH 3/3] x86/ptrace: Fix 32-bit PTRACE_SETREGS vs fsbase and gsbase

2020-06-24 Thread Andy Lutomirski
On Wed, Jun 24, 2020 at 3:50 PM Andy Lutomirski wrote: > > Debuggers expect that doing PTRACE_GETREGS, then poking at a tracee > and maybe letting it run for a while, then doing PTRACE_SETREGS will > put the tracee back where it was. In the specific case of a 32-bit > tracer and tracee, the

[PATCH 3/3] x86/ptrace: Fix 32-bit PTRACE_SETREGS vs fsbase and gsbase

2020-06-24 Thread Andy Lutomirski
Debuggers expect that doing PTRACE_GETREGS, then poking at a tracee and maybe letting it run for a while, then doing PTRACE_SETREGS will put the tracee back where it was. In the specific case of a 32-bit tracer and tracee, the PTRACE_GETREGS/SETREGS data structure doesn't have fs_base or gs_base