[packages/openssl] fix avx/ssse3 misdetection in sha asm on x32; rel 2

atler atler at pld-linux.org
Sun Oct 26 02:06:39 CEST 2025


commit 386f14740c70ad35409f935ef9771ac814da333a
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Oct 26 02:04:55 2025 +0200

    fix avx/ssse3 misdetection in sha asm on x32; rel 2
    
    see https://github.com/openssl/openssl/issues/28957

 openssl.spec                   |  4 +++-
 x32-sha-avx-ssse3-detect.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/openssl.spec b/openssl.spec
index bce3199..60c1c60 100644
--- a/openssl.spec
+++ b/openssl.spec
@@ -14,7 +14,7 @@ Summary(ru.UTF-8):	Библиотеки и утилиты для соедине
 Summary(uk.UTF-8):	Бібліотеки та утиліти для з'єднань через Secure Sockets Layer
 Name:		openssl
 Version:	3.6.0
-Release:	1
+Release:	2
 License:	Apache v2.0
 Group:		Libraries
 Source0:	https://github.com/openssl/openssl/releases/download/openssl-%{version}/%{name}-%{version}.tar.gz
@@ -26,6 +26,7 @@ Patch0:		%{name}-optflags.patch
 Patch1:		%{name}-ca-certificates.patch
 Patch2:		%{name}-find.patch
 Patch3:		engines-dir.patch
+Patch4:		x32-sha-avx-ssse3-detect.patch
 URL:		http://www.openssl.org/
 %ifarch %{arm} ppc mips sparc sparcv9
 BuildRequires:	libatomic-devel
@@ -210,6 +211,7 @@ RC4, RSA и SSL. Включает статические библиотеки д
 %patch -P1 -p1
 %patch -P2 -p1
 %patch -P3 -p1
+%patch -P4 -p1
 
 # fails with enable-sctp as of 1.1.1
 %{__rm} test/recipes/80-test_ssl_new.t
diff --git a/x32-sha-avx-ssse3-detect.patch b/x32-sha-avx-ssse3-detect.patch
new file mode 100644
index 0000000..a4f9b7e
--- /dev/null
+++ b/x32-sha-avx-ssse3-detect.patch
@@ -0,0 +1,11 @@
+--- openssl-3.6.0/crypto/sha/asm/sha512-x86_64.pl.orig	2025-10-01 14:11:48.000000000 +0200
++++ openssl-3.6.0/crypto/sha/asm/sha512-x86_64.pl	2025-10-26 01:55:51.891406883 +0200
+@@ -113,6 +113,8 @@
+ #	below certain limit makes no difference/sense; to conserve
+ #	space SHA256 XOP code path is therefore omitted;
+ 
++use bigint;
++
+ # $output is the last argument if it looks like a file (it has an extension)
+ # $flavour is the first argument if it doesn't look like a file
+ $output = $#ARGV >= 0 && $ARGV[$#ARGV] =~ m|\.\w+$| ? pop : undef;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/openssl.git/commitdiff/386f14740c70ad35409f935ef9771ac814da333a



More information about the pld-cvs-commit mailing list