public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Tomas Mraz <tmraz@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/openssl] rebase_40beta: fix sigill on some AMD CPUs (#1278194)
Date: Tue, 09 Jun 2026 12:43:39 GMT	[thread overview]
Message-ID: <178100901929.1.5903228751834925913.rpms-openssl-a83e4d7c4a5f@fedoraproject.org> (raw)

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)
 

                 reply	other threads:[~2026-06-09 12:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=178100901929.1.5903228751834925913.rpms-openssl-a83e4d7c4a5f@fedoraproject.org \
    --to=tmraz@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox