lttng-modules-dkms fails to build on jammy with the latest 5.19 kernel

Bug #2003082 reported by Andrea Righi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lttng-modules (Ubuntu)
Invalid
Undecided
Unassigned
Jammy
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

lttng-modules-dkms fails to build with the latest 5.19 kernel:

/var/lib/dkms/lttng-modules/2.13.1/build/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for ‘trace_sched_switch’; have ‘void(bool, struct task_struct *, struct task_struct *)’ {aka ‘void(_Bool, struct task_struct *, struct task_struct *)’}

(along with other errors, due to the different ABI introduced by 5.19)

[Test case]

 $ sudo apt install lttng-modules-dkms

[Fix]

Cherry pick patches from the version in kinetic to properly support the new ABI (kernels >= 5.19).

[Regression potential]

We may experience regressions with kernels >= 5.19 that are using lttng, previous kernels are not affected by the new ABI changes.

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff in attach contains all the cherry picks from kinetic's lttng-modules-dkms to support v5.19 in jammy.

Revision history for this message
Andrea Righi (arighi) wrote :

debdiff v2: do not break lttng-probe-random in linux 5.15.

Timo Aaltonen (tjaalton)
Changed in lttng-modules (Ubuntu):
status: New → Invalid
Changed in lttng-modules (Ubuntu Jammy):
status: New → In Progress
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Andrea, or anyone else affected,

Accepted lttng-modules into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lttng-modules/2.13.1-1ubuntu0.22.04.3 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in lttng-modules (Ubuntu Jammy):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-jammy
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Hopefully this will also be tested on the GA kernel, right?

Revision history for this message
Kleber Sacilotto de Souza (kleber-souza) wrote :
tags: added: verification-done-jammy
removed: verification-needed-jammy
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.13.1-1ubuntu0.22.04.3

---------------
lttng-modules (2.13.1-1ubuntu0.22.04.3) jammy; urgency=medium

  * Support kernel 5.19 (LP: #2003082):
    - d/p/0001-fix-mm-page_alloc-fix-tracepoint-mm_page_alloc_zone_.patch
    - d/p/0002-fix-fs-Remove-flags-parameter-from-aops-write_begin-.patch
    - d/p/0003-fix-workqueue-Fix-type-of-cpu-in-trace-event-v5.19.patch
    - d/p/0004-fix-sched-switch-prototype-in-v5.19.patch
    - d/p/0005-fix-block-abi-with-v5.19.patch
    - d/p/0006-fix-mm-abi-with-v5.19.patch
    - d/p/0007-fix-kprobes-abi-with-v5.19.patch
    - debian/lttng-modules-dkms.dkms (update to support v5.19)

 -- Andrea Righi <email address hidden> Tue, 17 Jan 2023 13:30:53 +0000

Changed in lttng-modules (Ubuntu Jammy):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for lttng-modules has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

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.