From: Filippo Valsorda Date: Wed, 1 Jan 2025 14:08:28 +0000 (+0100) Subject: crypto/internal/fips140: mark OpenBSD unsupported X-Git-Tag: go1.24rc2~6^2~21 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=31cabcf08429be71299975f7961822d26f8ea389;p=gostls13.git crypto/internal/fips140: mark OpenBSD unsupported Since OpenBSD 7.3, external linking uses -fexecute-only, which breaks the integrity check. Since we are not validating on OpenBSD anyway, mark it as unsupported at least for now. Fixes #70880 Change-Id: I6a6a4656b6c7a97c0962b4158d920f9e6b19678e Reviewed-on: https://go-review.googlesource.com/c/go/+/639337 Auto-Submit: Filippo Valsorda Reviewed-by: Daniel McCarney Reviewed-by: Roland Shoemaker Reviewed-by: Dmitri Shuralyov Reviewed-by: Joel Sing Reviewed-by: صادق LUCI-TryBot-Result: Go LUCI --- diff --git a/src/cmd/dist/test.go b/src/cmd/dist/test.go index bfed14c915..0c992118f4 100644 --- a/src/cmd/dist/test.go +++ b/src/cmd/dist/test.go @@ -1812,6 +1812,7 @@ func (t *tester) fipsSupported() bool { case goarch == "wasm", goos == "windows" && goarch == "386", goos == "windows" && goarch == "arm", + goos == "openbsd", goos == "aix": return false } diff --git a/src/crypto/internal/fips140/fips140.go b/src/crypto/internal/fips140/fips140.go index cf015db644..c7b167b82a 100644 --- a/src/crypto/internal/fips140/fips140.go +++ b/src/crypto/internal/fips140/fips140.go @@ -46,6 +46,7 @@ func Supported() error { case runtime.GOARCH == "wasm", runtime.GOOS == "windows" && runtime.GOARCH == "386", runtime.GOOS == "windows" && runtime.GOARCH == "arm", + runtime.GOOS == "openbsd", // due to -fexecute-only, see #70880 runtime.GOOS == "aix": return errors.New("FIPS 140-3 mode is not supported on " + runtime.GOOS + "-" + runtime.GOARCH) }