RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2136792 - GOLANG_FIPS=1 go get fails with "panic: crypto/elliptic: attempted operation on invalid point" on s390x [rhel-8.8]
Summary: GOLANG_FIPS=1 go get fails with "panic: crypto/elliptic: attempted operation ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: golang
Version: 8.8
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: David Benoit
QA Contact: Edjunior Barbosa Machado
URL:
Whiteboard:
Depends On:
Blocks: 2137763
TreeView+ depends on / blocked
 
Reported: 2022-10-21 10:47 UTC by Edjunior Barbosa Machado
Modified: 2023-09-08 14:12 UTC (History)
4 users (show)

Fixed In Version: go-toolset-rhel8-8080020230627164522.6b4b45d8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2137763 (view as bug list)
Environment:
Last Closed: 2023-09-08 14:12:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-137279 0 None None None 2022-10-21 11:47:22 UTC

Description Edjunior Barbosa Machado 2022-10-21 10:47:20 UTC
After fixing bug #2132694, 'GOLANG_FIPS=1 go get ...'  is now failing with panic on s390x only:

[root@s390x-kvm-055 tmp.eiWXO3QkTw]# GOLANG_FIPS=1 go get golang.org/x/net/html
panic: crypto/elliptic: attempted operation on invalid point

goroutine 37 [running]:
crypto/elliptic.panicIfNotOnCurve({0x17f1960, 0x1a9b310}, 0xc00006ee20, 0xc00006ee40)
	/usr/lib/golang/src/crypto/elliptic/elliptic.go:182 +0xee
crypto/elliptic.Marshal({0x17f1960, 0x1a9b310}, 0xc00006ee20, 0xc00006ee40)
	/usr/lib/golang/src/crypto/elliptic/elliptic.go:75 +0x42
crypto/tls.(*nistParameters).PublicKey(0xc0001311a0)
	/usr/lib/golang/src/crypto/tls/key_schedule.go:195 +0x62
crypto/tls.(*Conn).makeClientHello(0xc000121500)
	/usr/lib/golang/src/crypto/tls/handshake_client.go:146 +0xf3a
crypto/tls.(*Conn).clientHandshake(0xc000121500, {0x17f0718, 0xc0001384c0})
	/usr/lib/golang/src/crypto/tls/handshake_client.go:161 +0x90
crypto/tls.(*Conn).handshakeContext(0xc000121500, {0x17f0750, 0xc0000240b0})
	/usr/lib/golang/src/crypto/tls/conn.go:1462 +0x37c
crypto/tls.(*Conn).HandshakeContext(...)
	/usr/lib/golang/src/crypto/tls/conn.go:1405
net/http.(*persistConn).addTLS.func2()
	/usr/lib/golang/src/net/http/transport.go:1538 +0x9e
created by net/http.(*persistConn).addTLS
	/usr/lib/golang/src/net/http/transport.go:1534 +0x3dc
[root@s390x-kvm-055 ~]# rpm -qa golang

Like on previous bug, 'go get' works as expected when GOLANG_FIPS is not set:

[root@s390x-kvm-055 tmp.xILskNmDbj]# GOLANG_FIPS= go get -v golang.org/x/net/html
go: downloading golang.org/x/net v0.1.0
go: added golang.org/x/net v0.1.0

Version-Release number of selected component (if applicable):
go-toolset:rhel8:8080020221018192211:17f3f959
golang-1.19.2-3.module+el8.8.0+16972+3559a6f8.s390x
RHEL-8.8.0-20221017.2


Note You need to log in before you can comment on or make changes to this bug.