[LTP] [PATCH] lib: Check minimal supported kernel version
Kubaj, Piotr
piotr.kubaj@intel.com
Mon Sep 7 10:32:49 CEST 2026
W dniu pią, 04.09.2026 o godzinie 11∶20 +0200, użytkownik Cyril Hrubis
napisał:
> Hi!
> > LTP does not support kernels older than 4.4, but this requirement
> > was
> > only documented in static text without automated runtime
> > validation.
> >
> > Define the minimal supported kernel version in tst_kvercmp.h so
> > that
> > the documentation fetches it dynamically and the core library
> > aborts
> > unsupported kernels with TCONF during test setup.
>
> Great idea, but I wouldn't tst_brk() on older kernels, I would just
> print a message that there may be failures becuase older kernels are
> not
> supported or tested.
>
> LTP has been historically used for many different purposes, e.g. for
> testing BSD compatibility layout for running Linux binaries and I
> fear
> that hard stop on older kernel versions would break these usecases.
>
> --
> Cyril Hrubis
> chrubis@suse.cz
Hi,
speaking with my pkubaj@FreeBSD.org hat on, see
https://cgit.freebsd.org/src/tree/sys/compat/linux/linux_mib.h
The current claimed compatibility level is Linux 5.15.0. Even if you
look at
https://cgit.freebsd.org/src/tree/sys/compat/linux/linux_mib.h?h=releng%2F14.4
(which is the oldest still-supported version), it's also 5.15.0.
I think NetBSD also has a Linux compatibility layer, but I'm not sure
how up-to-date it is.
---------------------------------------------------------------------
Intel Technology Poland sp. z o.o.
ul. Slowackiego 173 | 80-298 Gdansk | Sad Rejonowy Gdansk Polnoc | VII Wydzial Gospodarczy Krajowego Rejestru Sadowego - KRS 101882 | NIP 957-07-52-316 | Kapital zakladowy 200.000 PLN.
Spolka oswiadcza, ze posiada status duzego przedsiebiorcy w rozumieniu ustawy z dnia 8 marca 2013 r. o przeciwdzialaniu nadmiernym opoznieniom w transakcjach handlowych.
Ta wiadomosc wraz z zalacznikami jest przeznaczona dla okreslonego adresata i moze zawierac informacje poufne. W razie przypadkowego otrzymania tej wiadomosci, prosimy o powiadomienie nadawcy oraz trwale jej usuniecie; jakiekolwiek przegladanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). If you are not the intended recipient, please contact the sender and delete all copies; any review or distribution by others is strictly prohibited.
More information about the ltp
mailing list