diff options
author | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-07 16:05:29 +0100 |
---|---|---|
committer | Szabolcs Nagy <szabolcs.nagy@arm.com> | 2022-10-12 14:22:03 +0100 |
commit | f660eb9cc7ddaed3900d0cb3b2468816790855ff (patch) | |
tree | 28bfd293bd49c58f2b16c5f8616c2f416404490c | |
parent | 1fa257f3382943680713180969b72385219285e4 (diff) | |
download | glibc-f660eb9cc7ddaed3900d0cb3b2468816790855ff.zip glibc-f660eb9cc7ddaed3900d0cb3b2468816790855ff.tar.gz glibc-f660eb9cc7ddaed3900d0cb3b2468816790855ff.tar.bz2 |
cheri: malloc: disable capability narrowing on some tests
malloc/tst-malloc-backtrace tests heap corruption.
malloc/tst-dynarray uses malloc_debug wrappers that access internals.
-rw-r--r-- | malloc/Makefile | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/malloc/Makefile b/malloc/Makefile index 4e32de2..0d40188 100644 --- a/malloc/Makefile +++ b/malloc/Makefile @@ -88,6 +88,7 @@ tests-exclude-hugetlb1 = \ tst-interpose-thread \ tst-interpose-static-nothread \ tst-interpose-static-thread \ + tst-malloc-backtrace \ tst-malloc-usable \ tst-malloc-usable-tunables \ tst-mallocstate @@ -159,6 +160,8 @@ libmemusage-inhibit-o = $(filter-out .os,$(object-suffixes)) libc_malloc_debug-routines = malloc-debug $(sysdep_malloc_debug_routines) libc_malloc_debug-inhibit-o = $(filter-out .os,$(object-suffixes)) +tst-malloc-backtrace-ENV = GLIBC_TUNABLES=glibc.mem.cap_narrowing=0 + $(objpfx)tst-malloc-backtrace: $(shared-thread-library) $(objpfx)tst-malloc-thread-exit: $(shared-thread-library) $(objpfx)tst-malloc-thread-fail: $(shared-thread-library) @@ -331,12 +334,14 @@ $(objpfx)tst-interpose-static-thread: \ $(objpfx)tst-interpose-aux-thread.o $(static-thread-library) tst-dynarray-ENV = MALLOC_TRACE=$(objpfx)tst-dynarray.mtrace \ + GLIBC_TUNABLES=glibc.mem.cap_narrowing=0 \ LD_PRELOAD=$(objpfx)libc_malloc_debug.so $(objpfx)tst-dynarray-mem.out: $(objpfx)tst-dynarray.out $(common-objpfx)malloc/mtrace $(objpfx)tst-dynarray.mtrace > $@; \ $(evaluate-test) tst-dynarray-fail-ENV = MALLOC_TRACE=$(objpfx)tst-dynarray-fail.mtrace \ + GLIBC_TUNABLES=glibc.mem.cap_narrowing=0 \ LD_PRELOAD=$(objpfx)libc_malloc_debug.so $(objpfx)tst-dynarray-fail-mem.out: $(objpfx)tst-dynarray-fail.out $(common-objpfx)malloc/mtrace $(objpfx)tst-dynarray-fail.mtrace > $@; \ |