fix: sublevel version overflow in LINUX_VERSION_CODE
authorMichael Jeanson <mjeanson@efficios.com>
Fri, 5 Feb 2021 17:08:40 +0000 (12:08 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 10 Feb 2021 15:51:40 +0000 (10:51 -0500)
commit82151df0af0a93508975b15fc26f1fe151d8c6c3
tree2dc8fb3f67ca377e9942a5890e4e7c4429bb74fd
parent360d3efee55154a55c18be32175bee608dcb21df
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 <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I07c0747b0aba00fc2efa3b084edaf61be4e4c570
Makefile.ABI.workarounds
lttng-kernel-version.h
This page took 0.025376 seconds and 4 git commands to generate.