public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openssl] rebase_40beta: fix sigill on some AMD CPUs (#1278194)
@ 2026-06-09 12:43 Tomas Mraz
  0 siblings, 0 replies; only message in thread
From: Tomas Mraz @ 2026-06-09 12:43 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/openssl
Branch : rebase_40beta
Commit : a83e4d7c4a5f3660e22975561bc72b9f114f01c4
Author : Tomas Mraz <tmraz@fedoraproject.org>
Date   : 2015-11-16T17:47:54+01:00
Stats  : +23/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/openssl/c/a83e4d7c4a5f3660e22975561bc72b9f114f01c4?branch=rebase_40beta

Log:
fix sigill on some AMD CPUs (#1278194)

---
diff --git a/openssl-1.0.2d-amd-sigill.patch b/openssl-1.0.2d-amd-sigill.patch
new file mode 100644
index 0000000..91f17d9
--- /dev/null
+++ b/openssl-1.0.2d-amd-sigill.patch
@@ -0,0 +1,17 @@
+diff -up openssl-1.0.2d/crypto/aes/asm/aesni-sha256-x86_64.pl.sigill openssl-1.0.2d/crypto/aes/asm/aesni-sha256-x86_64.pl
+--- openssl-1.0.2d/crypto/aes/asm/aesni-sha256-x86_64.pl.sigill	2015-07-09 16:51:25.000000000 +0200
++++ openssl-1.0.2d/crypto/aes/asm/aesni-sha256-x86_64.pl	2015-11-16 17:43:52.554826505 +0100
+@@ -139,11 +139,8 @@ $code.=<<___ if ($avx>1);
+ 	je	${func}_avx2
+ ___
+ $code.=<<___;
+-	and	\$`1<<30`,%eax			# mask "Intel CPU" bit
+-	and	\$`1<<28|1<<9`,%r10d		# mask AVX+SSSE3 bits
+-	or	%eax,%r10d
+-	cmp	\$`1<<28|1<<9|1<<30`,%r10d
+-	je	${func}_avx
++	and	\$`1<<28`,%r10d			# check for AVX
++	jnz	${func}_avx
+ 	ud2
+ ___
+ 						}

diff --git a/openssl.spec b/openssl.spec
index 7737853..6472339 100644
--- a/openssl.spec
+++ b/openssl.spec
@@ -23,7 +23,7 @@
 Summary: Utilities from the general purpose cryptography library with TLS implementation
 Name: openssl
 Version: 1.0.2d
-Release: 2%{?dist}
+Release: 3%{?dist}
 Epoch: 1
 # We have to remove certain patented algorithms from the openssl source
 # tarball with the hobble-openssl script which is included below.
@@ -86,6 +86,7 @@ Patch94: openssl-1.0.2d-secp256k1.patch
 Patch80: openssl-1.0.2a-wrap-pad.patch
 Patch81: openssl-1.0.2a-padlock64.patch
 Patch82: openssl-1.0.2c-trusted-first-doc.patch
+Patch83: openssl-1.0.2d-amd-sigill.patch
 
 License: OpenSSL
 Group: System Environment/Libraries
@@ -207,6 +208,7 @@ cp %{SOURCE12} %{SOURCE13} crypto/ec/
 %patch80 -p1 -b .wrap
 %patch81 -p1 -b .padlock64
 %patch82 -p1 -b .trusted-first
+%patch83 -p1 -b .sigill
 
 sed -i 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' crypto/opensslv.h
 
@@ -477,6 +479,9 @@ rm -rf $RPM_BUILD_ROOT/%{_libdir}/fipscanister.*
 %postun libs -p /sbin/ldconfig
 
 %changelog
+* Mon Nov 16 2015 Tomáš Mráz <tmraz@redhat.com> 1.0.2d-3
+- fix sigill on some AMD CPUs (#1278194)
+
 * Wed Aug 12 2015 Tom Callaway <spot@fedoraproject.org> 1.0.2d-2
 - re-enable secp256k1 (bz1021898)
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-09 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-09 12:43 [rpms/openssl] rebase_40beta: fix sigill on some AMD CPUs (#1278194) Tomas Mraz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox