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

Andrea Cervesato andrea.cervesato@suse.com
Thu Mar 12 14:13:39 CET 2026


Hi!

> +
> +static void reset_pages(void)
> +{
> +	if (page) {
> +		SAFE_MUNMAP(page, page_size);
> +		page = NULL;
> +	}
> +}
> +
> +static void *handle_thread(void)

It looks good, but I noticed that all threads handlers in the userfaultfd testing
suite are not using the POSIX syntax:

    static void *handle_thread(void *arg LTP_ATTRIBUTE_UNUSED)

We should can change it later on.

Acked-by: Andrea Cervesato <andrea.cervesato@suse.com>

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list