[LTP] [PATCH v4] userfaultfd: Add test using UFFDIO_POISON

Cyril Hrubis chrubis@suse.cz
Mon Feb 23 11:59:13 CET 2026


Hi!
> >> +	uffd = SAFE_USERFAULTFD(O_CLOEXEC | O_NONBLOCK, false);
> > Maybe this one should be closed inside run(), or even remove it from
> > static variables and passed to the thread, so we keep it inside run().
> 
> But then we'd also have to fix the other tests.
> >> +
> >> +static struct tst_test test = {
> >> +	.test_all = run,
> >> +	.cleanup = cleanup,
> >> +};
> > You ar missing the runtest entry.
> 
> There's no runtest function.  For now I'm using the other tests as template.

Runtest entry in runtest/syscalls

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list