armhf kernels are compiled with gcc-11
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-raspi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Kinetic |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
We currently compile the Kinetic raspi armhf kernels with gcc-11 because a gcc-12-compiled armhf raspi kernel won't boot or hang. We need to figure out what's going on and fix it to be able to go back to the default compiler.
Turns out that the downstream dwc_otg driver is broken when compiled with gcc-12 and 'standard' kernel compiler flags. I confirmed that the system seems to work reliably after switching to the upstream dwc2 driver.
Relevant gcc-12 changes:
arm
Support is added for accessing the stack canary value via the TLS register through the -fstack-
[Test Case]
Boot armhf kernel and exercise the system. It either won't come up at all or hang/freeze later on.
[Fix]
1a62e5b2363d ("drivers: dwc_otg: stop GCC from patching FIQ functions") from github.
[Regression Potential]
Setting a specific compiler flag and switching to a new GCC version. What could possibly go wrong?
no longer affects: | gcc-12 (Ubuntu) |
summary: |
- The armhf kernel is compiled with gcc-11 + armhf kernels are compiled with gcc-11 |
Changed in linux-raspi (Ubuntu): | |
status: | New → Invalid |
Changed in linux-raspi (Ubuntu Kinetic): | |
status: | New → Confirmed |
description: | updated |
description: | updated |
tags: | added: kern-4811 |
description: | updated |
Changed in linux-raspi (Ubuntu Kinetic): | |
status: | Confirmed → Fix Committed |
tags: |
added: verification-done-kinetic removed: verification-needed-kinetic |
This bug is awaiting verification that the linux-raspi/ 5.19.0- 1010.17 kernel in -proposed solves the problem. Please test the kernel and update this bug with the results. If the problem is solved, change the tag 'verification- needed- kinetic' to 'verification- done-kinetic' . If the problem still exists, change the tag 'verification- needed- kinetic' to 'verification- failed- kinetic' .
If verification is not done by 5 working days from today, this fix will be dropped from the source code, and this bug will be closed.
See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you!