Package: release.debian.org Severity: normal Tags: bullseye X-Debbugs-Cc: lttng-modu...@packages.debian.org Control: affects -1 + src:lttng-modules User: release.debian....@packages.debian.org Usertags: pu
[ Reason ] Fix the dkms build of lttng-modules against the current bullseye kernel 5.10.0-33. [ Impact ] I'ts currently impossible to use the lttng kernel tracer with the latest bullseye kernel. [ Tests ] Tested manually on a bullseye virtual machine. [ Risks ] Minimal, won't be more broken than it actually is. [ Checklist ] [x] *all* changes are documented in the d/changelog [x] I reviewed all changes and I approve them [x] attach debdiff against the package in (old)stable [x] the issue is verified as fixed in unstable [ Changes ] Backport a single patch to adjust and version check in a macro.
diff -Nru lttng-modules-2.12.5/debian/changelog lttng-modules-2.12.5/debian/changelog --- lttng-modules-2.12.5/debian/changelog 2023-09-29 04:57:49.000000000 -0400 +++ lttng-modules-2.12.5/debian/changelog 2025-02-18 14:22:05.000000000 -0500 @@ -1,3 +1,10 @@ +lttng-modules (2.12.5-1+deb11u2) bullseye; urgency=medium + + * Fix build on linux 5.10.0-33 (Closes: #1095902) + * [c997804] Add patch to fix build on Linux 5.10.220..5.11 + + -- Michael Jeanson <mjean...@debian.org> Tue, 18 Feb 2025 14:22:05 -0500 + lttng-modules (2.12.5-1+deb11u1) bullseye; urgency=medium * Fix build on linux 5.10.0-22 (Closes: #1035364) @@ -10,10 +17,10 @@ * [25013d7] Add patch to fix build on Linux 5.10.119..5.11 [ Michael Jeanson ] - * [90a214b] dkms: conditionally include lttng-probe-random.ko + * [90a214b] dkms: conditionnaly include lttng-probe-random.ko * [be2eaa4] Add patch to fix build on Linux 5.10.163..5.11 - -- Andreas Beckmann <a...@debian.org> Fri, 29 Sep 2023 10:57:49 +0200 + -- Michael Jeanson <mjean...@debian.org> Wed, 03 May 2023 11:13:07 -0400 lttng-modules (2.12.5-1) unstable; urgency=medium diff -Nru lttng-modules-2.12.5/debian/patches/fix-file-Rename-fcheck-lookup_fd_rcu-v5.10.220.patch lttng-modules-2.12.5/debian/patches/fix-file-Rename-fcheck-lookup_fd_rcu-v5.10.220.patch --- lttng-modules-2.12.5/debian/patches/fix-file-Rename-fcheck-lookup_fd_rcu-v5.10.220.patch 1969-12-31 19:00:00.000000000 -0500 +++ lttng-modules-2.12.5/debian/patches/fix-file-Rename-fcheck-lookup_fd_rcu-v5.10.220.patch 2025-02-18 14:19:09.000000000 -0500 @@ -0,0 +1,49 @@ +From ac28bfe89e197267496520f6b79e6df42f6b196e Mon Sep 17 00:00:00 2001 +From: Michael Jeanson <mjean...@efficios.com> +Date: Tue, 25 Jun 2024 14:15:39 -0400 +Subject: [PATCH] fix: file: Rename fcheck lookup_fd_rcu (v5.10.220) + +See upstream backported commit: + + commit c4716bb296504cbc64aeefb370df44e821214c44 + Author: Eric W. Biederman <ebied...@xmission.com> + Date: Fri Nov 20 17:14:27 2020 -0600 + + file: Rename fcheck lookup_fd_rcu + + [ Upstream commit 460b4f812a9d473d4b39d87d37844f9fc30a9eb3 ] + + Also remove the confusing comment about checking if a fd exists. I + could not find one instance in the entire kernel that still matches + the description or the reason for the name fcheck. + + The need for better names became apparent in the last round of + discussion of this set of changes[1]. + + [1] https://lkml.kernel.org/r/CAHk-=wj8BQbgJFLa+J0e=iT-1qpmCRTbPAJ8gd6MJQ=kbrp...@mail.gmail.com + Link: https://lkml.kernel.org/r/20201120231441.29911-10-ebied...@xmission.com + +Change-Id: Ib880bd8feef1c5d75d2a018cd93a1d464485ab7b +Signed-off-by: Michael Jeanson <mjean...@efficios.com> +Signed-off-by: Mathieu Desnoyers <mathieu.desnoy...@efficios.com> +--- + wrapper/fdtable.h | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/wrapper/fdtable.h b/wrapper/fdtable.h +index d768c10f..167395a1 100644 +--- a/wrapper/fdtable.h ++++ b/wrapper/fdtable.h +@@ -12,7 +12,8 @@ + #include <linux/fdtable.h> + #include <linux/sched.h> + +-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) ++#if ((LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,11,0)) || \ ++ LTTNG_KERNEL_RANGE(5,10,220, 5,11,0)) + static inline + struct file *lttng_lookup_fd_rcu(unsigned int fd) + { +-- +2.47.2 + diff -Nru lttng-modules-2.12.5/debian/patches/series lttng-modules-2.12.5/debian/patches/series --- lttng-modules-2.12.5/debian/patches/series 2023-09-29 04:57:49.000000000 -0400 +++ lttng-modules-2.12.5/debian/patches/series 2025-02-18 14:19:26.000000000 -0500 @@ -2,3 +2,4 @@ fix-adjust-range-v5.10.137-in-block-probe.patch fix-random-tracepoints-removed-in-stable-kernels.patch fix-jbd2-use-the-correct-print-format.patch +fix-file-Rename-fcheck-lookup_fd_rcu-v5.10.220.patch