From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30859 invoked from network); 26 May 2023 20:36:07 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 26 May 2023 20:36:07 -0000 Received: (qmail 26369 invoked by uid 550); 26 May 2023 20:36:05 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 26328 invoked from network); 26 May 2023 20:36:04 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:message-id:in-reply-to: references:mime-version; bh=skVp9HCEfpro2PSpIh+UWILT46fFGK+StX8UXbTPolo=; b=tBqBsGsPPsF3EAsW9DYlv7LSFK3cQN+HJ6lQl1xQpCKLwVwZGhbmBhTr 1QkdOyq0e6AygWbB5US8F0MxmYtOxh6gO1SZB5ya3QArRnXZ4KiH3Jhw9 cF0FpaE4GRMMufUhGyYMWFC73H+VsU7kl0egmgtrn48+2K47MYcIjpZNY k=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=jens.gustedt@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.00,195,1681164000"; d="scan'208";a="57139261" Date: Fri, 26 May 2023 22:35:52 +0200 From: =?UTF-8?B?SuKCkeKCmeKCmw==?= Gustedt To: Rich Felker Cc: Joakim Sindholt , musl@lists.openwall.com Message-ID: <20230526223552.7878f5f0@inria.fr> In-Reply-To: <20230526201603.GM4163@brightrain.aerifal.cx> References: <20230526115236.b15f8bf97a529da07fba514f@zhasha.com> <20230526121829.4b9a9538@inria.fr> <20230526201603.GM4163@brightrain.aerifal.cx> Organization: inria.fr X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) X-Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAAXNSR0IArs4c6QAAACRQTFRFERslNjAsLTE9Ok9wUk9TaUs8iWhSrYZkj42Rz6aD3sGZ MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/jHMoZQs=fI199e14KYFs2j6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Subject: Re: [musl] [C23 string conversion 1/3] C23: add the new memset_explicit function --Sig_/jHMoZQs=fI199e14KYFs2j6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Rich, on Fri, 26 May 2023 16:16:03 -0400 you (Rich Felker ) wrote: > We had all of these discussions back when explicit_bzero was added, > and it was done the way it was done because it's portable (within the > framework of what musl already requires) and non-arch-specific, has > zero overhead, avoids any code duplication or bad performance > open-coding another memset variant, My impression is that such information is quite difficult to find, but maybe I didn't search enough. Sometimes code comments would help ;-) Bad performance really isn't a valid argument in this case. This is not supposed to be efficient. Any user that uses this has to know that they are trading it for something. > and avoids taking part in any security theater (pretending we can > clear things we can't). It is not about taking part. For me it is just about offering to our users the best service for this tricky question that we may, and not less. Thanks J=E2=82=91=E2=82=99=E2=82=9B --=20 :: ICube :::::::::::::::::::::::::::::: deputy director :: :: Universit=C3=A9 de Strasbourg :::::::::::::::::::::: ICPS :: :: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus :: :: :::::::::::::::::::::::::::::::::::: =E2=98=8E +33 368854536 :: :: https://icube-icps.unistra.fr/index.php/Jens_Gustedt :: --Sig_/jHMoZQs=fI199e14KYFs2j6 Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSN9stI2OFN1pLljN0P0+hp2tU34gUCZHEYKAAKCRAP0+hp2tU3 4uVCAKCE41u96iK988e/humdnyWDdBkblwCfTSZL1IKamtJwCC3jBgQ2JaSno20= =7Phl -----END PGP SIGNATURE----- --Sig_/jHMoZQs=fI199e14KYFs2j6--