This is the mail archive of the
mailing list for the libc-ports project.
Re: [PATCH] ARM: Add pointer guard support.
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Will Newton <will dot newton at linaro dot org>
- Cc: libc-ports at sourceware dot org, patches at linaro dot org
- Date: Wed, 25 Sep 2013 12:09:08 -0400
- Subject: Re: [PATCH] ARM: Add pointer guard support.
- Authentication-results: sourceware.org; auth=none
- References: <5242A79D dot 1030709 at linaro dot org>
On 09/25/2013 05:06 AM, Will Newton wrote:
> Add support for pointer mangling in glibc internal structures in C
> and assembler code.
> Tested on armv7 with hard and soft thread pointers.
Have you measured the performance versus using the existing
TLS access on ARM is quite slow and it looks to me like it
may be faster to use the global variable. Keep in mind that
the pointer guard and stack guard do not vary by thread.
32-bit ARM is currently using a global variable e.g.
__pointer_chk_guard, all you need to do to make it work
is adjust the definitions of PTR_MANGLE and PTR_DEMANGLE
to reference the global symbol.
This is the second proposal for ARM (first was  for
AArch64) to support storing the a guard in the TCB, but
nobody has responded yet to my question about performance.