Re: [PATCH] x86/ptrace: Use savesegment() in get_segment_reg() instead of inline asm
From: Oleg Nesterov
Date: Thu Apr 02 2026 - 10:06:06 EST
On 04/02, Uros Bizjak wrote:
>
> On Thu, Apr 2, 2026 at 3:09 PM Uros Bizjak <ubizjak@xxxxxxxxx> wrote:
> >
> > There is a corresponding x86_32 get_segment_reg() function that has
> > the same definition of retval, I can prepare a follow-up patch that
> > changes both.
>
> Something like the attached patch that also slightly unifies x86_32 with x86_64.
OK, agreed. And this cleanup looks good to me as well.
Oleg.