Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230527084947.71628791@inria.fr>
Date: Sat, 27 May 2023 08:49:47 +0200
From: Jₑₙₛ Gustedt <jens.gustedt@...ia.fr>
To: Rich Felker <dalias@...c.org>
Cc: Joakim Sindholt <opensource@...sha.com>, musl@...ts.openwall.com
Subject: Re: [C23 string conversion 1/3] C23: add the new
 memset_explicit function

Rich,

on Fri, 26 May 2023 16:57:21 -0400 you (Rich Felker <dalias@...c.org>)
wrote:

> Do you have something in mind about how the explcit_bzero
> implementation we have doesn't do that?

I would be more comfortable with a stronger synchronization barrier
that works for all memory models and also in the presence of threads
and signals. So maybe using `a_barrier()`?

Also I think that relying on the compiler's `memset` is not a good
strategy. This puts us at their merci of whatever efficiency games
they are playing, now or in the future.

Thanks
Jₑₙₛ

-- 
:: ICube :::::::::::::::::::::::::::::: deputy director ::
:: Université de Strasbourg :::::::::::::::::::::: ICPS ::
:: INRIA Nancy Grand Est :::::::::::::::::::::::: Camus ::
:: :::::::::::::::::::::::::::::::::::: ☎ +33 368854536 ::
:: https://icube-icps.unistra.fr/index.php/Jens_Gustedt ::

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.