[UBUNTU 24.04] Haskell LLVM Backend: Objects of data section are missing alignment

Bug #2052696 reported by bugproxy
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu on IBM z Systems
Fix Released
High
Skipper Bug Screeners
ghc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Description:
Objects of the data section may be accessed through tagged pointers. Thus, those objects require a minimal alignment of 8 byte on a 64-bit architecture. Otherwise, this may lead to undefined behavior.

Solution:
commit
https://gitlab.haskell.org/ghc/ghc/-/commit/dfe1c3540e4b519b62b862b5966dfec5cae9ece1

This patch resolves the alignment issue for all targets utilizing the LLVM backend. The fix was backported by upstream for ghc release 9.6 and 9.8 but not for 9.4.x which has landed in Noble.

bugproxy (bugproxy)
tags: added: architecture-s39064 bugnameltc-205159 severity-high targetmilestone-inin---
Changed in ubuntu:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Simon Chopin (schopin) wrote :

I might be missing something, but I don't think that's related to the kernel?

Revision history for this message
Frank Heimes (fheimes) wrote :

Hi Simon, no, it's of course not.
The LP bug is pretty new (came in today) and I didn't had a chance to properly triage it.
Will do it right now ...

no longer affects: linux (Ubuntu)
Changed in ubuntu-z-systems:
assignee: nobody → Skipper Bug Screeners (skipper-screen-team)
status: New → Triaged
importance: Undecided → High
Changed in ghc (Ubuntu):
status: New → Triaged
tags: added: noble
Changed in ghc (Ubuntu):
status: Triaged → Fix Committed
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Triaged → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ghc - 9.4.7-3

---------------
ghc (9.4.7-3) unstable; urgency=medium

  * debian/patches/dfe1c3540e4b519b62b862b5966dfec5cae9ece1.patch:
    - cherry-pick upstream fix for misaligned objects in the data section with
      llvm-based builds. (LP: #2052696)

 -- Gianfranco Costamagna <email address hidden> Mon, 19 Feb 2024 17:12:25 +0100

Changed in ghc (Ubuntu):
status: Fix Committed → Fix Released
Frank Heimes (fheimes)
Changed in ubuntu-z-systems:
status: Fix Committed → Fix Released
bugproxy (bugproxy)
tags: added: targetmilestone-inin2404
removed: targetmilestone-inin---
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.