Re: [PATCH 4/7] x86/dumpstack: If addr_limit is non-default, display it

From: Andy Lutomirski
Date: Sun May 29 2016 - 15:08:54 EST


On May 29, 2016 11:42 AM, "Boris Petkov" <bp@xxxxxxxxx> wrote:
>
> Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
> >Easier said than done. struct thread_info doesn't have addr_limit on
> >sensible architectures (e.g. sparc), and I'd rather not stick a bunch
> >of ifdefs in generic code.
>
> It's not like it doesn't have an actual address limit though - I'm guessing it is something like the max userspace address on the arch... UINT_MAX or somesuch.

Sure, but how do I implement that? There's no "does this arch have
addr_limit in thread_info" general flag that I know of.

--Andy