From 0f04543bb5b14b9c1afcff69bbae1238840eb1be Mon Sep 17 00:00:00 2001 From: dbenoit Date: Wed, 10 Jun 2026 08:24:38 -0400 Subject: [PATCH] Update to Go 1.26.4 (fips-1) Resolves: RHEL-183352 --- .gitignore | 2 ++ golang.spec | 14 +++++++++----- revert_dwarf5.patch | 35 ++++++++++------------------------- sources | 4 ++-- 4 files changed, 23 insertions(+), 32 deletions(-) diff --git a/.gitignore b/.gitignore index 34d5874..e9062f8 100644 --- a/.gitignore +++ b/.gitignore @@ -112,3 +112,5 @@ /go1.25.9-2-openssl-fips.tar.gz /go1.25.10.tar.gz /go1.25.10-1-openssl-fips.tar.gz +/go1.26.4.tar.gz +/go1.26.4-1-openssl-fips.tar.gz diff --git a/golang.spec b/golang.spec index 09fcf18..3157d05 100644 --- a/golang.spec +++ b/golang.spec @@ -92,8 +92,8 @@ %global gohostarch s390x %endif -%global go_api 1.25 -%global go_version 1.25.10 +%global go_api 1.26 +%global go_version 1.26.4 %global version %{go_version} %global pkg_release 1 @@ -506,9 +506,9 @@ export GOLANG_FIPS=1 export OPENSSL_FORCE_FIPS_MODE=1 pushd crypto # Run all crypto tests but skip TLS, we will run FIPS specific TLS tests later - go test -timeout 50m $(go list ./... | grep -v tls) -v -skip="TestEd25519Vectors|TestACVP" - # Check that signature functions have parity between boring and notboring - CGO_ENABLED=0 go test -timeout 50m $(go list ./... | grep -v tls) -v -skip="TestEd25519Vectors|TestACVP" + go test $(go list ./... | grep -v tls) -v -skip="TestEd25519Vectors|TestACVP|TestGCMNoncesFIPSV126|TestGCMNoncesFIPSV1|TestWithoutEnforcement|TestCASTPasses|TestCASTFailures|TestIntegrityCheck|TestBetterTLS" + # check that signature functions have parity between boring and notboring + CGO_ENABLED=0 go test $(go list ./... | grep -v tls) -v -skip="TestEd25519Vectors|TestACVP|TestGCMNoncesFIPSV126|TestGCMNoncesFIPSV1|TestWithoutEnforcement|TestCASTPasses|TestCASTFailures|TestIntegrityCheck|TestBetterTLS" popd # Run all FIPS specific TLS tests pushd crypto/tls @@ -587,6 +587,10 @@ cd .. %endif %changelog +* Wed Jun 10 2026 dbenoit - 1.26.4-1 +- Update to Go 1.26.4 (fips-1) +- Resolves: RHEL-183352 + * Tue May 12 2026 dbenoit - 1.25.10-1 - Update to Go 1.25.10 (fips-1) - Resolves: RHEL-175610 diff --git a/revert_dwarf5.patch b/revert_dwarf5.patch index 80a58bb..939c7eb 100644 --- a/revert_dwarf5.patch +++ b/revert_dwarf5.patch @@ -1,17 +1,8 @@ -From e90ae9076a108b83c645814f75a574c14a5a4b98 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Alejandro=20S=C3=A1ez?= -Date: Wed, 27 Aug 2025 16:18:09 +0200 -Subject: [PATCH] Revert DWARF5 as default, use DWARF4 - ---- - src/internal/buildcfg/exp.go | 13 +------------ - 1 file changed, 1 insertion(+), 12 deletions(-) - diff --git a/src/internal/buildcfg/exp.go b/src/internal/buildcfg/exp.go -index 689ca8ce58..b2ea97481b 100644 +index aa41986..f1a8ba8 100644 --- a/src/internal/buildcfg/exp.go +++ b/src/internal/buildcfg/exp.go -@@ -67,24 +67,13 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { +@@ -69,21 +69,11 @@ func ParseGOEXPERIMENT(goos, goarch, goexp string) (*ExperimentFlags, error) { regabiSupported = true } @@ -25,18 +16,12 @@ index 689ca8ce58..b2ea97481b 100644 - // support the necessary section subtypes for DWARF-specific - // things like .debug_addr (needed for DWARF 5). - dwarf5Supported := (goos != "darwin" && goos != "ios" && goos != "aix") -- - baseline := goexperiment.Flags{ - RegabiWrappers: regabiSupported, - RegabiArgs: regabiSupported, - AliasTypeParams: true, - SwissMap: true, - SyncHashTrieMap: true, -- Dwarf5: dwarf5Supported, -+ Dwarf5: false, - } - // Start with the statically enabled set of experiments. --- -2.51.0 - + baseline := goexperiment.Flags{ + RegabiWrappers: regabiSupported, + RegabiArgs: regabiSupported, +- Dwarf5: dwarf5Supported, ++ Dwarf5: false, + RandomizedHeapBase64: true, + GreenTeaGC: true, + } diff --git a/sources b/sources index f32fb2a..f55b00e 100644 --- a/sources +++ b/sources @@ -1,3 +1,3 @@ -SHA512 (go1.25.10.tar.gz) = 7feaedc8014db7049cbf36eee3d24dd3f99f7db8e11d776a28a7be84a7cd233ee533963e61465aada16762b937df6ade0c7e140d250d88efa6d8bc2d53c53d1e -SHA512 (go1.25.10-1-openssl-fips.tar.gz) = 1ef950fc3100a4dd909c24e6faaa1089a7867a482a952c9bdbdfdb75a990784415aa69e3d932a0cfc11e035a0ae4f40042765c76e73fad9edc78c413a92e2ae8 +SHA512 (go1.26.4.tar.gz) = f11d666cb7b15ca7ad4ab85c4e2ea219015448ae10ce5d1d6524542d5646e6618e3e67dc5a3a97fe2f282b5cd16c0e6bcbe54cc5e15d3075637d19fb8c19a53e +SHA512 (go1.26.4-1-openssl-fips.tar.gz) = 2ae8a87cf0202aae26713d4bbfca4adb4b01331948f8d4f6c22372eae5e01513466dd332c2419679a53329ced719cab59935f3be9fc42d1f2033e953ded9060a SHA512 (compiler-rt-18.1.8.src.tar.xz) = fb8795bd51c9b005c2ad1975591e9e2715740d6407ccad41379f136ef2e8d24ded8b97b01165a3ae4bd377119a6a1049ca05d3220404fc12bee86114ff2bff0d