[LTP] [PATCH v4] userfaultfd: Add test using UFFDIO_POISON
Ricardo Branco
rbranco@suse.de
Mon Feb 23 14:16:28 CET 2026
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.
More information about the ltp
mailing list