armhf kernels are compiled with gcc-11

Bug #1995853 reported by Juerg Haefliger
6
This bug affects 1 person
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-protector-guard=tls and -mstack-protector-guard-offset= options. This intended for use in Linux kernel development. Please refer to the documentation for more details.

[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.com/raspberrypi/linux

[Regression Potential]

Setting a specific compiler flag and switching to a new GCC version. What could possibly go wrong?

Juerg Haefliger (juergh)
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
Juerg Haefliger (juergh)
tags: added: kern-4811
Juerg Haefliger (juergh)
description: updated
Juerg Haefliger (juergh)
Changed in linux-raspi (Ubuntu Kinetic):
status: Confirmed → Fix Committed
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote :

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!

tags: added: kernel-spammed-kinetic-linux-raspi verification-needed-kinetic
Juerg Haefliger (juergh)
tags: added: verification-done-kinetic
removed: verification-needed-kinetic
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (103.1 KiB)

This bug was fixed in the package linux-raspi - 5.19.0-1011.18

---------------
linux-raspi (5.19.0-1011.18) kinetic; urgency=medium

  * kinetic/linux-raspi: 5.19.0-1011.18 -proposed tracker (LP: #1999742)

  * Packaging resync (LP: #1786013)
    - [Packaging] update helper scripts

  [ Ubuntu: 5.19.0-28.29 ]

  * kinetic/linux: 5.19.0-28.29 -proposed tracker (LP: #1999746)
  * mm:vma05 in ubuntu_ltp fails with '[vdso] bug not patched' on kinetic/linux
    5.19.0-27.28 (LP: #1999094)
    - fix coredump breakage

linux-raspi (5.19.0-1010.17) kinetic; urgency=medium

  * kinetic/linux-raspi: 5.19.0-1010.17 -proposed tracker (LP: #1997789)

  * [Kernel 5.15] System messages (kernel and systemd) are not shown during boot
    until it reach a late stage (LP: #1976147)
    - [Config] raspi: Disable DRM_SIMPLEDRM and set FB_SIMPLE=y
    - [Packaging] raspi: Remove simpledrm from modules ABI

  * Kinetic update: v5.19.17 upstream stable release (LP: #1994179)
    - [Config] raspi: updateconfigs for ARM64_ERRATUM_2441007
    - [Config] raspi: updateconfigs for AS_HAS_NON_CONST_LEB128

  * Kinetic update: v5.19.15 upstream stable release (LP: #1994078)
    - [Config] raspi: updateconfigs for CC_HAS_AUTO_VAR_INIT_ZERO_ENABLER

  * Kinetic update: v5.19.9 upstream stable release (LP: #1994068)
    - [Config] raspi: updateconfigs for ARM64_ERRATUM_2457168
    - [Config] raspi: updateconfigs for ARM64_BTI_KERNEL

  * kinetic/linux-raspi: Update to upstream raspberrypi rpi-5.19.y (2022-10-26)
    (LP: #1995968)
    - drm/vc4: hdmi: Constify drm_display_mode
    - drm/vc4: hdmi: Remove unused argument in vc4_hdmi_supports_scrambling
    - drm/vc4: hdmi: Remove mutex in detect
    - drm/vc4: hdmi: Simplify the hotplug handling
    - drm/vc4: hdmi: Switch to detect_ctx
    - drm/vc4: hdmi: Move vc4_hdmi_supports_scrambling() around
    - drm/vc4: hdmi: Reset link on hotplug
    - media: i2c: imx219: make HBLANK r/w to allow longer exposures
    - Revert "Add PHY_ID_BCM54213PE identifier."
    - ARM: dts: Add dtparams to disable PCIe, HDMI, and SD card/eMMC
    - usb: xhci: account for num_trbs_free when invalidating TDs
    - overlays: Add rpi-sense-v2
    - media: i2c: imx477: Allow dynamic horizontal blanking control
    - vc04_services: bcm2835-codec: Remove redundant role check
    - vc04_services: bcm2835-codec: Allow encoder_cmd on ISP and deinterlace
    - media: i2c: imx477: Reset hblank on mode switch
    - media: i2c: imx477: Do not unconditionally adjust hblank and vblank limits
    - nvmem: Use NVMEM_DEVID_AUTO
    - media: i2c: imx290: Correct min HBLANK.
    - overlays: i2c-rtc: Add RV3032 support
    - configs: Add RTC_DRV_RV3032=m
    - ARM: dts: Add nvmem node for BCM2711 bootloader public key
    - configs: Add FSIA6B driver module

  * armhf kernels are compiled with gcc-11 (LP: #1995853)
    - drivers: dwc_otg: stop GCC from patching FIQ functions
    - Revert "UBUNTU: [Packaging] raspi: Use gcc-11 for armhf"
    - [Config] raspi: updateconfigs for gcc-12 for armhf

  * remove circular dep between linux-image and modules (LP: #1989334)
    - [Packaging] remove circular dep between modules and image

  [ Ubuntu: 5.19.0-27.28 ]

  * kinetic...

Changed in linux-raspi (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (36.1 KiB)

This bug was fixed in the package linux-raspi - 6.2.0-1003.3

---------------
linux-raspi (6.2.0-1003.3) lunar; urgency=medium

  * lunar/linux-raspi: 6.2.0-1003.3 -proposed tracker (LP: #2009847)

  * Packaging resync (LP: #1786013)
    - [Packaging] update update.conf

  * Miscellaneous upstream changes
    - media: bcm2835-v4l2-codec: Add profile & level ctrls to decode
    - drm/vc4_plane: Add support for YUV444 formats
    - drm/vc4: Calculate bpc based on max_requested_bpc
    - media: dt-bindings: ak7375: Convert to DT schema
    - media: dt-bindings: ak7375: Add supplies
    - media: i2c: ak7375: Add regulator management
    - configs: Add CONFIG_VIDEO_AK7375=m
    - dtoverlays: Add VCM option to imx519
    - dtoverlays: Add IMX519 support to camera mux overlays
    - vc04_services: bcm2835_codec: Ignore READ_ONLY ctrls in s_ctrl
    - ASoC: bcm: Fix Rpi-PROTO and audioinjector.net Pi
    - dtoverlays: Add VCM option to Arducam64MP
    - dtoverlays: Add Arducam64MP support to camera mux overlays

  [ Ubuntu: 6.2.0-13.13 ]

  * lunar/linux: 6.2.0-13.13 -proposed tracker (LP: #2009704)
  * Packaging resync (LP: #1786013)
    - debian/dkms-versions -- update from kernel-versions (main/master)
  * mt7921: add support of MTFG table (LP: #2009642)
    - wifi: mt76: mt7921: add support to update fw capability with MTFG table

  [ Ubuntu: 6.2.0-12.12 ]

  * lunar/linux: 6.2.0-12.12 -proposed tracker (LP: #2009698)
  * Miscellaneous Ubuntu changes
    - SAUCE: enforce rust availability only on x86_64
    - [Config] update CONFIG_RUST_IS_AVAILABLE

  [ Ubuntu: 6.2.0-11.11 ]

  * lunar/linux: 6.2.0-11.11 -proposed tracker (LP: #2009697)
  * Miscellaneous Ubuntu changes
    - [Packaging] do not stop the build if rust is not available

linux-raspi (6.2.0-1002.2) lunar; urgency=medium

  * Miscellaneous Ubuntu changes
    - [Packaging] raspi: Drop etc/kernelconfig
    - [Config] raspi: Update CC_VERSION_TEXT
    - [Config] raspi: Change non-essential options from 'y' to 'm'
    - [Config] raspi: Change unsupported options from 'y' to 'n'
    - [Config] raspi: Change undesired options from 'y' to 'n'

  [ Ubuntu: 6.2.0-10.10 ]

  * lunar/linux-unstable: 6.2.0-10.10 -proposed tracker (LP: #2007818)
  * Built-in camera device dies after runtime suspended (LP: #2007530)
    - SAUCE: usb: xhci: Workaround for runpm issue on AMD xHC
  * Miscellaneous Ubuntu changes
    - [Config] update annotations after rebase to v6.2
  * Rebase to v6.2

linux-raspi (6.2.0-1001.1) lunar; urgency=medium

  * IO errors when writing large amounts of data to USB storage in eoan on
    RPI2/3 (armhf kernel) (LP: #1852510)
    - Add dwc_otg driver

  * Miscellaneous Ubuntu changes
    - [Config] raspi: updateconfigs after import of rpi-6.2.y patchset

  * Miscellaneous upstream changes
    - raspberrypi-firmware: Update mailbox commands
    - media: uapi: Add some RGB bus formats for VC4 DPI output
    - Support RPi DPI interface in mode6 for 18-bit color
    - drm/vc4: Add FKMS as an acceptable node for dma ranges.
    - drm/vc4: Add the 2711 HVS as a suitable DMA node
    - drm/vc4: Change the default DPI format to being 18bpp, not 24.
    - drm/atomic: Don't fixup modes th...

Changed in linux-raspi (Ubuntu):
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.