All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] glibc: Enable memory tagging for aarch64
@ 2021-05-23  4:30 Khem Raj
  2021-05-23 10:38 ` [OE-core] " Richard Purdie
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2021-05-23  4:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Khem Raj

Glibc on aarch64 has a memory tagging option that can be enabled
via GLIBC_TUNABLES="glibc.mem.tagging=$SOMETHING" when glibc
is built with memory tagging support and the kernel/HW supports
MTE. There should be no side effects unless the user turns it
on with approprate HW support

Linux 5.4 headers and binutils 2.33.1 or newer is needed.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-core/glibc/glibc_2.34.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/glibc/glibc_2.34.bb b/meta/recipes-core/glibc/glibc_2.34.bb
index 0deb727ae4..37cf8ed85f 100644
--- a/meta/recipes-core/glibc/glibc_2.34.bb
+++ b/meta/recipes-core/glibc/glibc_2.34.bb
@@ -91,6 +91,7 @@ EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
 
 EXTRA_OECONF_append_x86 = " --enable-cet"
 EXTRA_OECONF_append_x86-64 = " --enable-cet"
+EXTRA_OECONF_append_aarch64 = " --enable-memory-tagging"
 
 PACKAGECONFIG ??= "nscd"
 PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] glibc: Enable memory tagging for aarch64
  2021-05-23  4:30 [PATCH] glibc: Enable memory tagging for aarch64 Khem Raj
@ 2021-05-23 10:38 ` Richard Purdie
  2021-05-23 14:44   ` Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2021-05-23 10:38 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

On Sat, 2021-05-22 at 21:30 -0700, Khem Raj wrote:
> Glibc on aarch64 has a memory tagging option that can be enabled
> via GLIBC_TUNABLES="glibc.mem.tagging=$SOMETHING" when glibc
> is built with memory tagging support and the kernel/HW supports
> MTE. There should be no side effects unless the user turns it
> on with approprate HW support
> 
> Linux 5.4 headers and binutils 2.33.1 or newer is needed.
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  meta/recipes-core/glibc/glibc_2.34.bb | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/meta/recipes-core/glibc/glibc_2.34.bb b/meta/recipes-core/glibc/glibc_2.34.bb
> index 0deb727ae4..37cf8ed85f 100644
> --- a/meta/recipes-core/glibc/glibc_2.34.bb
> +++ b/meta/recipes-core/glibc/glibc_2.34.bb
> @@ -91,6 +91,7 @@ EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
>  
> 
> 
> 
>  EXTRA_OECONF_append_x86 = " --enable-cet"
>  EXTRA_OECONF_append_x86-64 = " --enable-cet"
> +EXTRA_OECONF_append_aarch64 = " --enable-memory-tagging"
>  
> 
> 
> 
>  PACKAGECONFIG ??= "nscd"
>  PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"

glibc 2.34 doesn't exist in master? :)

Cheers,

Richard


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [OE-core] [PATCH] glibc: Enable memory tagging for aarch64
  2021-05-23 10:38 ` [OE-core] " Richard Purdie
@ 2021-05-23 14:44   ` Khem Raj
  0 siblings, 0 replies; 3+ messages in thread
From: Khem Raj @ 2021-05-23 14:44 UTC (permalink / raw)
  To: Richard Purdie; +Cc: Patches and discussions about the oe-core layer

On Sun, May 23, 2021 at 3:38 AM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Sat, 2021-05-22 at 21:30 -0700, Khem Raj wrote:
> > Glibc on aarch64 has a memory tagging option that can be enabled
> > via GLIBC_TUNABLES="glibc.mem.tagging=$SOMETHING" when glibc
> > is built with memory tagging support and the kernel/HW supports
> > MTE. There should be no side effects unless the user turns it
> > on with approprate HW support
> >
> > Linux 5.4 headers and binutils 2.33.1 or newer is needed.
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  meta/recipes-core/glibc/glibc_2.34.bb | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/recipes-core/glibc/glibc_2.34.bb b/meta/recipes-core/glibc/glibc_2.34.bb
> > index 0deb727ae4..37cf8ed85f 100644
> > --- a/meta/recipes-core/glibc/glibc_2.34.bb
> > +++ b/meta/recipes-core/glibc/glibc_2.34.bb
> > @@ -91,6 +91,7 @@ EXTRA_OECONF += "${@get_libc_fpu_setting(bb, d)}"
> >
> >
> >
> >
> >  EXTRA_OECONF_append_x86 = " --enable-cet"
> >  EXTRA_OECONF_append_x86-64 = " --enable-cet"
> > +EXTRA_OECONF_append_aarch64 = " --enable-memory-tagging"
> >
> >
> >
> >
> >  PACKAGECONFIG ??= "nscd"
> >  PACKAGECONFIG[nscd] = "--enable-nscd,--disable-nscd"
>
> glibc 2.34 doesn't exist in master? :)

ah I should have rebased
>
> Cheers,
>
> Richard
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-23 14:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-23  4:30 [PATCH] glibc: Enable memory tagging for aarch64 Khem Raj
2021-05-23 10:38 ` [OE-core] " Richard Purdie
2021-05-23 14:44   ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.