From nobody Tue Jun 3 00:19:55 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bBBDZ4qHmz5xcV4 for ; Tue, 03 Jun 2025 00:19:58 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-il1-x12e.google.com (mail-il1-x12e.google.com [IPv6:2607:f8b0:4864:20::12e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bBBDY60qLz3gkY for ; Tue, 03 Jun 2025 00:19:57 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=hardenedbsd.org header.s=google header.b="WWvp8/5F"; spf=pass (mx1.freebsd.org: domain of shawn.webb@hardenedbsd.org designates 2607:f8b0:4864:20::12e as permitted sender) smtp.mailfrom=shawn.webb@hardenedbsd.org; dmarc=none Received: by mail-il1-x12e.google.com with SMTP id e9e14a558f8ab-3dda38ce673so7452895ab.2 for ; Mon, 02 Jun 2025 17:19:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd.org; s=google; t=1748909997; x=1749514797; darn=freebsd.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=IS2BB9nMaCmx9XeVsLqrfjJBlHpHjfdU2vMwjZmFKiw=; b=WWvp8/5FdzlfTUoJmDCuCBoyWHRu2+RONEqN67l05f11VX+Ubu5I+d+rSrt6I6YGdn kCnTyKknEmPpiwXwhuEqYyWrEXE4u1pU0miVyiLU41Y/tw5JYKdZd72dnioDIDYWmPYb dRbJGr/lASRzgYRAAKDtKRIrT7h/bsvnRRgJrs8r2fuY6yDzCT2BNldwozVJbNmg44+X 9T75ionYXGXYCiR7jg2UjtKPS3pkoCUGuc/XqbbldMzcsh96UxNMJ73ythXkCzNYBS0K A7rUhUP+VcCBOfobuxx7kMm/Bw6Msi/GHRCCHGOlKdjmefP86mZ3p8sylrVVbQZ+UBTs ik9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748909997; x=1749514797; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=IS2BB9nMaCmx9XeVsLqrfjJBlHpHjfdU2vMwjZmFKiw=; b=gcTaTxIt3ZmWlT5lkbXIWzDa+yPirvUp8D8L+3kOZbnPH+MzF1ZDPtxpMiCCVvfshR l5oWPZV1UhR8Z9UTeka0o40cforaAYEj86s6rLrDPJ6ilez9W4UDZbTeFDPtPmtMLsBw OP6cqMvBbYHPa/nxrxzBZ0qzRzJeZVa/M4g/oH1LtrQuBIJs9OtdVz6dju3dWH6bB9Yw PZ+QuKhfdRJ/t67pJllNdoRD+7Kh+iejpQ8EYXct9DivZdkCzxYP7E6Id3fuIhFmyjNN HuZOuxZTjjLugdvjWakgaHKLR4F7g1tB8zBeet86jowcQARLViMILUJ9VFFOwgQzcZgJ Gajw== X-Forwarded-Encrypted: i=1; AJvYcCWTMem0472Et6NaCoKucPx4uWvyjWId+m6PAaBcHEIB+hhzNnrjRNivyqbgvSiy4Hfbpz2CFFpTpuc61Uh+mOmup7e25A==@freebsd.org X-Gm-Message-State: AOJu0YxmQ3sQEry/02qrsNJ3L/LVunp8J4yqrN5f3sk1aFi1LN3ZeYWa T2x3a2Nra9dMCXlRG5/fPnflrRCStcsGBC1pQ/rAaQsKoNA9M9pGtqDudw9MruiIUl0YlIK+qZH GAhl/S74= X-Gm-Gg: ASbGncsqZHX12SP3PPArIGdJGdSHweNBoubqkhPObuig2Z2kcgkjFQo7k4HhfFo6MEc EyQY8L5qSP4l048vsA++oYTAbNhza6d+HYQ70oXZ+ZhcLhiIWtlYqKHBDu129GiOY/7O+g/LuXz az8rCAhLk475hE19RBNZzVFUKkut4qkAMuqoeHLtlU16IyMX4z1U8uCKrVKZAuHmpxtqdN2eSkQ eqT6AcT53GnJLYqy/GO//mto4gFAZcPzfDip8t5bfVJj1mLOWFf1C8VyB71VQqQTzwLsOllb2J/ TegabR9Yc/a3ekWxk1J4j+Ru/0aTITs9cA== X-Google-Smtp-Source: AGHT+IFLruzpAU1IqqaE24aM4HVEXMpVbBd7wFEw9lWUjqnHbZ3/jMeLtXym61S8/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--