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

Cyril Hrubis
2026-02-23T11:00:12Z

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