1S8/skMMSrhrl10og== X-Received: by 2002:a05:6e02:1b04:b0:3dd:b808:be59 with SMTP id e9e14a558f8ab-3ddb808bff4mr2306945ab.21.1748909996948; Mon, 02 Jun 2025 17:19:56 -0700 (PDT) Received: from mutt-hbsd ([2001:470:4001:1::95]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-3dd93528842sm23040585ab.10.2025.06.02.17.19.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Jun 2025 17:19:56 -0700 (PDT) Date: Tue, 3 Jun 2025 00:19:55 +0000 From: Shawn Webb To: Robert Clausecker Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Subject: Re: git: e698e4a53773 - main - lib/libmd: disable SHA1 AVX2 kernel Message-ID: X-Operating-System: FreeBSD mutt-hbsd 14.2-STABLE-HBSD FreeBSD 14.2-STABLE-HBSD HARDENEDBSD-14-STABLE amd64 X-PGP-Key: https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/blob/master/Shawn_Webb/03A4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc References: <202506022333.552NX1uN061534@gitrepo.freebsd.org> List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tbp6yw7zahhtp2wx" Content-Disposition: inline In-Reply-To: X-Spamd-Result: default: False [-3.50 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-0.90)[-0.902]; MID_RHS_NOT_FQDN(0.50)[]; NEURAL_HAM_SHORT(-0.42)[-0.416]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_DKIM_ALLOW(-0.20)[hardenedbsd.org:s=google]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_MEDIUM(-0.09)[-0.087]; RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[hardenedbsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[dev-commits-src-main@freebsd.org]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; DKIM_TRACE(0.00)[hardenedbsd.org:+] X-Rspamd-Queue-Id: 4bBBDY60qLz3gkY X-Spamd-Bar: --- --tbp6yw7zahhtp2wx Content-Type: text/plain; protected-headers=v1; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Subject: Re: git: e698e4a53773 - main - lib/libmd: disable SHA1 AVX2 kernel MIME-Version: 1.0 On Tue, Jun 03, 2025 at 12:17:26AM +0000, Shawn Webb wrote: > On Mon, Jun 02, 2025 at 11:33:01PM +0000, Robert Clausecker wrote: > > The branch main has been updated by fuz: > >=20 > > URL: https://cgit.FreeBSD.org/src/commit/?id=3De698e4a537736f6a7dd9a386= e00997d7fb08e83f > >=20 > > commit e698e4a537736f6a7dd9a386e00997d7fb08e83f > > Author: Robert Clausecker > > AuthorDate: 2025-06-02 22:54:32 +0000 > > Commit: Robert Clausecker > > CommitDate: 2025-06-02 23:27:00 +0000 > >=20 > > lib/libmd: disable SHA1 AVX2 kernel > > =20 > > Seems like there is a bug lurking somewhere in the code. This was = not > > caught during my testing. Disable the affected kernel for now whil= e I > > figure out what is wrong with it. > > =20 > > To reproduce, run > > =20 > > jot -s '' -b 'a' -n 1000000 | sha1 > > =20 > > This should yield 34aa973cd4c4daa4f61eeb2bdbad27316534016f, but giv= es > > fe161a71d7941e3d63a9cacadc4f20716a721944 with the broken code. Onl= y the > > amd64/avx2 kernel is affected, the others seem to operate correctly. >=20 > Out of curiosity, how would one best determine whether they're > affected? Would it be a part of the CPU features shown in > /var/run/dmesg.boot? Nevermind, running your reproducer above is sufficient. And, it appears that one of my Intel laptops is affected. I do see the following line in /var/run/dmesg.boot: Structured Extended Features=3D0x1407a9 Sorry for the noise. --=20 Shawn Webb Cofounder / Security Engineer HardenedBSD Signal Username: shawn_webb.74 Tor-ified Signal: +1 303-901-1600 / shawn_webb_opsec.50 https://git.hardenedbsd.org/hardenedbsd/pubkeys/-/raw/master/Shawn_Webb/03A= 4CBEBB82EA5A67D9F3853FF2E67A277F8E1FA.pub.asc --tbp6yw7zahhtp2wx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEA6TL67gupaZ9nzhT/y5nonf44foFAmg+P6oACgkQ/y5nonf4 4frqphAAh35OmZ/GeNkxX/f8rui/i9HNZtJGvPdnwKgsmMGc28tGxj1BEWPsOPBu RJ/bfVpPPco4X6TTtnz77ZOKq26LRzz8dBRkfm7lMnIVIVCs9d2FdM3BGkYE9Vbp klJOJ6SpIFYcIHEvaYnBWe7DiFHw5xi2OnCZ8388TA2kHE9Me+35QzSazSgC5nn9 8Ab/JOSpSWNhXKGT0xU+JHoIBDipkrNmx7k43CU7n3KRI0B970rjQGxLxPI+BeDl 8edotGpLe7IYHoeAq/6TqsiszaIGDPP5sm3yu5MhqPlid1qmNIMoav3I0T2+wn4k +VwyWhCPcZzXsiSIbRtNWC9tecUGe1AKv4Hez2nywOncHsg+mG+F6uTIlJvoLUwU cQSCHqOLphlRYrxVZsBZoaGV8XV4jLghQgARYV2uWzNv84TiPkYAB8Bfz0O7sXhi i1RINxzxZrvUlWa3srZpAzL5rYOcpF30i7xTJ6agD+FSf3SfWEddcrGppdkaqpgi 71pJdz5UCLe1S/tzmgqaQ+Oc1mMC5+b8ujDsog5+Z9+T1Ea5+AEQOm4mdgJ+XtP2 5q8hfJ/VTU5NS5SfI9mqEXV1iRLA0m28l9xVUsFkVVhvI+pKaatgZjaArwt4o82m g+xBKoQgCI8UsaUHnvjZlL4dIWTxPhNqhmJKnWJJbV+RT/qGLwU= =+V2e -----END PGP SIGNATURE----- --tbp6yw7zahhtp2wx--