Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2018 12:12:25 -0700
From:      Xin Li <delphij@FreeBSD.org>
To:        Ian Lepore <ian@freebsd.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r338059 - in head: . contrib/ntp/lib/isc contrib/ntp/sntp/libevent crypto/heimdal/lib/roken crypto/openssh include lib/libc/gen lib/libc/include sys/crypto/chacha20
Message-ID:  <2012d319-ef2b-d734-5f1a-7b11d9511024@FreeBSD.org>
In-Reply-To: <1534703254.27158.41.camel@freebsd.org>
References:  <201808191740.w7JHeoSj052259@repo.freebsd.org> <1534703254.27158.41.camel@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--HpnDT9IALga4s6AAzS10JJ8WFF6frutrF
Content-Type: multipart/mixed; boundary="jScKxObTQ7OxANfKZokTRg4DqRAxvR03P";
 protected-headers="v1"
From: Xin Li <delphij@FreeBSD.org>
To: Ian Lepore <ian@freebsd.org>, src-committers@freebsd.org,
 svn-src-all@freebsd.org, svn-src-head@freebsd.org
Message-ID: <2012d319-ef2b-d734-5f1a-7b11d9511024@FreeBSD.org>
Subject: Re: svn commit: r338059 - in head: . contrib/ntp/lib/isc
 contrib/ntp/sntp/libevent crypto/heimdal/lib/roken crypto/openssh include
 lib/libc/gen lib/libc/include sys/crypto/chacha20
References: <201808191740.w7JHeoSj052259@repo.freebsd.org>
 <1534703254.27158.41.camel@freebsd.org>
In-Reply-To: <1534703254.27158.41.camel@freebsd.org>

--jScKxObTQ7OxANfKZokTRg4DqRAxvR03P
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

On 8/19/18 11:27, Ian Lepore wrote:
> On Sun, 2018-08-19 at 17:40 +0000, Xin LI wrote:
>> Author: delphij
>> Date: Sun Aug 19 17:40:50 2018
>> New Revision: 338059
>> URL: https://svnweb.freebsd.org/changeset/base/338059
>>
>> Log:
>> =C2=A0 Update userland arc4random() with OpenBSD's Chacha20 based
>> arc4random().
>> =C2=A0=C2=A0
>> =C2=A0=C2=A0=C2=A0=C2=A0ObsoleteFiles.inc:
>> =C2=A0=C2=A0
>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Remove manual pages for arc4random=
_addrandom(3) and
>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0arc4random_stir(3).
>> =C2=A0=C2=A0
>> =C2=A0=C2=A0=C2=A0=C2=A0contrib/ntp/lib/isc/random.c:
>> =C2=A0=C2=A0=C2=A0=C2=A0contrib/ntp/sntp/libevent/evutil_rand.c:
>> =C2=A0=C2=A0
>> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0Eliminate in-tree usage of arc4ran=
dom_addrandom().
>> =C2=A0=C2=A0
>=20
> If we don't feed changes for this back upstream, we're going to have to=


I'll send these to upstream.

> carry diffs from mainline ntpd forever now. The upstream project is
> receptive to taking diffs from us, but I guess we'd have to figure out
> how to write some autotools detection to create some new HAVE_xxxx
> variables for wrapping these calls.

Calling arc4random_stir() is not required since ~2000.

> Also, does this imply that the ntpd port will fail to build now? I
> would imagine removing such fundamental routines would affect many
> ports.

Not right now (due to the existence of stdlib.h shims).

> All in all, if it's just a matter of our implementation not needing
> these functions, wouldn't it be better to implement them as no-ops and
> document them as such existing only to aid porting existing code?

They are implemented as ABI shims but my intention (bug 230756) is to
remove the obsolete APIs (after a full exprun and have the callers
fixed, of course).  It's reasonable to provide ABI compatibility (they
will remain) but we should fix ports if they are still doing something
that is not needed ~18 years ago :)

Cheers,


--jScKxObTQ7OxANfKZokTRg4DqRAxvR03P--

--HpnDT9IALga4s6AAzS10JJ8WFF6frutrF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJbecEZAAoJEJW2GBstM+nsyIUP/1rIc+sHC3pKpqFzIPi1mVK9
QYCfhY/jZ+TSxFP5DyHCS6D2/3ixowrCN6Qw/lssriV3asmPcmuLnY+n+OKUENF/
gxdI/77gOWw0olVx+5kWOHn5KMfIXt6s39oWRU6X771iVOpaFrhdXIjnTXna3GVv
exS8F29l4DwJyfgb8xDq1HEV19g1ZD38SgCQ/iBXHdAj23NEEKL+f/By2WDagi+R
DSH/Y95SDVrQz9znzB4XKeJ+zMy5uyzP3h560tan2ybVuqJrNxHTUyQxCgw8Ga6b
P5s7ztgjlweXf3cdzNSUnHcYUAUyeqLfU9PNVNSRabIc21aBoWZo4Fkum83sQ2bh
okHupDpXm309vAPPcISv7y34gV4s70++BJ9e9MVLBXxW3pk0/0cXmHkVJxo+xrsY
9toR6uHjAXjA+MH0Sw097diKgAefIK2vXZJQ1+zyMsTtmGxVPUv7D7u86quUe03Z
f6q1zTeb4D3aejgF1auPPLdwjJX257fSr8J3sTCbis2f/ktvFDPdvV+gD3YNhJmW
BPJLgGKjeykjWdlmj1fZarxgtYQPDGyGSjV8JJSb8ykj/711/JvVSa7JQifoRaRe
7MAhT0GIb40EHBfZc63frB5b9Iv2VqUddKjTRYNORkrk/pwkKUPFvKh1/KgP8ij/
VTb56rUXVEQy7jDvwJ27
=uP73
-----END PGP SIGNATURE-----

--HpnDT9IALga4s6AAzS10JJ8WFF6frutrF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2012d319-ef2b-d734-5f1a-7b11d9511024>