lttng-modules:stable-2.10

Last commit made on 2021-02-16
Get this branch:
git clone -b stable-2.10 https://git.launchpad.net/lttng-modules

Branch merges

Branch information

Name:
stable-2.10
Repository:
lp:lttng-modules

Recent commits

9e932f9... by Mathieu Desnoyers

Document last supported kernel version for stable-2.10 branch

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Ie554bb04840f799c34b0f28657cf982969991797

5873cbc... by Mathieu Desnoyers

Fix: do not use bdi_unknown_name symbol

Use the GPL-exported bdi_dev_name introduced in kernel 5.7. Do not use
static inline bdi_dev_name in prior kernels because it uses the bdi_unknown_name
symbol which is not exported to GPL modules.

Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I8b4e4fd84ecacef7942b308e615ca88db8dce7b6

3b8be22... by Mathieu Desnoyers

fix: memcg: fix a crash in wb_workfn when a device disappears (5.6)

See upstream commit:

commit 68f23b89067fdf187763e75a56087550624fdbee
("memcg: fix a crash in wb_workfn when a device disappears")

It is currently backported into stable branches 5.4 and 5.5, but appears
to be missing from the 4.4, 4.9, 4.14, 4.19 LTS branches.

Implement our own lttng_bdi_dev_name wrapper to provide this fix on
builds against stable kernels which do not have this fix.

There is one user-visible change with this commit: for builds against
kernels < 4.4.0, the writeback_work_class events did use the
default_backing_dev_info to handle cases where the device is NULL,
writing "default" into the trace. This behavior is now aligned to
match what is done in kernels >= 4.4.0, which is to write "(unknown)"
into the name field.

Link: https://<email address hidden>>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I0823643aa2f9d4c2b9f2005748a2adfd4457979a

7d2faa9... by Mathieu Desnoyers

Fix: writeback: out-of-bound reads

Use ctf_string rather than ctf_array_text for name fields, because the
source strings are not guaranteed to be at least 32 bytes.

Signed-off-by: Mathieu Desnoyers <email address hidden>

a7781f7... by Michael Jeanson <email address hidden>

fix: Add one digit to RHEL major release version

Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I641d0a98e1a7b610b373b85bc4c8325c8dd77955

e362ba5... by Michael Jeanson <email address hidden>

fix: Add one digit to SLES minor release version

Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I150b5b5d2bd5a3fc3cadaef5fcb26a29baccba3c

ea14d58... by Michael Jeanson <email address hidden>

fix: RT_PATCH_VERSION is close to overflow

We allocated only 8bits for RT_PATCH_VERSION in LTTNG_RT_VERSION_CODE,
the current RT patch version for the 4.4 branch is currently 214 which
is getting close to 256. Bump it to 16bits to avoid breakage in the
future.

Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: If0154ab5d8970134bf27a97c9ebd4310150ca126

1dc55aa... by Michael Jeanson <email address hidden>

fix: cast LTTNG_KERNEL_VERSION/LTTNG_LINUX_VERSION_CODE to uint64_t

Cast our version macros to an unsigned 64bits value to prevent
overflowing when we append distro specific version information.

Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Ia76058c7b019e16545786d16d4b49aefb7c36e14

07842fe... by Michael Jeanson <email address hidden>

fix: UTS_UBUNTU_RELEASE_ABI is close to overflow

We allocated only 8bits for UTS_UBUNTU_RELEASE_ABI in
LTTNG_UBUNTU_KERNEL_VERSION, the current Xenial kernel has an ABI of 207
which is getting close to 256. Bump it to 16bits to avoid breakage in
the future.

Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: Ib094b73d42e81aeeb74206224373a032d5c65dee

82151df... by Michael Jeanson <email address hidden>

fix: sublevel version overflow in LINUX_VERSION_CODE

The 4.4.256 and 4.9.256 stable release overflow the 8bits allocated to
the sublevel in LINUX_VERSION_CODE which ends means they report
themselves as 4.5.0 and 4.10.0 respectively. The next releases in these
stables branches will have sublevel clamped at 255 and will thus report
themselves as 4.4.255 and 4.9.255 for all subsequent releases.

We need a way to way to properly detect these release since I doubt they
will stop breaking tracepoints declarations. As a workaround, extract
the version information from the Makefile in the kernel headers and use
this information to generate a version code when the sublevel is equal
or greater than 256.

Signed-off-by: Michael Jeanson <email address hidden>
Signed-off-by: Mathieu Desnoyers <email address hidden>
Change-Id: I07c0747b0aba00fc2efa3b084edaf61be4e4c570