|
|
@ -1,14 +1,17 @@
|
|
|
|
FIPS related options cause a segfault, let's end sooner
|
|
|
|
From b9370dcfba759c63e894f12abcf49699f1e8f0dc Mon Sep 17 00:00:00 2001
|
|
|
|
|
|
|
|
From: Honza Horak <hhorak@redhat.com>
|
|
|
|
|
|
|
|
Date: Thu, 12 Oct 2023 13:52:59 +0200
|
|
|
|
|
|
|
|
Subject: [PATCH] disable fips options
|
|
|
|
|
|
|
|
|
|
|
|
Upstream report: https://github.com/nodejs/node/pull/48950
|
|
|
|
Signed-off-by: rpm-build <rpm-build>
|
|
|
|
RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=2227796
|
|
|
|
---
|
|
|
|
|
|
|
|
src/crypto/crypto_util.cc | 2 ++
|
|
|
|
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
|
|
|
|
This patch makes the part of the code that processes cmd-line options for
|
|
|
|
diff --git a/src/crypto/crypto_util.cc b/src/crypto/crypto_util.cc
|
|
|
|
FIPS to end sooner before the code gets to the problematic part of the code.
|
|
|
|
index 59ae7f8..7343396 100644
|
|
|
|
|
|
|
|
--- a/src/crypto/crypto_util.cc
|
|
|
|
diff -up node-v18.16.1/src/crypto/crypto_util.cc.origfips node-v18.16.1/src/crypto/crypto_util.cc
|
|
|
|
+++ b/src/crypto/crypto_util.cc
|
|
|
|
--- node-v18.16.1/src/crypto/crypto_util.cc.origfips 2023-07-31 12:09:46.603683081 +0200
|
|
|
|
|
|
|
|
+++ node-v18.16.1/src/crypto/crypto_util.cc 2023-07-31 12:16:16.906617914 +0200
|
|
|
|
|
|
|
|
@@ -111,6 +111,8 @@ bool ProcessFipsOptions() {
|
|
|
|
@@ -111,6 +111,8 @@ bool ProcessFipsOptions() {
|
|
|
|
/* Override FIPS settings in configuration file, if needed. */
|
|
|
|
/* Override FIPS settings in configuration file, if needed. */
|
|
|
|
if (per_process::cli_options->enable_fips_crypto ||
|
|
|
|
if (per_process::cli_options->enable_fips_crypto ||
|
|
|
@ -18,3 +21,6 @@ diff -up node-v18.16.1/src/crypto/crypto_util.cc.origfips node-v18.16.1/src/cryp
|
|
|
|
#if OPENSSL_VERSION_MAJOR >= 3
|
|
|
|
#if OPENSSL_VERSION_MAJOR >= 3
|
|
|
|
OSSL_PROVIDER* fips_provider = OSSL_PROVIDER_load(nullptr, "fips");
|
|
|
|
OSSL_PROVIDER* fips_provider = OSSL_PROVIDER_load(nullptr, "fips");
|
|
|
|
if (fips_provider == nullptr)
|
|
|
|
if (fips_provider == nullptr)
|
|
|
|
|
|
|
|
--
|
|
|
|
|
|
|
|
2.41.0
|
|
|
|
|
|
|
|
|