Incompatible jbd2 format between kernel and lttng-modules
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:
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_
LTTNG_KERNEL_
LTTNG_KERNEL_
LTTNG_KERNEL_
LTTNG_KERNEL_
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_
760 21:14:39 DEBUG| [stdout] In file included from /var/lib/
761 21:14:39 DEBUG| [stdout] from /var/lib/
762 21:14:39 DEBUG| [stdout] from /var/lib/
763 21:14:39 DEBUG| [stdout] /var/lib/
764 21:14:39 DEBUG| [stdout] 131 | void trace_#
765 21:14:39 DEBUG| [stdout] | ^~~~~~
766 21:14:39 DEBUG| [stdout] /var/lib/
767 21:14:39 DEBUG| [stdout] 43 | LTTNG_TRACEPOIN
768 21:14:39 DEBUG| [stdout] | ^~~~~~~
769 21:14:39 DEBUG| [stdout] /var/lib/
770 21:14:39 DEBUG| [stdout] 85 | LTTNG_TRACEPOIN
771 21:14:39 DEBUG| [stdout] | ^~~~~~~
772 21:14:39 DEBUG| [stdout] /var/lib/
773 21:14:39 DEBUG| [stdout] 104 | LTTNG_TRACEPOIN
774 21:14:39 DEBUG| [stdout] | ^~~~~~~
775 21:14:39 DEBUG| [stdout] In file included from ./include/
776 21:14:39 DEBUG| [stdout] from /var/lib/
777 21:14:39 DEBUG| [stdout] ./include/
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/
781 21:14:39 DEBUG| [stdout] 406 | __DECLARE_
782 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~
783 21:14:39 DEBUG| [stdout] ./include/
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/
787 21:14:39 DEBUG| [stdout] 234 | TRACE_EVENT(
788 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~
789 21:14:39 DEBUG| [stdout] In file included from /var/lib/
790 21:14:39 DEBUG| [stdout] from /var/lib/
791 21:14:39 DEBUG| [stdout] from /var/lib/
792 21:14:39 DEBUG| [stdout] /var/lib/
793 21:14:39 DEBUG| [stdout] 131 | void trace_#
794 21:14:39 DEBUG| [stdout] | ^~~~~~
795 21:14:39 DEBUG| [stdout] /var/lib/
796 21:14:39 DEBUG| [stdout] 43 | LTTNG_TRACEPOIN
797 21:14:39 DEBUG| [stdout] | ^~~~~~~
798 21:14:39 DEBUG| [stdout] /var/lib/
799 21:14:39 DEBUG| [stdout] 85 | LTTNG_TRACEPOIN
800 21:14:39 DEBUG| [stdout] | ^~~~~~~
801 21:14:39 DEBUG| [stdout] /var/lib/
802 21:14:39 DEBUG| [stdout] 124 | LTTNG_TRACEPOIN
803 21:14:39 DEBUG| [stdout] | ^~~~~~~
804 21:14:39 DEBUG| [stdout] In file included from ./include/
805 21:14:39 DEBUG| [stdout] from /var/lib/
806 21:14:39 DEBUG| [stdout] ./include/
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/
810 21:14:39 DEBUG| [stdout] 406 | __DECLARE_
811 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~~~~~
812 21:14:39 DEBUG| [stdout] ./include/
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/
816 21:14:39 DEBUG| [stdout] 282 | TRACE_EVENT(
817 21:14:39 DEBUG| [stdout] | ^~~~~~~~~~~
818 21:14:39 DEBUG| [stdout] make[2]: *** [scripts/
819 21:14:39 DEBUG| [stdout] make[1]: *** [scripts/
820 21:14:39 DEBUG| [stdout] make: *** [Makefile:1767: /var/lib/
821 21:14:39 DEBUG| [stdout] make: Leaving directory '/usr/src/
822 21:14:39 ERROR| Exception escaping from test:
823 Traceback (most recent call last):
824 File "/home/
825 _cherry_
826 File "/home/
827 return func(*p_args, **p_dargs)
828 File "/home/
829 raise error.TestError
tags: | added: 5.4 focal ubuntu-lttng-smoke-test |
description: | updated |
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 |
tags: | added: 5.4.0-144.161 |
tags: | added: sru-2023-01-30 |
tags: |
added: sru-20230130 removed: sru-2023-01-30 |
Changed in lttng-modules (Ubuntu): | |
status: | Invalid → Fix Committed |
Changed in lttng-modules (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
tags: | added: jammy sru-20230227 |
Changed in lttng-modules (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
Changed in ubuntu-kernel-tests: | |
status: | In Progress → Fix Released |
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 |
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 1ubuntu2~ 20.04.5 all Linux Trace Toolkit (LTTng) kernel modules (DKMS)
ii lttng-modules-dkms 2.12.5-