[PATCH v2 0/3] Remove broken memory tagging in malloc

Yury Khrustalev yury.khrustalev@arm.com
Wed May 20 13:27:52 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?

---
base-commit: 1233e256f2
---

Yury Khrustalev (3):
  configure: remove --enable-memory-tagging option
  malloc: Remove code conditional on USE_MTAG
  malloc: Remove currently 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                               | 236 ++----------------
 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, 77 insertions(+), 524 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