From: Petr Vorel <pvorel@suse.cz>
To: Cyril Hrubis <chrubis@suse.cz>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] [PATCH] userfaultfd03.c: Require kernel 6.1
Date: Fri, 27 Mar 2026 17:44:59 +0100 [thread overview]
Message-ID: <20260327164459.GA1097030@pevik> (raw)
In-Reply-To: <acarQ7I8FUNNtDpg@yuki.lan>
> Hi!
> > > > > Nothing besides trying to fix 6.11 (which was not the case) and trying to
> > > > > simplify. But whole effort is somehow relevant to general checking test
> > > > > requirements cleanup (we had a discussion runtime checks vs. kconfig/min_kver
> > > > > which resulted in Cyril's "lib: tst_kconfig: Add runtime checks" [2]).
> > > > I guess that the check for all userfaultfd tests should be moved to the
> > > > tst_kconfig.c once my patch that adds runtime checks there is in.
> > > Or I can send a V3 that adds that check as well.
> > Sure, having /dev/userfaultfd in kconfig check would be a benefit. Thanks!
> However it looks like we cannot do that, the /dev/userfaultfd was added
> into 6.1 while the usefaultfd syscall existed since 4.3. Hence tests
> that need /dev/userfaultfd need additional checks.
We require for userfaultfd05.c also CONFIG_HAVE_ARCH_USERFAULTFD_WP=y.
Maybe bound /dev/userfaultfd check to it? OTOH
CONFIG_HAVE_ARCH_USERFAULTFD_WP=y is much older (v5.19-rc1) and original commit
in 6.1 [1] does not refer to it.
Also, general note about .needs_kconfig callbacks: I'm glad you chose TINFO
for "%s=%c present but disabled at runtime" message which is always visible,
because people will not expect runtime checks.
Kind regards,
Petr
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2d5de004e009
> However it may be a good idea to add .needs_kconfig to all the
> userfaultfd tests we have.
+1. 4 of them does not have it.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2026-03-27 16:45 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-26 12:52 [LTP] [PATCH] userfaultfd03.c: Require kernel 6.1 Petr Vorel
2026-03-26 21:35 ` Ricardo Branco
2026-03-27 5:41 ` Li Wang via ltp
2026-03-27 9:05 ` Petr Vorel
2026-03-27 13:17 ` Cyril Hrubis
2026-03-27 13:19 ` Cyril Hrubis
2026-03-27 15:17 ` Petr Vorel
2026-03-27 16:07 ` Cyril Hrubis
2026-03-27 16:44 ` Petr Vorel [this message]
2026-03-30 14:58 ` Cyril Hrubis
2026-03-30 22:53 ` Petr Vorel
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=20260327164459.GA1097030@pevik \
--to=pvorel@suse.cz \
--cc=chrubis@suse.cz \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.