Re: [PATCH] x86: uapi: ptrace: guard register offset macros with __ASSEMBLER__ or __FRAME_OFFSETS
From: Nick Desaulniers
Date: Mon Sep 28 2026 - 12:20:30 EST
On Sat, Sep 26, 2026 at 12:52 PM Borislav Petkov <bp@xxxxxxxxx> wrote:
>
> On Fri, Sep 25, 2026 at 02:25:47PM -0700, Nick Desaulniers wrote:
> > On Thu, Sep 24, 2026 at 7:54 AM Johannes Berg <johannes@xxxxxxxxxxxxxxxx> wrote:
> > >
> > > On Fri, 2026-08-21 at 15:45 -0700, Nick Desaulniers wrote:
> > > >
> > > > arch/x86/um/asm/ptrace.h | 4 +---
> > > > arch/x86/um/ptrace_32.c | 1 +
> > >
> > > This seems like a simple adjustment for what you need to do in x86, so
> > > that's OK, but I don't think we'll take this through the UML tree.
> >
> > Appreciated! I agree, maybe with Oleg's review this can go via the x86 tree?
>
> Do we want it in stable too even if it is not really stable material so that
> userspace does not have to upgrade kernels just for this?
I don't think so. Android, say, is not going to upgrade kernels just for this.
>
> Or are they simply copying upstream UAPI headers from the latest kernel so
> that stable backports don't matter?
Right. IIUC, bionic doesn't have N copies of UAPI headers (one for
each branch of stable), just 1 copy which they do move to newer kernel
versions when they need something. (enh@ can correct me precisely).
>
> Thx.
>
> --
> Regards/Gruss,
> Boris.
>
> https://people.kernel.org/tglx/notes-about-netiquette
--
Thanks,
~Nick Desaulniers