public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: "Zack Weinberg" <zack@owlfolio.org>
To: "Adhemerval Zanella" <adhemerval.zanella@linaro.org>,
	"GNU libc development" <libc-alpha@sourceware.org>
Subject: Re: [PATCH 0/4] Remove libcrypt
Date: Wed, 27 Sep 2023 14:05:01 -0400	[thread overview]
Message-ID: <5938b6ea-67a9-4de2-850f-254853d43154@app.fastmail.com> (raw)
In-Reply-To: <b76ea77e-05ca-43a9-a2ff-d06ec662f3d0@linaro.org>

On Wed, Sep 27, 2023, at 9:58 AM, Adhemerval Zanella Netto wrote:
> On 21/09/23 17:48, Zack Weinberg wrote:
>> In
>> https://sourceware.org/pipermail/libc-alpha/2023-September/151664.html
>> Adhemerval suggested that now would be a good time to complete the
>> removal of libcrypt.  This patch series does just that.  If you would
>> rather not apply it by hand, you can get it from the zack/remove-
>> libcrypt branch (with somewhat different commit messages -- I'll fix
>> that before merging).
>
> In fact I also sent patchset to remove libcrypt just a couple of hours
> before yours [1].

Yes, I saw that only after posting my patch set.  I didn't realize, from
your message saying that you thought it was a good time to proceed, that
you intended to work on it yourself.

> I really don't see any value of changing the md5 implementation glibc
> uses on localedef, current implementation does not have any red flag
> (such as alloca usage), it is used solely for integrity (which in
> theory could be any other algorithm, albeit changing it might add some
> compatibility issues); and for this change I think we should the code
> as similar as possible (avoid any internal API change).

Fair enough.

> I also see no point in adding extra costly md5 tests, since the
> integrity support is not really implemented in glibc.

That test isn't new, I just moved it from the crypt directory.  It looks
like your patch leaves md5.c in the crypt directory?  What did you do
with the tests in there?

>> stdio-common/Versions says that __snprintf is exported as
>> GLIBC_PRIVATE because libcrypt uses it.  I doubt that was the only
>> ancillary library using that symbol, but I don't know how to find
>> other uses, so I left the export in place; it can always be
>> removed later.
>
> The GLIBC_PRIVATE as just used between glibc installed shared objects,
> so any other external users probing on GLIBC_PRIVATE was never
> supported.

I meant, I don't know how to check whether there are any other uses of
__snprintf@GLIBC_PRIVATE *within glibc* after removing libcrypt.

> I slight more inclined to go with my patch, mainly because it tries to
> avoid changing internal APIs and pack the whole removal in only one
> patch (I also proposed the sparc crypt optimization for last release,
> but I postpone to send while libcrypt was actually removed).

The only piece of my patchset that I think is really worth keeping, is
the changes I made to the documentation.  How about you go ahead and
merge your patchset and then I'll resubmit the doc changes on top of
that?  Also I'll send a patch moving md5.c to locale/ so we can
completely remove the crypt directory (one fewer top-level directory to
walk over in the build makes a measurable difference in how long a null
incremental build takes).

zw

  reply	other threads:[~2023-09-27 18:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-21 20:48 Zack Weinberg
2023-09-21 20:49 ` [PATCH 1/4] Import Solar Designer's public domain MD5 for use by localedef Zack Weinberg
2023-09-21 20:50 ` [PATCH 2/4] Remove --enable-crypt and --enable-nss-crypt configure options Zack Weinberg
2023-09-21 20:51 ` [PATCH 3/4] Remove documentation of passphrase-hashing functions Zack Weinberg
2023-09-21 20:52 ` [PATCH 4/4] Remove all of the remaining libcrypt code Zack Weinberg
2023-09-27 13:58 ` [PATCH 0/4] Remove libcrypt Adhemerval Zanella Netto
2023-09-27 18:05   ` Zack Weinberg [this message]
2023-09-27 18:19     ` Adhemerval Zanella Netto
2023-09-27 18:25       ` Zack Weinberg

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=5938b6ea-67a9-4de2-850f-254853d43154@app.fastmail.com \
    --to=zack@owlfolio.org \
    --cc=adhemerval.zanella@linaro.org \
    --cc=libc-alpha@sourceware.org \
    /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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).