[LTP] [PATCH] listmount04.c: update struct mnt_id_req support to kernel >= 6.17

Po-Hsu Lin po-hsu.lin@canonical.com
Wed Jan 7 11:27:25 CET 2026


On Tue, 6 Jan 2026 at 20:04, Petr Vorel <pvorel@suse.cz> wrote:

> > The kernel change 78f0e33cd6c93 ("fs/namespace: correctly handle errors
> > returned by grab_requested_mnt_ns") from 6.18 has been ported to upstream
> > 6.17.9 [1][2].
>
> Good catch.
>
> > Therefore change the expectation from >= 6.18 to >= 6.17 accodingly.
>
> > [1] https://lwn.net/Articles/1047684/
> > [2]
> https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.17.9&id=8ff97ade
>
> ...
> >  static void setup(void)
> >  {
> > -     if (tst_kvercmp(6, 18, 0) >= 0)
> > -             kver = AFTER_6_18;
> > +     if (tst_kvercmp(6, 17, 0) >= 0)
>
> Shouldn't we match 6.17.9 then?
> It's not about the fix but about a kernel change.
>
> Hi Petr,
thanks for the feedback,
in this case should I also modify the macros to BEFORE_6_17_9 and
AFTER_6_17_9?


> Kind regards,
> Petr
>


More information about the ltp mailing list