Bug 1987972 - Go programs broken in Fedora 33 ppc64le after kernel v5.13 upgrade
Summary: Go programs broken in Fedora 33 ppc64le after kernel v5.13 upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 33
Hardware: ppc64le
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PPCTracker
TreeView+ depends on / blocked
 
Reported: 2021-07-29 17:24 UTC by Murilo Opsfelder Araújo
Modified: 2021-08-10 01:06 UTC (History)
27 users (show)

Fixed In Version: kernel-5.13.8-200.fc34 kernel-5.13.8-100.fc33
Clone Of:
Environment:
Last Closed: 2021-08-09 00:59:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Murilo Opsfelder Araújo 2021-07-29 17:24:52 UTC
1. Please describe the problem:

Go programs built by Go1.16.x are broken in Fedora >= 33 for ppc64le as of kernel v5.13 upgrade.

Fedora kernel needs to backport this fix[0] in order to make Go programs work again with Linux kernel >= v5.13 on ppc64le.

[0] https://lore.kernel.org/linuxppc-dev/20210729131244.2595519-1-mpe@ellerman.id.au/

2. What is the Version-Release number of the kernel:

kernel-5.13.4-100.fc33.ppc64le

3. Did it work previously in Fedora? If so, what kernel version did the issue
   *first* appear?  Old kernels are available for download at
   https://koji.fedoraproject.org/koji/packageinfo?packageID=8 :

kernel-5.13.4-100.fc33.ppc64le

4. Can you reproduce this issue? If so, please provide the steps to reproduce
   the issue below:

Upgrade Fedora 33 to kernel-5.13.4-100.fc33.ppc64le and then try to run any Go program.  For example:

$ sudo dnf -y install golang

$ cat << "EOF" > hello.go
package main
import "fmt"
func main() {
    fmt.Println("hello world")
}
EOF

$ go run hello.go
/usr/lib/golang/pkg/tool/linux_ppc64le/link: signal: segmentation fault (core dumped)

5. Does this problem occur with the latest Rawhide kernel? To install the
   Rawhide kernel, run ``sudo dnf install fedora-repos-rawhide`` followed by
   ``sudo dnf update --enablerepo=rawhide kernel``:

Yes.

6. Are you running any modules that not shipped with directly Fedora's kernel?:

No.

7. Please attach the kernel logs. You can get the complete kernel log
   for a boot with ``journalctl --no-hostname -k > dmesg.txt``. If the
   issue occurred on a previous boot, use the journalctl ``-b`` flag.

Comment 1 Dan Horák 2021-07-29 17:51:10 UTC
If it's the same issue, then there is also a golang complement to the the kernel fix, adding Jakub to CC.

Comment 2 Jakub Čajka 2021-07-30 08:42:29 UTC
For the record, there is Go side fix available https://github.com/golang/go/issues/46803. But if there would be way to fix this issue on the kernel side I would say that it would be preferable as if this issue will be wide spread(and by picking up kernel 5.13+ for f34/33 I assume it will), it would warrant rebuild of all Go packages in f33, f34, f35 and rawhide to properly fix it. For the record the mentioned Go backport is now available in rawhide(https://bodhi.fedoraproject.org/updates/FEDORA-2021-7b46cb8228) and f34(https://bodhi.fedoraproject.org/updates/FEDORA-2021-f1ddfc1081 , just added buildroot override). I'm about to pick it up for f33. CC'ing more Go folks.

Comment 3 Fedora Update System 2021-08-05 12:01:58 UTC
FEDORA-2021-4d4d3866ca has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d4d3866ca

Comment 4 Fedora Update System 2021-08-05 12:02:05 UTC
FEDORA-2021-54ee631709 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-54ee631709

Comment 5 Murilo Opsfelder Araújo 2021-08-05 15:00:14 UTC
The kernel 5.13.8-100.fc33.ppc64le from advisory FEDORA-2021-54ee631709 fixed the issue for Fedora 33.

Comment 6 Fedora Update System 2021-08-07 01:35:22 UTC
FEDORA-2021-54ee631709 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-54ee631709`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-54ee631709

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2021-08-07 14:10:55 UTC
FEDORA-2021-4d4d3866ca has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4d4d3866ca`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d4d3866ca

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-08-09 00:59:58 UTC
FEDORA-2021-4d4d3866ca has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 9 Fedora Update System 2021-08-10 01:06:03 UTC
FEDORA-2021-54ee631709 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


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