From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-4.1 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2D5D91F601 for ; Wed, 7 Dec 2022 16:57:49 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="up/3kVdb"; dkim-atps=neutral Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6788638983BD for ; Wed, 7 Dec 2022 16:57:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6788638983BD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1670432268; bh=/mB1+KBxg5axnJVnvZmMPWJKj9Zm/FeNWOHRc5cBFNw=; h=Subject:In-Reply-To:Date:Cc:References:To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=up/3kVdbXMNN9oc3YnPIZme2e3KG3A2sJ+HEo5PUaCo94XCsNCfVN9MckILRME6mp qiwB0mvQDf+J3MjKj8hxolXwLdoWRSaYC5OKYsHNDkOAgal0C3vdu+gpm/7VRyZqO4 x/Qfgn5aLjYYHMibzzIutBs9eL5ABjZ8Z24/8EtY= Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 9D7DB3835562 for ; Wed, 7 Dec 2022 16:57:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9D7DB3835562 Content-Type: multipart/signed; boundary="Apple-Mail=_237B70EE-F4DA-4A02-BF4B-FCA59FB32EA2"; protocol="application/pgp-signature"; micalg=pgp-sha512 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Subject: Re: [RFC] Supporting malloc_usable_size In-Reply-To: Date: Wed, 7 Dec 2022 16:57:12 +0000 Cc: Siddhesh Poyarekar , Florian Weimer , Zack Weinberg via Libc-alpha , Zack Weinberg , DJ Delorie Message-Id: <538832AC-4ED6-41CF-A655-22F691ADA88C@gentoo.org> References: <20221124213258.305192-1-siddhesh@gotplt.org> <87sfhyrp19.fsf@igel.home> <87o7smrnlh.fsf@igel.home> <87pmd2rnce.fsf@oldenburg.str.redhat.com> <5758633c-9989-e463-0eb6-33f483439289@owlfolio.org> <87359tpp1m.fsf@oldenburg.str.redhat.com> <874ju7ilcc.fsf@oldenburg.str.redhat.com> <5728d537-fb16-6943-5793-9291f1cabeba@gotplt.org> To: Adhemerval Zanella Netto X-Mailer: Apple Mail (2.3731.200.110.1.12) X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Sam James via Libc-alpha Reply-To: Sam James Errors-To: libc-alpha-bounces+e=80x24.org@sourceware.org Sender: "Libc-alpha" --Apple-Mail=_237B70EE-F4DA-4A02-BF4B-FCA59FB32EA2 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On 7 Dec 2022, at 16:54, Adhemerval Zanella Netto via Libc-alpha = wrote: > [snip] > I tend to agree with full deprecation, systemd MALLOC_SIZEOF_SAFE is = an > example of what user needs to hack around with an ill defined = interface and > _FORTIFY_SOURCE=3D3 warning should be clear that keep it is not a gain = in long > term (besides adding even more trouble for portability). >=20 > Another possibility would to make malloc_usable_size always return the = malloc > size argument (although it would add some internal metadata costs). My position is already clear (full deprecation), but if someone does = feel it's useful fo them, they can always speak up over the lengthy deprecation period anyway. It could always be reversed if necessary. --Apple-Mail=_237B70EE-F4DA-4A02-BF4B-FCA59FB32EA2 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iNUEARYKAH0WIQQlpruI3Zt2TGtVQcJzhAn1IN+RkAUCY5DF6F8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0MjVB NkJCODhERDlCNzY0QzZCNTU0MUMyNzM4NDA5RjUyMERGOTE5MAAKCRBzhAn1IN+R kMFIAP91jVuhlfM0XacN50Kd9KdmAiXKMJeQwii3+UFiX5LyrwD+MMfyNZ8xXYS1 oLjqyh+gO7gJeK53wMVqgA/GkGhDYAw= =r+hx -----END PGP SIGNATURE----- --Apple-Mail=_237B70EE-F4DA-4A02-BF4B-FCA59FB32EA2--