[PATCH v3 0/1] malloc: aarch64: Remove broken memory tagging

Yury Khrustalev yury.khrustalev@arm.com
Thu May 21 12:07:09 GMT 2026


Remove broken bits from core malloc code and clean-up the
code. This includes:

 - Removing of the '--enable-memory-tagging' configure option
   (we will not need a separate build configuration for memory
   tagging, this should make testing much easier).
 - Removing of the 'USE_MTAG' macro and the 'glibc.mem.tagging'
   tunable.

No functional changes unrelated to memory tagging.

This is part of work-in-progress patch series to fix memory
tagging in malloc on aarch64.

Passes regression on aarch64 and x86_64. OK for trunk?

Changes since v1 and v2:
 - Squashed in a single commit.
 - Fixed git am issue with 3rd patch in v1 and v2.
 - v2: https://inbox.sourceware.org/libc-alpha/20260520132755.2137745-1-yury.khrustalev@arm.com/

---
base-commit: 54abc8566f
---

Yury Khrustalev (1):
  malloc: aarch64: Remove broken memory tagging

 INSTALL                                       |  14 -
 config.h.in                                   |   3 -
 config.make.in                                |   2 -
 configure                                     |  24 --
 configure.ac                                  |  15 --
 elf/dl-tunables.list                          |   5 -
 malloc/arena.c                                |  18 +-
 malloc/malloc-check.c                         |  40 +--
 malloc/malloc.c                               | 240 ++----------------
 manual/install.texi                           |  13 -
 manual/tunables.texi                          |  29 ---
 sysdeps/aarch64/Makefile                      |   9 +-
 ...__mtag_tag_region.S => __mte_tag_region.S} |   7 +-
 ..._zero_region.S => __mte_tag_region_zero.S} |   7 +-
 .../aarch64/{libc-mtag.h => aarch64-mte.h}    |  73 +++---
 sysdeps/aarch64/cpu-features.h                |   3 +-
 sysdeps/aarch64/dl-diagnostics-cpu.c          |   2 -
 sysdeps/generic/libc-mtag.h                   |  73 ------
 .../unix/sysv/linux/aarch64/cpu-features.c    |  28 --
 19 files changed, 78 insertions(+), 527 deletions(-)
 rename sysdeps/aarch64/{__mtag_tag_region.S => __mte_tag_region.S} (96%)
 rename sysdeps/aarch64/{__mtag_tag_zero_region.S => __mte_tag_region_zero.S} (95%)
 rename sysdeps/aarch64/{libc-mtag.h => aarch64-mte.h} (55%)
 delete mode 100644 sysdeps/generic/libc-mtag.h

-- 
2.47.3



More information about the Libc-alpha mailing list