Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
4776637
[microsoft/release-branch.go1.23] Update submodule for 1.23 (#1281)
dagood Jul 25, 2024
e4b8b7a
Update submodule to latest 1.23 (7adb0122058)
dagood Aug 5, 2024
ac45a57
Merge pull request #1291 from microsoft/dev/dagood/update/1.23
karianna Aug 6, 2024
2f5347f
Update submodule to latest release-branch.go1.23 (6885bad7): [release…
Aug 13, 2024
75989f9
Merge pull request #1298 from microsoft/dev/auto-sync/microsoft/relea…
Aug 13, 2024
2b7b084
Add an hour to all builder timeouts (#1300)
dagood Aug 14, 2024
2d9dad6
Update submodule to latest release-branch.go1.23 (69234ded): [release…
Sep 5, 2024
baf5c3b
Merge pull request #1310 from microsoft/dev/auto-sync/microsoft/relea…
dagood Sep 5, 2024
eb81e30
Update openssl to ms-go1.23-support, 17d05d3f692c (#1307)
dagood Sep 7, 2024
fed3174
Update openssl to ms-go1.23-support, 0a2f211a8f95
dagood Sep 9, 2024
1b471e1
Merge pull request #1313 from microsoft/dev/dagood/openssl-1.23
karianna Sep 9, 2024
a14aab4
Update submodule to latest release-branch.go1.23 (69234ded): [release…
Sep 10, 2024
7c6d7a6
Merge pull request #1316 from microsoft/dev/auto-sync/microsoft/relea…
Sep 10, 2024
4d37f6d
Update CNG backend to ms-go1.22-support b29b5cde7fdd (#1334)
dagood Sep 25, 2024
db2aeb4
Update submodule to latest release-branch.go1.23 (69234ded): [release…
Sep 25, 2024
adfc928
Merge pull request #1337 from microsoft/dev/auto-sync/microsoft/relea…
Sep 25, 2024
eb44a21
Update submodule to latest release-branch.go1.23 (ed07b321): [release…
Oct 1, 2024
fe8f574
Merge pull request #1343 from microsoft/dev/auto-sync/microsoft/relea…
Oct 1, 2024
adc145e
upgrade openssl
qmuntal Nov 7, 2024
4b504de
Update submodule to latest release-branch.go1.23 (c390a1c2): [release…
Nov 7, 2024
550d4d1
Merge pull request #1392 from microsoft/dev/auto-sync/microsoft/relea…
Nov 7, 2024
9a8b646
Merge pull request #1389 from microsoft/dev/qmuntal/go1.23-upgrade
qmuntal Nov 7, 2024
d5e4814
upgrade openssl backend to c5672cc7
qmuntal Nov 18, 2024
4db78bf
Merge pull request #1404 from microsoft/dev/qmuntal/go1-23-upgrade
qmuntal Nov 18, 2024
13c4b38
add Azure Linux 3 to CI pipelines
qmuntal Nov 18, 2024
760d62e
Merge pull request #1406 from microsoft/dev/qmuntal/go1.23-azl3ci
qmuntal Nov 18, 2024
6c3287b
support TLS 1.3 resumption with SymCrypt
qmuntal Nov 18, 2024
33d5fb2
fix missing import
qmuntal Nov 18, 2024
d44eb3f
Merge pull request #1408 from microsoft/dev/qmuntal/go1.23-hclone
qmuntal Nov 18, 2024
f5ec19b
Update submodule to latest release-branch.go1.23 (c390a1c2): [release…
Dec 2, 2024
bf6d6b5
Merge pull request #1423 from microsoft/dev/auto-sync/microsoft/relea…
Dec 2, 2024
8358dd5
Update submodule to latest release-branch.go1.23 (194de8fb): [release…
Dec 3, 2024
5fc5e31
Merge pull request #1426 from microsoft/dev/auto-sync/microsoft/relea…
Dec 3, 2024
ba8c270
Update submodule to latest release-branch.go1.23 (d04e3cbc): [release…
Jan 16, 2025
9d9ac32
Merge pull request #1502 from microsoft/dev/auto-sync/microsoft/relea…
Jan 16, 2025
d260b1f
Update submodule to latest release-branch.go1.23 (a991f9c3): [release…
Feb 4, 2025
873ffad
Merge pull request #1526 from microsoft/dev/auto-sync/microsoft/relea…
Feb 4, 2025
9a606bd
Add dotnet-public NuGet feed to Release Studio project
dagood Feb 5, 2025
f7e8c86
Merge pull request #1530 from microsoft/dev/dagood/fix-publish-1.23
karianna Feb 5, 2025
185c050
upgrade CNG backend (#1544)
qmuntal Feb 11, 2025
5344cff
Update submodule to latest release-branch.go1.23 (a991f9c3): [release…
Feb 11, 2025
1018b47
Merge pull request #1548 from microsoft/dev/auto-sync/microsoft/relea…
Feb 11, 2025
1323882
Fix single-feed error with Release Studio nuget.config (#1549)
dagood Feb 11, 2025
b8a310d
Fix Release Studio script gathering: stable target dir (#1550)
dagood Feb 12, 2025
13ea061
Merge pull request #1553 from microsoft/dev/dagood/single-feed-1.23
dagood Feb 12, 2025
6e1471a
Update submodule to latest release-branch.go1.23 (c01c4d41): [release…
Mar 4, 2025
5d01e28
Merge pull request #1576 from microsoft/dev/auto-sync/microsoft/relea…
Mar 4, 2025
8f3a49d
Update submodule to latest release-branch.go1.23 (7a2cfb70): [release…
bot-for-go[bot] Apr 1, 2025
02f00ea
Fix patch conflicts: clean 3-way am
dagood Apr 1, 2025
68b7d36
Merge pull request #1609 from microsoft/dev/auto-sync/microsoft/relea…
bot-for-go[bot] Apr 1, 2025
ac91b6d
Port CODEOWNERS to 1.23 for infra compatibility
dagood Apr 16, 2025
ef68c2a
Merge pull request #1642 from microsoft/dev/dagood/codeowners-1.23
karianna Apr 17, 2025
dd5c04b
Update submodule to latest release-branch.go1.23 (f77084d1): [release…
bot-for-go[bot] May 6, 2025
7f74aec
Merge pull request #1667 from microsoft/dev/auto-sync/microsoft/relea…
bot-for-go[bot] May 6, 2025
d66228c
Disable innerloop network isolation
dagood May 6, 2025
878dce0
Merge pull request #1669 from microsoft/dev/dagood/no-iso-1.23
karianna May 7, 2025
0b08711
Update submodule to latest release-branch.go1.23 (d375ae50): [release…
bot-for-go[bot] Jun 5, 2025
77b5e74
Merge pull request #1691 from microsoft/dev/auto-sync/microsoft/relea…
bot-for-go[bot] Jun 5, 2025
02944d0
[release-branch.go1.23] Support for excluding OS-disabled cipher suit…
qmuntal Jul 8, 2025
72213ae
Update submodule to latest release-branch.go1.23 (0a75dd7c): [release…
bot-for-go[bot] Jul 8, 2025
b619b95
Merge pull request #1730 from microsoft/dev/auto-sync/microsoft/relea…
bot-for-go[bot] Jul 8, 2025
1138130
Set supported TLS version based on Schannel cipher suites (#1755)
qmuntal Jul 18, 2025
6251e3b
remove curve prefix from Schannel cipher suite names (#1757)
qmuntal Jul 21, 2025
777c010
use correct TSA area path (#1760)
qmuntal Jul 21, 2025
d5eb039
make ms_tls_config_schannel no-op on Windows Server 2012 (#1768)
qmuntal Jul 23, 2025
4dffbdc
Update MS_TLS_Config_Schannel comments (#1770)
dagood Jul 23, 2025
76dc606
Update submodule to latest release-branch.go1.23 (dd8b7ad9): [release…
bot-for-go[bot] Aug 6, 2025
339d991
Add fix for TSAN "setarch: failed to set personality to x86_64"
dagood Aug 6, 2025
dd21137
Merge pull request #1809 from microsoft/dev/auto-sync/microsoft/relea…
bot-for-go[bot] Aug 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .config/tsa/tsaoptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"instanceUrl": "https://devdiv.visualstudio.com/",
"projectName": "DEVDIV",
"areaPath": "DevDiv\\NET Compilers\\GoLang",
"areaPath": "DevDiv\\GoLang",
"iterationPath": "DevDiv",
"allTools": true
}
15 changes: 8 additions & 7 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Require review from golang-compiler team for changes in any file. This keeps us in the loop on
# auto-merge PRs. The review bot is also an owner so that it can still trigger auto-merge for sync
# PRs on its own. We may remove this rule once auto-merges are routine.
* @microsoft/golang-compiler @microsoft-golang-review-bot
# Require review from golang-compiler team for changes in all files.

# Automatically request review from golang-compiler team for changes in the Microsoft-specific
# files. This takes precedence over earlier rules in the file.
/eng/ @microsoft/golang-compiler
* @microsoft/golang-compiler

# Don't assign a code owner to automatically updated files to allow GitHub apps to use the
# auto-merge flow without human intervention.
/go
/MICROSOFT_REVISION
/VERSION
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
go1.23.12
2 changes: 2 additions & 0 deletions eng/pipeline/pr-outerloop-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ resources:
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-1.0.20211027-20211201-0cccc22
- container: mariner1arm64
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-arm64-1.0-20220314-a003148
- container: azurelinux3
image: mcr.microsoft.com/microsoft-go/infra-images:azurelinux-3.0-amd64-default-20241024144202-a3a1203

stages:
- template: stages/go-builder-matrix-stages.yml
Expand Down
2 changes: 2 additions & 0 deletions eng/pipeline/pr-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ resources:
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-1.0.20211027-20211201-0cccc22
- container: mariner1arm64
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-arm64-1.0-20220314-a003148
- container: azurelinux3
image: mcr.microsoft.com/microsoft-go/infra-images:azurelinux-3.0-amd64-default-20241024144202-a3a1203

stages:
- template: stages/go-builder-matrix-stages.yml
Expand Down
6 changes: 6 additions & 0 deletions eng/pipeline/rolling-innerloop-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ resources:
extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
featureFlags:
# Network Isolation causes standard library DNS net tests on Windows to fail.
# See https://github.com/microsoft/go-lab/issues/206
disableNetworkIsolation: true
sdl:
sourceAnalysisPool:
name: NetCore1ESPool-Internal
Expand All @@ -44,6 +48,8 @@ extends:
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-1.0.20211027-20211201-0cccc22
mariner1arm64:
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-arm64-1.0-20220314-a003148
azurelinux3:
image: mcr.microsoft.com/microsoft-go/infra-images:azurelinux-3.0-amd64-default-20241024144202-a3a1203

stages:
- template: stages/go-builder-matrix-stages.yml
Expand Down
2 changes: 2 additions & 0 deletions eng/pipeline/rolling-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ extends:
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-1.0.20211027-20211201-0cccc22
mariner1arm64:
image: golangpublicimages.azurecr.io/go-infra-images/prereqs:cbl-mariner-arm64-1.0-20220314-a003148
azurelinux3:
image: mcr.microsoft.com/microsoft-go/infra-images:azurelinux-3.0-amd64-default-20241024144202-a3a1203

stages:
- template: stages/go-builder-matrix-stages.yml
Expand Down
2 changes: 1 addition & 1 deletion eng/pipeline/stages/builders-to-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This template expands a list of builders into a list of jobs.

parameters:
# [] of { id, os, arch, hostarch, config, distro?, experiment? }
# [] of { id, os, arch, hostarch, config, distro?, experiment?, broken? }
builders: []
# If true, include a signing stage+job that depends on all 'buildandpack' builder jobs finishing.
sign: false
Expand Down
3 changes: 3 additions & 0 deletions eng/pipeline/stages/go-builder-matrix-stages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@ stages:
- { os: linux, arch: amd64, config: devscript }
- { os: linux, arch: amd64, config: test }
- { os: linux, arch: amd64, config: test, distro: ubuntu }
- { os: linux, arch: amd64, config: test, distro: azurelinux3 }
- { experiment: opensslcrypto, os: linux, arch: amd64, config: test }
- { experiment: opensslcrypto, os: linux, arch: amd64, config: test, fips: true }
- { experiment: opensslcrypto, os: linux, arch: amd64, config: test, distro: ubuntu }
- { experiment: opensslcrypto, os: linux, arch: amd64, config: test, distro: azurelinux3, broken: true }
- { experiment: boringcrypto, os: linux, arch: amd64, config: test }
- { experiment: boringcrypto, os: linux, arch: amd64, config: test, distro: ubuntu }
- { os: windows, arch: amd64, config: devscript }
- { os: windows, arch: amd64, config: test }
- { experiment: ms_tls_config_schannel, os: windows, arch: amd64, config: test }
- { experiment: cngcrypto, os: windows, arch: amd64, config: test }
- { experiment: cngcrypto, os: windows, arch: amd64, config: test, fips: true }
# Test that buildandpack works on Windows x86-32, but don't release it.
Expand Down
3 changes: 2 additions & 1 deletion eng/pipeline/stages/public-publish-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ stages:
- name: GoBinariesDir
value: $(Pipeline.Workspace)/Binaries Signed
- name: NetCorePublishingScripts
value: $(Build.SourcesDirectory)/eng/release-studio/bin/Debug/net7.0/MsGoPublishingScripts
value: $(Build.SourcesDirectory)/eng/release-studio/bin/MsGoPublishingScripts

# This is read directly by release studio scripts through env.
- name: RMExecutionEnvironment
Expand All @@ -70,6 +70,7 @@ stages:
projects: '$(Build.SourcesDirectory)/eng/release-studio/ReleaseStudio.csproj'
custom: build
arguments: >-
/p:NetCorePublishingScripts=$(NetCorePublishingScripts)
/bl:eng/release-studio/Build.binlog
/v:n

Expand Down
15 changes: 11 additions & 4 deletions eng/pipeline/stages/run-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# This job runs a builder for any OS.

parameters:
# { id, os, arch, hostArch, config, distro?, experiment?, fips? }
# { id, os, arch, hostArch, config, distro?, experiment?, fips?, broken? }
- name: builder
type: object

Expand Down Expand Up @@ -57,10 +57,12 @@ stages:
# longtest has been seen to succeed after 53 minutes. Give around 3x headroom. In the future,
# we should also give the tests a shorter timeout to make sure this doesn't balloon too far:
# https://github.com/microsoft/go/issues/568
timeoutInMinutes: 180
${{ if startsWith(parameters.builder.config, 'codeql') }}:
timeoutInMinutes: 240
${{ elseif startsWith(parameters.builder.config, 'codeql') }}:
# Allow CodeQL to take a while. https://eng.ms/docs/cloud-ai-platform/devdiv/one-engineering-system-1es/1es-docs/codeql/configuring-codeql3000-ado-pipelines#other-issues
timeoutInMinutes: 360
timeoutInMinutes: 420
${{ else }}:
timeoutInMinutes: 120

pool: ${{ parameters.pool }}

Expand All @@ -69,6 +71,8 @@ stages:
${{ if eq(parameters.builder.hostArch, 'amd64') }}:
${{ if eq(parameters.builder.distro, 'ubuntu') }}:
container: ubuntu2204
${{ elseif eq(parameters.builder.distro, 'azurelinux3') }}:
container: azurelinux3
${{ else }}:
container: mariner1
${{ elseif eq(parameters.builder.hostArch, 'arm64') }}:
Expand Down Expand Up @@ -264,6 +268,9 @@ stages:
condition: and(ne(variables['TEST_BUILDER_SUCCESSFUL'], 'true'), succeeded())
${{ if ne(attempt, 'FINAL') }}:
ignoreLASTEXITCODE: true
${{ elseif eq(parameters.builder.broken, true) }}:
# Don't fail the job if we are at the last retry and the builder is marked as broken.
continueOnError: true

# - ${{ if eq(parameters.builder.config, 'buildandpack' ) }}:
# - ${{ if ne(parameters.releaseVersion, 'nil') }}:
Expand Down
4 changes: 2 additions & 2 deletions eng/pipeline/stages/shorthand-builders-to-builders.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
# to be used by template expressions, as of writing.

parameters:
# [] of { os, arch, hostArch, config, distro?, experiment? }
# [] of { os, arch, hostArch, config, distro?, experiment?, broken? }
# If hostArch is not defined, defaults to the arch value.
# The job ID is generated based on these values.
shorthandBuilders: []
# The inner jobs template to pass the filed-out builders into.
#
# It should accept parameter "builders", [] of { id, os, arch, hostArch, config, distro?, fips? }
# It should accept parameter "builders", [] of { id, os, arch, hostArch, config, distro?, fips?, broken? }
jobsTemplate: ""
jobsParameters: {}

Expand Down
2 changes: 1 addition & 1 deletion eng/pipeline/stages/sign-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# publishes the signed files and signatures into a consolidated pipeline artifact.

parameters:
# [] of { id, os, arch, config, distro?, experiment? }
# [] of { id, os, arch, config, distro?, experiment?, broken? }
builders: []

stages:
Expand Down
1 change: 1 addition & 0 deletions eng/release-studio/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<configuration>
<packageSources>
<clear />
<!-- Only one feed is allowed. https://aka.ms/cfs/nuget -->
<add key="MicroBuildToolset" value="https://pkgs.dev.azure.com/dnceng/_packaging/MicroBuildToolset/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
Expand Down
29 changes: 28 additions & 1 deletion eng/release-studio/ReleaseStudio.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,38 @@

<!-- Minimal info for '.csproj' to work. -->
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<!--
We only have a single NuGet feed, and that feed doesn't have any targeting
packs (Microsoft.NETCore.App.Ref, Microsoft.WindowsDesktop.App.Ref, and
Microsoft.AspNetCore.App.Ref). To avoid downloading any targeting packs,
we need the Target Framework to match the .NET SDK exactly. The SDK may be
upgraded without our knowledge, so a hard-coded version is fragile. Use
BundledNETCoreAppTargetFrameworkVersion to be flexible.

We aren't actually building an app anyway, we just need the RM package.
-->
<TargetFramework>net$(BundledNETCoreAppTargetFrameworkVersion)</TargetFramework>

<!-- Default value for simple local repro. -->
<MsGoPublishingScripts>$(MSBuildThisFileDirectory)bin\MsGoPublishingScripts</MsGoPublishingScripts>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="DevDiv.RM.MS.Go.Publishing" Version="20240703.4.0" />
</ItemGroup>

<!--
The scripts end up in a dir with Debug/Release and TargetFramework in the
path, which we don't want to rely on. So, copy them to a known place too.
Use the ScriptFilesToCopy items gathered by MsGoPublishingScriptsCopy.
-->
<Target
Name="CopyPublishingScriptsToStableLocation"
AfterTargets="MsGoPublishingScriptsCopy">

<Copy
SourceFiles="@(ScriptFilesToCopy)"
DestinationFolder="$([MSBuild]::NormalizeDirectory('$(MsGoPublishingScripts)', '%(RecursiveDir)'))" />
</Target>

</Project>
1 change: 1 addition & 0 deletions eng/signing/NuGet.config
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<configuration>
<packageSources>
<clear />
<!-- Multiple feeds are allowed, but only because they are both in dnceng/public. -->
<add key="dotnet-eng" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-eng/nuget/v3/index.json" />
<add key="dotnet-public" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public/nuget/v3/index.json" />
</packageSources>
Expand Down
2 changes: 1 addition & 1 deletion go
Submodule go updated 209 files
31 changes: 30 additions & 1 deletion patches/0002-Add-crypto-backend-foundation.patch
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,15 @@ Subject: [PATCH] Add crypto backend foundation
src/crypto/tls/cipher_suites.go | 2 +-
src/crypto/tls/handshake_client.go | 25 ++-
src/crypto/tls/handshake_server.go | 25 ++-
src/crypto/tls/handshake_server_tls13.go | 10 +
src/crypto/tls/key_schedule.go | 18 +-
src/crypto/tls/prf.go | 77 +++++---
src/crypto/tls/prf_test.go | 12 +-
src/crypto/x509/boring_test.go | 5 +
src/go/build/deps_test.go | 4 +
src/net/smtp/smtp_test.go | 72 ++++---
src/runtime/runtime_boring.go | 5 +
51 files changed, 764 insertions(+), 93 deletions(-)
52 files changed, 774 insertions(+), 93 deletions(-)
create mode 100644 src/crypto/ed25519/boring.go
create mode 100644 src/crypto/ed25519/notboring.go
create mode 100644 src/crypto/internal/backend/backend_test.go
Expand Down Expand Up @@ -1338,6 +1339,34 @@ index ac3d915d1746d7..631db82b9ab3ae 100644
if _, err := hs.c.writeHandshakeRecord(finished, &hs.finishedHash); err != nil {
return err
}
diff --git a/src/crypto/tls/handshake_server_tls13.go b/src/crypto/tls/handshake_server_tls13.go
index 503a732e05765e..53dfce967b3c2a 100644
--- a/src/crypto/tls/handshake_server_tls13.go
+++ b/src/crypto/tls/handshake_server_tls13.go
@@ -10,6 +10,7 @@ import (
"crypto"
"crypto/hmac"
"crypto/internal/mlkem768"
+ boring "crypto/internal/backend"
"crypto/rsa"
"errors"
"hash"
@@ -435,6 +436,15 @@ func (hs *serverHandshakeStateTLS13) checkForResumption() error {
// interfaces implemented by standard library hashes to clone the state of in
// to a new instance of h. It returns nil if the operation fails.
func cloneHash(in hash.Hash, h crypto.Hash) hash.Hash {
+ if boring.Enabled {
+ // CNG and OpenSSL with SymCrypt hash functions do not implement the
+ // encoding.BinaryMarshaler interface, but they do implement the Clone method.
+ if cloner, ok := in.(interface{ Clone() (hash.Hash, error) }); ok {
+ if out, err := cloner.Clone(); err == nil {
+ return out
+ }
+ }
+ }
// Recreate the interface to avoid importing encoding.
type binaryMarshaler interface {
MarshalBinary() (data []byte, err error)
diff --git a/src/crypto/tls/key_schedule.go b/src/crypto/tls/key_schedule.go
index 1636baf79e7288..c9a5877d3d504f 100644
--- a/src/crypto/tls/key_schedule.go
Expand Down
28 changes: 14 additions & 14 deletions patches/0004-Add-OpenSSL-crypto-backend.patch
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ index f0e3575637c62a..0e9aceeb832d3b 100644
package main

diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go
index d7cbadf7b17aef..61685c5359bfde 100644
index 0ffcabe4164af6..056f3ea5ae9beb 100644
--- a/src/cmd/dist/test.go
+++ b/src/cmd/dist/test.go
@@ -1238,12 +1238,11 @@ func (t *tester) registerCgoTests(heading string) {
@@ -1225,12 +1225,11 @@ func (t *tester) registerCgoTests(heading string) {
// a C linker warning on Linux.
// in function `bio_ip_and_port_to_socket_and_addr':
// warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Expand Down Expand Up @@ -108,7 +108,7 @@ index 4aaf46b5d0f0dc..6fe798cf4a94e9 100644

go list -f '{{.Dir}}' vendor/golang.org/x/net/http2/hpack
diff --git a/src/cmd/link/internal/ld/lib.go b/src/cmd/link/internal/ld/lib.go
index 755c889585e729..bcb591a380b74c 100644
index d66027387b97f8..8e4dfab49f6b6b 100644
--- a/src/cmd/link/internal/ld/lib.go
+++ b/src/cmd/link/internal/ld/lib.go
@@ -1162,6 +1162,7 @@ var hostobj []Hostobj
Expand Down Expand Up @@ -714,29 +714,29 @@ index c83a7272c9f01f..a0548a7f9179c5 100644
package x509

diff --git a/src/go.mod b/src/go.mod
index b38dee7e6ddc28..097f35ca01aa5b 100644
index 96513ccfc92eab..70a4909e7b7bc1 100644
--- a/src/go.mod
+++ b/src/go.mod
@@ -3,6 +3,7 @@ module std
go 1.23

require (
+ github.com/golang-fips/openssl/v2 v2.0.3
+ github.com/golang-fips/openssl/v2 v2.0.4-0.20241114123251-c5672cc7ce15
golang.org/x/crypto v0.23.1-0.20240603234054-0b431c7de36a
golang.org/x/net v0.25.1-0.20240603202750-6249541f2a6c
golang.org/x/net v0.25.1-0.20250304182835-b70a9e3eaa27
)
diff --git a/src/go.sum b/src/go.sum
index c5eab7d4b2f93b..fac8a0626146bc 100644
index 7d2f0b01d502fb..b7b1b65177e1b4 100644
--- a/src/go.sum
+++ b/src/go.sum
@@ -1,3 +1,5 @@
+github.com/golang-fips/openssl/v2 v2.0.3 h1:9+J2R0BQio6Jz8+dPZf/0ylISByl0gZWjTEKm+J+y7Y=
+github.com/golang-fips/openssl/v2 v2.0.3/go.mod h1:7tuBqX2Zov8Yq5mJ2yzlKhpnxOnWyEzi38AzeWRuQdg=
+github.com/golang-fips/openssl/v2 v2.0.4-0.20241114123251-c5672cc7ce15 h1:6Mb55x7RlLVNEPY6liVYeVTMR5FuZqHViyyrr7tih7A=
+github.com/golang-fips/openssl/v2 v2.0.4-0.20241114123251-c5672cc7ce15/go.mod h1:7tuBqX2Zov8Yq5mJ2yzlKhpnxOnWyEzi38AzeWRuQdg=
golang.org/x/crypto v0.23.1-0.20240603234054-0b431c7de36a h1:37MIv+iGfwMYzWJECGyrPCtd5nuqcciRUeJfkNCkCf0=
golang.org/x/crypto v0.23.1-0.20240603234054-0b431c7de36a/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8=
golang.org/x/net v0.25.1-0.20240603202750-6249541f2a6c h1:CR/7/SLUhIJw6g675eeoDiwggElO2MV9rGkNYjqi8GM=
golang.org/x/net v0.25.1-0.20250304182835-b70a9e3eaa27 h1:BLroQt2NWk69+mgdbJFxbd1Y6nc8r9UCc/iPQ0FgpNs=
diff --git a/src/go/build/deps_test.go b/src/go/build/deps_test.go
index 68d3b0578d18b1..15f4bb124b8528 100644
index 6eea04ef9269af..4bf45495afa19b 100644
--- a/src/go/build/deps_test.go
+++ b/src/go/build/deps_test.go
@@ -459,6 +459,8 @@ var depsRules = `
Expand All @@ -756,7 +756,7 @@ index 68d3b0578d18b1..15f4bb124b8528 100644
< crypto/internal/boring/bbig
< crypto/internal/backend/bbig
< crypto/rand
@@ -793,7 +796,7 @@ var buildIgnore = []byte("\n//go:build ignore")
@@ -796,7 +799,7 @@ var buildIgnore = []byte("\n//go:build ignore")

func findImports(pkg string) ([]string, error) {
vpkg := pkg
Expand All @@ -765,7 +765,7 @@ index 68d3b0578d18b1..15f4bb124b8528 100644
vpkg = "vendor/" + pkg
}
dir := filepath.Join(Default.GOROOT, "src", vpkg)
@@ -803,7 +806,7 @@ func findImports(pkg string) ([]string, error) {
@@ -806,7 +809,7 @@ func findImports(pkg string) ([]string, error) {
}
var imports []string
var haveImport = map[string]bool{}
Expand Down Expand Up @@ -829,7 +829,7 @@ index 777337d92d3c72..ef00871d619651 100644
// SystemCrypto enables the OpenSSL or CNG crypto experiment depending on
// which one is appropriate on the target GOOS.
diff --git a/src/os/exec/exec_test.go b/src/os/exec/exec_test.go
index dbe59fea119e70..c3df1f9ac49b82 100644
index a0bb89e203ddf1..2b4a2680dcdd7e 100644
--- a/src/os/exec/exec_test.go
+++ b/src/os/exec/exec_test.go
@@ -14,6 +14,7 @@ import (
Expand Down
Loading