[LTP] [PATCH v3] userfaultfd: Minor fixes
Cyril Hrubis
chrubis@suse.cz
Tue May 5 14:02:26 CEST 2026
Hi!
> -static void *handle_thread(void)
> +static void *handle_thread(void *arg LTP_ATTRIBUTE_UNUSED)
> {
> static struct uffd_msg msg;
> struct uffdio_writeprotect uffdio_writeprotect = {};
> @@ -53,7 +56,7 @@ static void *handle_thread(void)
> SAFE_READ(1, uffd, &msg, sizeof(msg));
>
> if (msg.event != UFFD_EVENT_PAGEFAULT)
> - tst_brk(TFAIL, "Received unexpected UFFD_EVENT %d", msg.event);
> + tst_brk(TFAIL | TERRNO, "Received unexpected UFFD_EVENT %d", msg.event);
Agree with Andrea that the TERRNO here is wrong. The rest is okay.
With the TERRNO removed:
Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list