isaacpittman-hitachi / rpms / openssl

Forked from rpms/openssl 2 years ago
Clone

Blame SOURCES/openssl-1.1.1-s390x-sigill.patch

b63792
diff -up openssl-1.1.1c/crypto/s390xcap.c.s390x-sigill openssl-1.1.1c/crypto/s390xcap.c
b63792
--- openssl-1.1.1c/crypto/s390xcap.c.s390x-sigill	2019-05-28 15:12:21.000000000 +0200
b63792
+++ openssl-1.1.1c/crypto/s390xcap.c	2020-02-12 17:05:54.566258533 +0100
b63792
@@ -1,5 +1,5 @@
b63792
 /*
b63792
- * Copyright 2010-2017 The OpenSSL Project Authors. All Rights Reserved.
b63792
+ * Copyright 2010-2019 The OpenSSL Project Authors. All Rights Reserved.
b63792
  *
b63792
  * Licensed under the OpenSSL license (the "License").  You may not use
b63792
  * this file except in compliance with the License.  You can obtain a copy
b63792
@@ -29,7 +29,7 @@ struct OPENSSL_s390xcap_st OPENSSL_s390x
b63792
 void OPENSSL_cpuid_setup(void)
b63792
 {
b63792
     sigset_t oset;
b63792
-    struct sigaction ill_act, oact;
b63792
+    struct sigaction ill_act, oact_ill, oact_fpe;
b63792
 
b63792
     if (OPENSSL_s390xcap_P.stfle[0])
b63792
         return;
b63792
@@ -44,8 +44,8 @@ void OPENSSL_cpuid_setup(void)
b63792
     sigdelset(&ill_act.sa_mask, SIGFPE);
b63792
     sigdelset(&ill_act.sa_mask, SIGTRAP);
b63792
     sigprocmask(SIG_SETMASK, &ill_act.sa_mask, &oset);
b63792
-    sigaction(SIGILL, &ill_act, &oact;;
b63792
-    sigaction(SIGFPE, &ill_act, &oact;;
b63792
+    sigaction(SIGILL, &ill_act, &oact_ill);
b63792
+    sigaction(SIGFPE, &ill_act, &oact_fpe);
b63792
 
b63792
     /* protection against missing store-facility-list-extended */
b63792
     if (sigsetjmp(ill_jmp, 1) == 0)
b63792
@@ -61,7 +61,7 @@ void OPENSSL_cpuid_setup(void)
b63792
                                          | S390X_CAPBIT(S390X_VXE));
b63792
     }
b63792
 
b63792
-    sigaction(SIGFPE, &oact, NULL);
b63792
-    sigaction(SIGILL, &oact, NULL);
b63792
+    sigaction(SIGFPE, &oact_fpe, NULL);
b63792
+    sigaction(SIGILL, &oact_ill, NULL);
b63792
     sigprocmask(SIG_SETMASK, &oset, NULL);
b63792
 }