From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id D3B4B3851508; Thu, 27 Oct 2022 14:00:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D3B4B3851508 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666879256; bh=fhZ+r+oOa8nISqHmjHbvRZpCIKhj3Lvd7IPRdC2l+Us=; h=From:To:Subject:Date:From; b=h7s31JZq7GAltrjdn1yMAKWTL9Hg1zOXrXcvCZtQWZ1nmYn7VqJjSkd58YzSaN/Y+ rnnMbeMOu0Aq/DGy4Bgnx6q2jgRq6ZW7fpbH/bvAw+YqnbLezO1dr5deOymzZ7QSPI C+l8XknkeoMgYgX/5b+q1YfyQJT9vSvUw4Sf/Q+o= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] cheri: malloc: disable capability narrowing on some tests X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: f0f77b883f9e74e6843081af280aa291a9182601 X-Git-Newrev: 2a7b951dced68cc727bf3fcb96141ba8ca65ddf0 Message-Id: <20221027140056.D3B4B3851508@sourceware.org> Date: Thu, 27 Oct 2022 14:00:50 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=2a7b951dced68cc727bf3fcb96141ba8ca65ddf0 commit 2a7b951dced68cc727bf3fcb96141ba8ca65ddf0 Author: Szabolcs Nagy Date: Fri Oct 7 16:05:29 2022 +0100 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. Diff: --- malloc/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/malloc/Makefile b/malloc/Makefile index 4e32de2a0b..0d40188bc1 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 > $@; \