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

Ricardo Branco
2026-02-23T13:16:50Z

On 2/23/26 11:59 AM, Cyril Hrubis wrote:
> 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
>

Arghhh.  Sorry.  Fixed in v6.