mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Jₑₙₛ Gustedt" <jens.gustedt@inria.fr>
To: Aaron Peter Bachmann <aaron_ng@inode.at>
Cc: musl@lists.openwall.com
Subject: Re: [musl] c23 memset_explicit()
Date: Tue, 19 Mar 2024 14:50:26 +0100	[thread overview]
Message-ID: <20240319145026.34c1a068@inria.fr> (raw)
In-Reply-To: <1ad1a194-f2f5-4ae1-9686-67961086e605@inode.at>

Aaron,

on Tue, 19 Mar 2024 12:18:20 +0100 you (Aaron Peter Bachmann
<aaron_ng@inode.at>) wrote:

> I recognized neither
> https://git.musl-libc.org/cgit/musl
> nor
> https://forge.icube.unistra.fr/icps/musl/-/branches
> seem to include c23 memset_explicit().
> Or it slipped my attention.

There had been such an implementation, but I removed it from the set
because there was no consensus how it should look like. I'd prefer
that someone else does it. If you want to read things up, there has
been a discussion on this list in May last year.

Your patch looks like the minimal thing that one would expect. For me
personally that does not seem good enough. One of the things that
bother me is that `memset` could have varying processing times, not
only depending on the length of the input (which is unavoidable), but
also depending on its contents.

Anyhow, Rich had elaborated a whole strategy how this feature would
better fallback to a builtin, if such a builtin exists. So I prefer
them doing it, whenever they are ready.

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 ::

  reply	other threads:[~2024-03-19 13:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-19 11:18 Aaron Peter Bachmann
2024-03-19 13:50 ` Jₑₙₛ Gustedt [this message]
2024-03-19 14:02   ` Rich Felker
2024-03-19 14:24     ` Jₑₙₛ Gustedt
2024-03-19 15:51     ` Aaron Peter Bachmann
2024-03-19 16:19       ` Rich Felker
2024-03-20  7:42         ` [musl] Re: Potential bug in __res_msend_rc() wrt to union, initialization Aaron Peter Bachmann
2024-03-19 16:37     ` [musl] c23 memset_explicit() NRK

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240319145026.34c1a068@inria.fr \
    --to=jens.gustedt@inria.fr \
    --cc=aaron_ng@inode.at \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).