Re: [LTP] [PATCH] userfaultfd03.c: Require kernel 6.1

Li Wang via ltp
2026-03-27T05:41:45Z

On Thu, Mar 26, 2026 at 01:52:15PM +0100, Petr Vorel wrote:
> Required kernel functionality was added in kernel 6.1 (not 6.11)
> 2d5de004e009 ("userfaultfd: add /dev/userfaultfd for fine grained access control")
>
> Because it's a new kernel functionality which has not been backported to
> enterprise kernels we can simplify check with just .min_kver.
>
> Fixes: b63ab54aee ("userfaultfd: Do not use min_kver as gate for test")
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> Hi all,
>
> @Li I suppose RHEL kernel haven't backport this.

Why do you lack confidence in RHEL? haha :)

I have confimed that both RHEL 9 and 10 have backported this
feature (commit 2d5de004e009).

As RHEL 9 is based on an older kernel(5.14) but includes this
backport, changing this to .min_kver = "6.1" will cause the
test to be incorrectly skipped (TCONF) on RHEL 9 systems.

Anyway, back to the topic, what is the point of creating this patch?
Anything I missed?

--
Regards,
Li Wang