From: Petr Vorel <pvorel@suse.cz>
To: linuxtestproject.agent@gmail.com
Cc: ltp@lists.linux.it
Subject: Re: [LTP] ioctl_pidfd06: Update kernel version
Date: Fri, 24 Apr 2026 12:01:33 +0200 [thread overview]
Message-ID: <20260424100133.GB500158@pevik> (raw)
In-Reply-To: <20260424080912.4039-1-linuxtestproject.agent@gmail.com>
> Hi Petr,
> On 2026-04-24, Petr Vorel wrote:
> > ioctl_pidfd06: Update kernel version
> > - if (tst_kvercmp(7, 0, 0) >= 0)
> > + if (tst_kvercmp(6, 18, 14) >= 0)
> > err_nr = EREMOTE;
> tst_kvercmp(6, 18, 14) >= 0 is too broad: because tst_kvercmp compares
> (major, minor, patch) as ordered integers, it evaluates true for all
> v6.19.x, including v6.19.0-v6.19.9 which do not carry the backport
> (which landed in v6.19.10). Those kernels would see a false EREMOTE
> expectation and TFAIL.
> The check needs to handle both stable branches independently, e.g.:
> if (tst_kvercmp(7, 0, 0) >= 0 ||
> (tst_kvercmp(6, 18, 14) >= 0 && tst_kvercmp(6, 19, 0) < 0) ||
> tst_kvercmp(6, 19, 10) >= 0)
> err_nr = EREMOTE;
Obviously tst_kvercmp(6, 19, 10) >= 0 will match also tst_kvercmp(7, 0, 0) >= 0,
therefore "tst_kvercmp(7, 0, 0) >= 0" is not needed.
Kind regards,
Petr
> Also, since this corrects a bug (TFAIL on kernels with the backport),
> please add a Fixes: tag referencing the commit that introduced the
> original tst_kvercmp(7, 0, 0) check.
Do we want to add Fixes when original commit was correct?
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-04-24 10:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-24 6:05 [LTP] [PATCH 1/1] ioctl_pidfd06: Update kernel version Petr Vorel
2026-04-24 6:21 ` Li Wang
2026-04-24 6:31 ` Petr Vorel
2026-04-24 7:07 ` Li Wang
2026-04-24 7:33 ` Jan Stancek via ltp
2026-04-24 8:03 ` Wei Gao via ltp
2026-04-24 9:59 ` Petr Vorel
2026-04-24 8:09 ` [LTP] " linuxtestproject.agent
2026-04-24 10:01 ` Petr Vorel [this message]
2026-04-24 10:02 ` Petr Vorel
-- strict thread matches above, loose matches on Subject: below --
2026-04-24 10:15 [LTP] [PATCH v2 1/1] " Petr Vorel
2026-04-24 10:25 ` [LTP] " linuxtestproject.agent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260424100133.GB500158@pevik \
--to=pvorel@suse.cz \
--cc=linuxtestproject.agent@gmail.com \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox