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

Ricardo Branco
2026-02-20T16:46:02Z

On 2/20/26 4:47 PM, Andrea Cervesato wrote:
> On Fri Feb 20, 2026 at 4:43 PM CET, Ricardo Branco wrote:
>>
>> On 2/20/26 4:32 PM, Andrea Cervesato wrote:
>>>> +
>>>> + sa.sa_handler = sigbus_handler;
>>>> + sigemptyset(&sa.sa_mask);
>>>> + SAFE_SIGACTION(SIGBUS, &sa, NULL);
>>>> +
>>>> + set_pages();
>>> This is done every cycle of -i > 1, but memory is never released and
>>> done once in cleanup().
>> I'm moving sigaction to setup but set_pages() is called in run() on the
>> rest of the tests.
> But all other tests also have a reset_pages() at the end of run()

Because I renamed reset_pages() to cleanup().

Will follow the template of the other tests in the next v5.