linux-sgx/0112-Workaround-broken-GCC-15.patch
Daniel P. Berrangé 3c00769e65 Fix pccs npm security flaws
Sync patches from Fedora 43, to fix multiple pccs npm security flaws,
and fix typo in pccsadmin help text.

CVE-2026-23745, CVE-2026-23950, CVE-2026-24842, CVE-2025-13465, CVE-2025-15284

Resolves: RHEL-145005, RHEL-144190, RHEL-142482, RHEL-138075, RHEL-140108
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2026-02-05 11:52:25 +00:00

41 lines
1.5 KiB
Diff

From ac446d8943858e6dccec924451b8a8a3be4d9c4a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= <berrange@redhat.com>
Date: Thu, 6 Feb 2025 20:08:59 +0000
Subject: [PATCH 112/136] Workaround broken GCC 15
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The C++ standard does not allow 'alignas' to be applied to type
aliases. GNU C++ has allowed it as a non-standard extension, but
strictly that should have been expressed using 'gnu::aligned'
instead of 'alignas'. Regardless of the syntax, however, GCC 15
has a regression causing it to reject alignment requests entirely
on template aliases.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118773
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
.../common/inc/internal/linux/sgx_random_buffers.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/QuoteGeneration/common/inc/internal/linux/sgx_random_buffers.h b/QuoteGeneration/common/inc/internal/linux/sgx_random_buffers.h
index 15fbdd42..4400544b 100644
--- a/QuoteGeneration/common/inc/internal/linux/sgx_random_buffers.h
+++ b/QuoteGeneration/common/inc/internal/linux/sgx_random_buffers.h
@@ -258,7 +258,11 @@ struct alignas(A)randomly_placed_buffer
}
template <unsigned C = 1>
+#if __GNUC__ == 15 && __GNUC_MINOR__ == 0
+ using storage = char[size(C)];
+#else
using storage = char[size(C)] alignas(A);
+#endif
private:
struct alignas(A)_T_instantiator_
--
2.52.0