From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12734 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: tcmalloc compatibility Date: Wed, 18 Apr 2018 17:06:08 -0400 Message-ID: <20180418210608.GJ3094@brightrain.aerifal.cx> References: <0ea267bf-ea3a-9810-be1a-50e71b6cfce1@denis.im> <20180410143359.GF3094@brightrain.aerifal.cx> <878t9vlzh1.fsf@mid.deneb.enyo.de> <20180410203354.GI4418@port70.net> <87efjci6i7.fsf@mid.deneb.enyo.de> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1524085463 29727 195.159.176.226 (18 Apr 2018 21:04:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2018 21:04:23 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-12750-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 18 23:04:19 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1f8uFR-0007Vp-N7 for gllmg-musl@m.gmane.org; Wed, 18 Apr 2018 23:04:13 +0200 Original-Received: (qmail 18402 invoked by uid 550); 18 Apr 2018 21:06:20 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 18378 invoked from network); 18 Apr 2018 21:06:20 -0000 Content-Disposition: inline In-Reply-To: <87efjci6i7.fsf@mid.deneb.enyo.de> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:12734 Archived-At: On Wed, Apr 18, 2018 at 10:50:24PM +0200, Florian Weimer wrote: > * Szabolcs Nagy: > > > even with the very small set of libc apis that a malloc > > interposer may want to use, there known (but undocumented) > > caveats: > > > > - glibc dlsym calls calloc (bites anybody who tries to wrap > > calloc in the usual way) > > That's not what I meant with an interposed malloc. Any such partial > interposition is going to be very tricky indeed. I don't understand. By "partial interposition" do you mean partial in the sense of "wrapping and calling the original via dlsym" or in the sense of "replacing some but not all allocator functions"? Rich