Incompatible jbd2 format between kernel and lttng-modules

Bug #2004644 reported by Roxana Nicolescu
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Fix Released
Undecided
Roxana Nicolescu
linux (Ubuntu)
Invalid
Undecided
Unassigned
Focal
Invalid
Undecided
Unassigned
Jammy
Invalid
Undecided
Unassigned
Kinetic
Invalid
Undecided
Unassigned
Lunar
Invalid
Undecided
Unassigned
lttng-modules (Ubuntu)
Fix Committed
Undecided
Unassigned
Bionic
Fix Released
Medium
Unassigned
Focal
Fix Released
Medium
Unassigned
Jammy
Fix Released
Medium
Unassigned
Kinetic
Fix Released
Medium
Unassigned
Lunar
Fix Committed
Undecided
Unassigned

Bug Description

[SRU Justification]

Impact:
Upstream stable added a change in the format of jbd2 in 5.4.229, 5.15.87, 6.1.3.
This is incompatible with the current changes in the lttng-module for bionic-5.4 backports, focal, jammy, and kinetic.

Focal and bionic updates are needed for the current sru kernel release (2023.01.30). Both adt and rt fail during compilation of the module.
Jammy and kinetic updates are not needed for this cycle because patches from upstream stable are not applied yet but it will be needed for the next release(s).

Correct changes are already in lttng-modules:master and in 2.13.8-1 version.

Fix(es):
1. focal and bionic: Picking 4 patches from upstream lttng-modules which handle the changed interface as well as add the required code to enable that change for other versions as well:
LTTNG_KERNEL_RANGE(5,4,229, 5,5,0)
LTTNG_KERNEL_RANGE(5,10,163, 5,11,0)
LTTNG_KERNEL_RANGE(5,15,87, 5,16,0)
LTTNG_KERNEL_RANGE(6,0,18, 6,1,0)
LTTNG_KERNEL_RANGE(6,1,4, 6,2,0)

2. Jammy and kinetic: backport 2.13.8-1

Tescase(s) for focal:
1. lttng-smoke-test fail to compile with the error from below.
2. adt lttng-module fail to compile with same error

Regression potential:
We may notice new failures in ubuntu_lttng_smoke_test once this will compile and run. But it was tested locally and results were good, so probablity is very very low.

760 21:14:39 DEBUG| [stdout] In file included from /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/define_trace.h:87,
      761 21:14:39 DEBUG| [stdout] from /var/lib/dkms/lttng-modules/2.12.5/build/probes/../instrumentation/events/lttng-module/jbd2.h:177,
      762 21:14:39 DEBUG| [stdout] from /var/lib/dkms/lttng-modules/2.12.5/build/probes/lttng-probe-jbd2.c:29:
      763 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/lttng-tracepoint-event-impl.h:131:6: error: conflicting types for ‘trace_jbd2_run_stats’
      764 21:14:39 DEBUG| [stdout] 131 | void trace_##_name(_proto);
      765 21:14:39 DEBUG| [stdout] | ^~~~~~
      766 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/lttng-tracepoint-event-impl.h:43:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
      767 21:14:39 DEBUG| [stdout] 43 | LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
      768 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      769 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/lttng-tracepoint-event-impl.h:85:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
      770 21:14:39 DEBUG| [stdout] 85 | LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
      771 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~~~~~~~~~~~~
      772 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../instrumentation/events/lttng-module/jbd2.h:104:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT’
      773 21:14:39 DEBUG| [stdout] 104 | LTTNG_TRACEPOINT_EVENT(jbd2_run_stats,
      774 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~~~~~~~~
      775 21:14:39 DEBUG| [stdout] In file included from ./include/trace/events/jbd2.h:9,
      776 21:14:39 DEBUG| [stdout] from /var/lib/dkms/lttng-modules/2.12.5/build/probes/lttng-probe-jbd2.c:18:
      777 21:14:39 DEBUG| [stdout] ./include/linux/tracepoint.h:243:21: note: previous definition of ‘trace_jbd2_run_stats’ was here
      778 21:14:39 DEBUG| [stdout] 243 | static inline void trace_##name(proto) \
      779 21:14:39 DEBUG| [stdout] | ^~~~~~
      780 21:14:39 DEBUG| [stdout] ./include/linux/tracepoint.h:406:2: note: in expansion of macro ‘__DECLARE_TRACE’
      781 21:14:39 DEBUG| [stdout] 406 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
      782 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~
      783 21:14:39 DEBUG| [stdout] ./include/linux/tracepoint.h:542:2: note: in expansion of macro ‘DECLARE_TRACE’
      784 21:14:39 DEBUG| [stdout] 542 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
      785 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~
      786 21:14:39 DEBUG| [stdout] ./include/trace/events/jbd2.h:234:1: note: in expansion of macro ‘TRACE_EVENT’
      787 21:14:39 DEBUG| [stdout] 234 | TRACE_EVENT(jbd2_run_stats,
      788 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~
      789 21:14:39 DEBUG| [stdout] In file included from /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/define_trace.h:87,
      790 21:14:39 DEBUG| [stdout] from /var/lib/dkms/lttng-modules/2.12.5/build/probes/../instrumentation/events/lttng-module/jbd2.h:177,
      791 21:14:39 DEBUG| [stdout] from /var/lib/dkms/lttng-modules/2.12.5/build/probes/lttng-probe-jbd2.c:29:
      792 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/lttng-tracepoint-event-impl.h:131:6: error: conflicting types for ‘trace_jbd2_checkpoint_stats’
      793 21:14:39 DEBUG| [stdout] 131 | void trace_##_name(_proto);
      794 21:14:39 DEBUG| [stdout] | ^~~~~~
      795 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/lttng-tracepoint-event-impl.h:43:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
      796 21:14:39 DEBUG| [stdout] 43 | LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
      797 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      798 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../probes/lttng-tracepoint-event-impl.h:85:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
      799 21:14:39 DEBUG| [stdout] 85 | LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
      800 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~~~~~~~~~~~~
      801 21:14:39 DEBUG| [stdout] /var/lib/dkms/lttng-modules/2.12.5/build/probes/../instrumentation/events/lttng-module/jbd2.h:124:1: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT’
      802 21:14:39 DEBUG| [stdout] 124 | LTTNG_TRACEPOINT_EVENT(jbd2_checkpoint_stats,
      803 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~~~~~~~~
      804 21:14:39 DEBUG| [stdout] In file included from ./include/trace/events/jbd2.h:9,
      805 21:14:39 DEBUG| [stdout] from /var/lib/dkms/lttng-modules/2.12.5/build/probes/lttng-probe-jbd2.c:18:
      806 21:14:39 DEBUG| [stdout] ./include/linux/tracepoint.h:243:21: note: previous definition of ‘trace_jbd2_checkpoint_stats’ was here
      807 21:14:39 DEBUG| [stdout] 243 | static inline void trace_##name(proto) \
      808 21:14:39 DEBUG| [stdout] | ^~~~~~
      809 21:14:39 DEBUG| [stdout] ./include/linux/tracepoint.h:406:2: note: in expansion of macro ‘__DECLARE_TRACE’
      810 21:14:39 DEBUG| [stdout] 406 | __DECLARE_TRACE(name, PARAMS(proto), PARAMS(args), \
      811 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~
      812 21:14:39 DEBUG| [stdout] ./include/linux/tracepoint.h:542:2: note: in expansion of macro ‘DECLARE_TRACE’
      813 21:14:39 DEBUG| [stdout] 542 | DECLARE_TRACE(name, PARAMS(proto), PARAMS(args))
      814 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~
      815 21:14:39 DEBUG| [stdout] ./include/trace/events/jbd2.h:282:1: note: in expansion of macro ‘TRACE_EVENT’
      816 21:14:39 DEBUG| [stdout] 282 | TRACE_EVENT(jbd2_checkpoint_stats,
      817 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~
      818 21:14:39 DEBUG| [stdout] make[2]: *** [scripts/Makefile.build:270: /var/lib/dkms/lttng-modules/2.12.5/build/probes/lttng-probe-jbd2.o] Error 1
      819 21:14:39 DEBUG| [stdout] make[1]: *** [scripts/Makefile.build:519: /var/lib/dkms/lttng-modules/2.12.5/build/probes] Error 2
      820 21:14:39 DEBUG| [stdout] make: *** [Makefile:1767: /var/lib/dkms/lttng-modules/2.12.5/build] Error 2
      821 21:14:39 DEBUG| [stdout] make: Leaving directory '/usr/src/linux-headers-5.4.0-143-generic'
      822 21:14:39 ERROR| Exception escaping from test:
      823 Traceback (most recent call last):
      824 File "/home/ubuntu/autotest/client/shared/test.py", line 378, in _exec
      825 _cherry_pick_call(self.initialize, *args, **dargs)
      826 File "/home/ubuntu/autotest/client/shared/test.py", line 738, in _cherry_pick_call
      827 return func(*p_args, **p_dargs)
      828 File "/home/ubuntu/autotest/client/tests/ubuntu_lttng_smoke_test/ubuntu_lttng_smoke_test.py", line 58, in initialize
      829 raise error.TestError('DKMS failed to install')

Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Proposed fix is attached.

Tested on a local vm with kernel focal-5.4.0-143.160.
Initially, sudo apt install lttng-modules-dkms failed for obvious reasons.

Manually installed the new deb ~20.0.5:

ubuntu@focal-143:~/lttng$ dpkg -l | grep lttng-modules
ii lttng-modules-dkms 2.12.5-1ubuntu2~20.04.5 all Linux Trace Toolkit (LTTng) kernel modules (DKMS)

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "20.0.5-20.0.4.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Po-Hsu Lin (cypressyew)
tags: added: 5.4 focal ubuntu-lttng-smoke-test
description: updated
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

$ dput ubuntu lttng-modules_2.12.5-1ubuntu2~20.04.5_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: /tmp/lttng-modules_2.12.5-1ubuntu2~20.04.5_source.changes: Valid signature from 9B8EC849D5EF70ED
Checking signature on .dsc
gpg: /tmp/lttng-modules_2.12.5-1ubuntu2~20.04.5.dsc: Valid signature from 9B8EC849D5EF70ED
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading lttng-modules_2.12.5-1ubuntu2~20.04.5.dsc: done.
  Uploading lttng-modules_2.12.5-1ubuntu2~20.04.5.debian.tar.xz: done.
  Uploading lttng-modules_2.12.5-1ubuntu2~20.04.5_source.buildinfo: done.
  Uploading lttng-modules_2.12.5-1ubuntu2~20.04.5_source.changes: done.
Successfully uploaded packages.

Sponsored to the unapproved queue.

Changed in lttng-modules (Ubuntu Focal):
status: New → In Progress
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Roxana, or anyone else affected,

Accepted lttng-modules into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lttng-modules/2.12.5-1ubuntu2~20.04.5 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-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. 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 Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Po-Hsu Lin (cypressyew) wrote (last edit ): Re: ubuntu_lttng_smoke_test failed with wrong jbd format on 5.4.0-143.160

 lttng module 2.12.5-1ubuntu2~20.04.5 in -proposed tested on Focal 5.4.0-1094-oracle.

The module can be built and tested without any issue.

 == lttng smoke test of session create/destroy ==
 Session test-kernel-session created.
 Traces will be output to /tmp/lttng-kernel-trace-24770-session
 PASSED (lttng create)
 Session "test-kernel-session" destroyed
 PASSED (lttng destroy)

 == lttng smoke test trace context switches ==
 Session test-kernel-session created.
 Traces will be output to /tmp/lttng-kernel-trace-24770-session
 PASSED (lttng create)
 Kernel event sched_switch created in channel channel0
 PASSED (lttng enable-event)
 Tracing started for session test-kernel-session
 PASSED (lttng start)
 Waiting for data availability.
 Tracing stopped for session test-kernel-session
 PASSED (lttng stop)
 Waiting for destruction of session "test-kernel-session"..
 Session "test-kernel-session" destroyed
 PASSED (lttng destroy)
 Found 129766 dd and 196500 context switches
 PASSED (simple system call tracing with babeltrace)

 Summary: 7 passed, 0 failed

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Changed in ubuntu-kernel-tests:
status: New → In Progress
assignee: nobody → Roxana Nicolescu (roxanan)
Changed in lttng-modules (Ubuntu):
status: New → Invalid
Stefan Bader (smb)
Changed in lttng-modules (Ubuntu Focal):
importance: Undecided → Medium
Changed in lttng-modules (Ubuntu Bionic):
importance: Undecided → Medium
Changed in lttng-modules (Ubuntu Jammy):
importance: Undecided → Medium
Changed in lttng-modules (Ubuntu Kinetic):
importance: Undecided → Medium
Changed in lttng-modules (Ubuntu):
status: Invalid → Won't Fix
status: Won't Fix → Invalid
Revision history for this message
Roxana Nicolescu (roxanan) wrote :
description: updated
summary: - ubuntu_lttng_smoke_test failed with wrong jbd format on 5.4.0-143.160
+ Incompatible jbd2 format between kernel and lttng-modules
Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Backport for jammy. Tested autopkgtest locally:
I: Testing if lttng-modules modules are correctly installed
lttng-modules/2.13.8, 5.15.0-66-generic, x86_64: installed
./lttng-modules/2.13.8/5.15.0-57-generic/x86_64/log/make.log
./lttng-modules/2.13.8/5.15.0-66-generic/x86_64/log/make.log
./lttng-modules/2.13.8/5.15.0-58-generic/x86_64/log/make.log
./lttng-modules/2.13.8/5.15.0-59-generic/x86_64/log/make.log
autopkgtest [12:33:34]: test dkms-autopkgtest: -----------------------]
autopkgtest [12:33:35]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
dkms-autopkgtest PASS
autopkgtest [12:33:36]: @@@@@@@@@@@@@@@@@@@@ summary
dkms-autopkgtest PASS

Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Backport for kinetic. Test results:
I: Testing if lttng-modules modules are correctly installed
lttng-modules/2.13.8, 5.19.0-35-generic, x86_64: installed
./lttng-modules/2.13.8/5.19.0-31-generic/x86_64/log/make.log
./lttng-modules/2.13.8/5.19.0-35-generic/x86_64/log/make.log
./lttng-modules/2.13.8/5.19.0-29-generic/x86_64/log/make.log
I: Summary:
I: PASS 5.19.0-29-generic
I: PASS 5.19.0-31-generic
I: PASS 5.19.0-35-generic
autopkgtest [12:32:19]: test dkms-autopkgtest: -----------------------]
autopkgtest [12:32:20]: test dkms-autopkgtest: - - - - - - - - - - results - - - - - - - - - -
dkms-autopkgtest PASS
autopkgtest [12:32:20]: @@@@@@@@@@@@@@@@@@@@ summary
dkms-autopkgtest PASS

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 2004644

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Changed in linux (Ubuntu Bionic):
status: New → Incomplete
Changed in linux (Ubuntu Focal):
status: New → Incomplete
Changed in linux (Ubuntu Jammy):
status: New → Incomplete
Changed in linux (Ubuntu Kinetic):
status: New → Incomplete
Revision history for this message
Andrei Gherzan (agherzan) wrote :

Build verified on Bionic for the debdiff provided above: https://launchpadlibrarian.net/650753152/18.04.4-5.debdiff

tags: added: 5.4.0-144.161
tags: added: sru-2023-01-30
Po-Hsu Lin (cypressyew)
tags: added: sru-20230130
removed: sru-2023-01-30
Changed in lttng-modules (Ubuntu):
status: Invalid → Fix Committed
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

$ dput ubuntu lttng-modules_2.10.8-1ubuntu2~18.04.5_source.changes
D: Setting host argument.
Checking signature on .changes
gpg: /tmp/lttng-modules_2.10.8-1ubuntu2~18.04.5_source.changes: Valid signature from 9B8EC849D5EF70ED
Checking signature on .dsc
gpg: /tmp/lttng-modules_2.10.8-1ubuntu2~18.04.5.dsc: Valid signature from 9B8EC849D5EF70ED
Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading lttng-modules_2.10.8-1ubuntu2~18.04.5.dsc: done.
  Uploading lttng-modules_2.10.8-1ubuntu2~18.04.5.debian.tar.xz: done.
  Uploading lttng-modules_2.10.8-1ubuntu2~18.04.5_source.buildinfo: done.
  Uploading lttng-modules_2.10.8-1ubuntu2~18.04.5_source.changes: done.
Successfully uploaded packages.

Changed in lttng-modules (Ubuntu Bionic):
status: New → In Progress
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

@roxana for the new upstream version backports, the debdiff is normally provided against the version that is being backported e.g. relative 2.13.8-1

Also when doing backport / any ubuntu change, the version string must include ubuntu in it, so something like ~ubuntu22.10.0 is best.

Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Jammy debdiff

Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Kinetic debdiff

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

1) changed -1ubuntu1~22.04.0 to -1~ubuntu22.04.0 because -1ubuntu1~22.04.0 is higher version that is in lunar:

$ dpkg --compare-versions 2.13.8-1ubuntu1~22.04.0 lt 2.13.8-1 && echo "sru version is lower than devel" || echo "sru version is HIGHER than devel"
sru version is HIGHER than devel

$ dpkg --compare-versions 2.13.8-1~ubuntu22.04.0 lt 2.13.8-1 && echo "sru version is lower than devel" || echo "sru version is HIGHER than devel"
sru version is lower than devel

we want to ensure that lunar version remains higher than the sru backport versions

2) run update-maintainer as the -1 version was synced from debian without ubuntu maintainer set

3) generated jammy changes with $ debuild -S -d -nc -v2.13.1-1

similar done for kinetic too.

both sponsored.

Changed in lttng-modules (Ubuntu Jammy):
status: New → In Progress
Changed in lttng-modules (Ubuntu Kinetic):
status: New → In Progress
no longer affects: linux (Ubuntu Bionic)
Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Roxana, or anyone else affected,

Accepted lttng-modules into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/lttng-modules/2.13.8-1~ubuntu22.10.0 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-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. 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 Kinetic):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-kinetic
removed: verification-done
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

Hello Roxana, 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.8-1~ubuntu22.04.0 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-jammy
Revision history for this message
aGan SimSek (mngans) wrote :

I came across a similar problem in the following situation. Maybe it can help you move forward quickly. Because it is base on docker and cross compile.

git clone https://github.com/ros-realtime/linux-real-time-kernel-builder.git

$ cd linux-real-time-kernel-builder

$ docker build --no-cache --build-arg UBUNTU_VERSION=focal --build-arg KERNEL_VERSION=5.4.0 --build-arg RT_PATCH=5.4.230-rt80 --build-arg LTTNG_VERSION=2.13 -t rtwg-image .

After that the Docker image is prepared and ready to run
$ docker run -it rtwg-image bash

and then inside the docker
$ cd $HOME/linux_build/linux-raspi
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- LOCALVERSION=-raspi -j `nproc` bindeb-pkg

A error part of screen out;

make KERNELRELEASE=5.4.229-rt80-raspi ARCH=arm64 KBUILD_BUILD_VERSION=1 -f ./Makefile
  CALL scripts/atomic/check-atomics.sh
  CALL scripts/checksyscalls.sh
  CHK include/generated/compile.h
  CC lttng/src/lttng-ring-buffer-client-discard.o
  CC lttng/src/lttng-ring-buffer-client-overwrite.o
  CC lttng/src/probes/lttng-probe-jbd2.o
  CC lttng/src/probes/lttng-probe-scsi.o
  CC lttng/src/probes/lttng-probe-vmscan.o
In file included from lttng/src/probes/../../include/lttng/define_trace.h:87,
                 from lttng/src/probes/../../include/instrumentation/events/jbd2.h:293,
                 from lttng/src/probes/lttng-probe-jbd2.c:29:
lttng/src/probes/../../include/lttng/tracepoint-event-impl.h:133:6: error: conflicting types for ‘trace_jbd2_run_stats’
  133 | void trace_##_name(_proto);
      | ^~~~~~
lttng/src/probes/../../include/lttng/tracepoint-event-impl.h:45:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP’
   45 | LTTNG_TRACEPOINT_EVENT_INSTANCE_MAP(map, name, map, PARAMS(proto), PARAMS(args))
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
lttng/src/probes/../../include/lttng/tracepoint-event-impl.h:87:2: note: in expansion of macro ‘LTTNG_TRACEPOINT_EVENT_MAP’
   87 | LTTNG_TRACEPOINT_EVENT_MAP(name, name, \
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

version 2.13.8-1~ubuntu22.10.0 tested on Kinetic 5.19.0-31, test passed without any issue.
version 2.13.8-1~ubuntu22.04.0 tested on Jammy 5.15.0-60, test passed without any issue

tags: added: verification-done verification-done-jammy verification-done-kinetic
removed: verification-needed verification-needed-jammy verification-needed-kinetic
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

This is also affecting Bionic hwe SRU.

tags: added: bionic
Revision history for this message
Roxana Nicolescu (roxanan) wrote :

version 2.10.8-1ubuntu2~18.04.5 tested on bionic 5.4.0-144.161~18.04.1 works fine
https://autopkgtest.ubuntu.com/results/autopkgtest-bionic/bionic/amd64/l/lttng-modules/20230223_150053_15e8f@/log.gz

Changed in lttng-modules (Ubuntu Bionic):
status: In Progress → Fix Committed
Revision history for this message
Chris Halse Rogers (raof) wrote :

Has lttng-smoke-test been run against the packages from -proposed? It's not *entirely* clear to me, but that looked to be a part of the test-case, and the autopkgtests don't (appear?) to run the smoke test?

Revision history for this message
Roxana Nicolescu (roxanan) wrote :
Download full text (4.5 KiB)

Yes, indeed, if you check adt matrix, only build is done. Smoke testing is done during rt. They were tested locally (expect bionic which is already in updates)
1. bionic was tested on linux-gpg-4.15.0-1146.162 in rt:
731 12:56:40 DEBUG| [stdout] Preparing to unpack .../76-lttng-modules-dkms_2.10.8-1ubuntu2~18.04.5_all.deb ...
      732 12:56:40 DEBUG| [stdout] Unpacking lttng-modules-dkms (2.10.8-1ubuntu2~18.04.5) ...
...

      1470 12:58:42 INFO | == lttng smoke test trace context switches ==
      1471 12:58:42 INFO | Session test-kernel-session created.
      1472 12:58:42 INFO | Traces will be written in /tmp/lttng-kernel-trace-22702-session
      1473 12:58:42 INFO | PASSED (lttng create)
      1474 12:58:42 INFO | Kernel event sched_switch created in channel channel0
      1475 12:58:42 INFO | PASSED (lttng enable-event)
      1476 12:58:42 INFO | Tracing started for session test-kernel-session
      1477 12:58:42 INFO | PASSED (lttng start)
      1478 12:58:42 INFO | Waiting for data availability.
      1479 12:58:42 INFO | Tracing stopped for session test-kernel-session
      1480 12:58:42 INFO | PASSED (lttng stop)
      1481 12:58:42 INFO | Session test-kernel-session destroyed
      1482 12:58:42 INFO | PASSED (lttng destroy)
      1483 12:58:42 INFO | Found 26292 dd and 147227 context switches
      1484 12:58:42 INFO | PASSED (simple system call tracing with babeltrace)
      1485 12:58:42 INFO |
      1486 12:58:42 INFO | Summary: 7 passed, 0 failed
      1487 12:58:42 DEBUG| Running 'apt-get remove --yes lttng-modules-dkms'
      1488 12:59:27 INFO | GOOD ubuntu_lttng_smoke_test.lttng-smoke-test ubuntu_lttng_smoke_test.lttng-smoke-test timestamp=1677416367 localtime=Feb 26 12:59:27 completed successfully
      1489 12:59:27 INFO | END GOOD ubuntu_lttng_smoke_test.lttng-smoke-test ubuntu_lttng_smoke_test.lttng-smoke-test timestamp=1677416367 localtime=Feb 26 12:59:27

2. focal 5.4.0-145.162
ubuntu@focal:~$ apt search lttng-modules-dkms
Sorting... Done
Full Text Search... Done
lttng-modules-dkms/focal-proposed 2.12.5-1ubuntu2~20.04.5 all
  Linux Trace Toolkit (LTTng) kernel modules (DKMS)

13:51:57 INFO | Summary: 7 passed, 0 failed
13:51:57 DEBUG| Running 'apt-get remove --yes lttng-modules-dkms'
13:52:21 INFO | GOOD ubuntu_lttng_smoke_test.lttng-smoke-test ubuntuy
13:52:21 INFO | END GOOD ubuntu_lttng_smoke_test.lttng-smoke-test ubuntu1
13:52:21 DEBUG| Persistent state client._record_indent now set to 1
13:52:21 DEBUG| Persistent state client.unexpected_reboot deleted
13:52:21 INFO | END GOOD ---- ---- timestamp=1678197141 localtime=Mar 07 13:521

3. jammy 5.15.0-68.75
ubuntu@jammy:~$ apt search lttng-modules-dkms
Sorting... Done
Full Text Search... Done
lttng-modules-dkms/jammy-proposed,now 2.13.8-1~ubuntu22.04.0 all [installed]
  Linux Trace Toolkit (LTTng) kernel modules (DKMS)

14:16:39 INFO | Summary: 7 passed, 0 failed
14:16:39 DEBUG| Running 'apt-get remove --yes lttng-modules-dkms'
14:16:52 INFO | GOOD ubun...

Read more...

Cory Todd (corytodd)
tags: added: jammy sru-20230227
Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Hello Chris and Timo. Can you let us know if anything else is needed to push focal, jammy, and kinetic versions in -updates?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.13.8-1~ubuntu22.10.0

---------------
lttng-modules (2.13.8-1~ubuntu22.10.0) kinetic; urgency=medium

  * Backport dkms support for hwe support (LP: #2004644)

lttng-modules (2.13.8-1) unstable; urgency=medium

  * [813bc03] New upstream version 2.13.8

lttng-modules (2.13.7-1) unstable; urgency=medium

  * [a85260b] New upstream version 2.13.7
  * [8da9d13] Update dkms config (Closes: #1019250)

 -- Roxana Nicolescu <email address hidden> Tue, 14 Feb 2023 15:07:11 +0100

Changed in lttng-modules (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Brian Murray (brian-murray) 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.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.13.8-1~ubuntu22.04.0

---------------
lttng-modules (2.13.8-1~ubuntu22.04.0) jammy; urgency=medium

  * Backport dkms support for hwe support (LP: #2004644)

lttng-modules (2.13.8-1) unstable; urgency=medium

  * [813bc03] New upstream version 2.13.8

lttng-modules (2.13.7-1) unstable; urgency=medium

  * [a85260b] New upstream version 2.13.7
  * [8da9d13] Update dkms config (Closes: #1019250)

lttng-modules (2.13.4-1) unstable; urgency=medium

  * [431cdf5] New upstream version 2.13.4

lttng-modules (2.13.3-2) unstable; urgency=medium

  [ Andreas Beckmann ]
  * [1a7054d] switch to dh-sequence-dkms
  * [b5f9942] switch to Testsuite: autopkgtest-pkg-dkms
  * [8a3be1e] look for kernel config in $kernel_source_dir/.config first
  * [eceedfa] the autopkgtests may run on Salsa CI

lttng-modules (2.13.3-1) unstable; urgency=medium

  * [74b0b84] New upstream version 2.13.3

lttng-modules (2.13.2-1) unstable; urgency=medium

  * [dbf1674] New upstream version 2.13.2

 -- Roxana Nicolescu <email address hidden> Tue, 14 Feb 2023 15:09:16 +0100

Changed in lttng-modules (Ubuntu Jammy):
status: Fix Committed → Fix Released
Changed in lttng-modules (Ubuntu Bionic):
status: Fix Committed → Fix Released
Revision history for this message
Roxana Nicolescu (roxanan) wrote :

Hey Brian! Focal version 2.12.5-1ubuntu2~20.04.5 is still pending in -proposed. Is it possible to move it to updates as well?

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lttng-modules - 2.12.5-1ubuntu2~20.04.5

---------------
lttng-modules (2.12.5-1ubuntu2~20.04.5) focal; urgency=medium

  * Backport fixes to jbd2 format in 5.4.229 (LP: #2004644)
    - d/p/0013-fix-jbd2-use-the-correct-print-format.patch
    - d/p/0014-fix-jbd2-use-the-correct-print-format-v5.10.163.patch
    - d/p/0015-fix-jbd2-upper-bound-for-v5.10.163.patch
    - d/p/0016-fix-jbd2-use-the-correct-print-format-v5.4.229.patch

 -- Roxana Nicolescu <email address hidden> Fri, 03 Feb 2023 11:09:19 +0200

Changed in lttng-modules (Ubuntu Focal):
status: Fix Committed → Fix Released
Changed in ubuntu-kernel-tests:
status: In Progress → Fix Released
Po-Hsu Lin (cypressyew)
Changed in linux (Ubuntu Focal):
status: Incomplete → Invalid
Changed in linux (Ubuntu Jammy):
status: Incomplete → Invalid
Changed in linux (Ubuntu Kinetic):
status: Incomplete → Invalid
Changed in linux (Ubuntu Lunar):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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