[{"id":3679986,"web_url":"http://patchwork.ozlabs.org/comment/3679986/","msgid":"<20260421170646.3943-1-linuxtestproject.agent@gmail.com>","list_archive_url":null,"date":"2026-04-21T17:06:46","subject":"Re: [LTP] Make userfaultfd0{1, 3, 4} LTP tests valgrind compatible","submitter":{"id":93132,"url":"http://patchwork.ozlabs.org/api/people/93132/","name":null,"email":"linuxtestproject.agent@gmail.com"},"content":"Hi Martin,\n\nOn Tue, 21 Apr 2026, Martin Cermak wrote:\n> Make userfaultfd0{1, 3, 4} LTP tests valgrind compatible\n\nThe commit message is missing a Signed-off-by: tag.\n\n> -static void *handle_thread(void)\n> +static void *pagefault_handler(void)\n\nSince this is no longer a thread entry point, change the return type to\nvoid and drop the return NULL.\n\n> /*\\\n>  * Force a pagefault event and handle it using :manpage:`userfaultfd(2)`\n>  * from a different thread.\n>  */\n\nThe handler now runs in a forked child, not a thread. Update the doc\ncomment in all three files.\n\n[...]\n\n> +\tpid = SAFE_FORK();\n> +\t\tif (pid == 0) {\n> +\t\tpagefault_handler();\n\nuserfaultfd03.c: extra leading tab on the `if` line.\n\n[...]\n\n> +\tSAFE_WAITPID(pid, NULL, 0);\n>  \treset_pages();\n\nIn the original code the thread closed uffd for the whole process (threads\nshare the fd table). With fork, the child closes only its own copy; the\nparent's uffd is never closed. Add SAFE_CLOSE(uffd) before reset_pages()\nin all three tests.\n\nAlso, tst_safe_pthread.h is no longer used in userfaultfd03.c and\nuserfaultfd04.c after this change; remove the include.\n\n---\nNote:\n\nOur agent completed the review of the patch.\n\nThe agent can sometimes produce false positives although often its\nfindings are genuine. If you find issues with the review, please\ncomment this email or ignore the suggestions.\n\nRegards,\nLTP AI Reviewer","headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256\n header.s=20251104 header.b=kIYr0D3u;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)"],"Received":["from picard.linux.it (picard.linux.it [213.254.12.146])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0TKq5j4tz1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 03:06:55 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id DFDB23C5376\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 21 Apr 2026 19:06:53 +0200 (CEST)","from in-7.smtp.seeweb.it (in-7.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::7])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id C96B83C5376\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 19:06:49 +0200 (CEST)","from mail-qk1-x744.google.com (mail-qk1-x744.google.com\n [IPv6:2607:f8b0:4864:20::744])\n (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-7.smtp.seeweb.it (Postfix) with ESMTPS id 7B4FE20075B\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 19:06:49 +0200 (CEST)","by mail-qk1-x744.google.com with SMTP id\n af79cd13be357-8d6d5e45c43so520793685a.3\n for <ltp@lists.linux.it>; Tue, 21 Apr 2026 10:06:49 -0700 (PDT)","from\n runnervmeorf1.d25eko5qp01u1c5angi00huzxc.ex.internal.cloudapp.net\n ([135.232.208.151]) by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8e7d8edb77esm1126710385a.22.2026.04.21.10.06.47\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 21 Apr 2026 10:06:47 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1776791208; x=1777396008; darn=lists.linux.it;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=N9W/jprFqdqjGEeT1gr5ncjSOURdzEYmmLu2NzQeRQQ=;\n b=kIYr0D3ulRH1meWz6XZpC4ZPHCzJNMTPK/fi0uRwKt9blMGU7j1t1j+pGN8fAD1Y9J\n Sg0SDViHZWwKIHo6Zzb5zwdUkrKL1eVACEurXmrvY9zbS8rS4fhzfJlATMPn12kNh2UP\n YN+nfjHKCg6Gb1yGvHRR77Tl3wEPDoqd3sUYnoREYcDzpMzs2Ui7aPCyPByIeJshuBZx\n OKGdFpSRiSnyhvFMMGm/ozs/hUFjb/JHSCqLA4200jD1UrB2HzALlE93IvfHcHhPezpN\n lypl7LnVUikoxVf1PsdeEEuk+R8+x5Ur1ZLFNYMzO9E+/HtemjPrDGYs6X11tKEiyOPd\n JnYQ==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1776791208; x=1777396008;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=N9W/jprFqdqjGEeT1gr5ncjSOURdzEYmmLu2NzQeRQQ=;\n b=IoNe4NgPSLYyppe2ziSW/Keui6fZElJW1ysn7XA/gHSfPU0JQdg92eTwdcrEFIVXLs\n GPXv83NsqzVr1tkhzxq7ltYzejjkWqoyxqrBArq/8MduOFFmWlypaJqGT/hJ3TPuhXCL\n sSFbJvDLVHxcpnZc/+RvYCxz7u7E3RYmNf1qtJT0ZG9K9khrv96HHYxtNF2dyKrU3rqa\n 1aPZg2bNL1ZWcXT2o46dD2iJEapDH7AZFdxKE3KpopzYcGsja8HT9OsKI0G2JuP4Jurk\n DfcJci2z0PvjcE96UY4AleDyBusrzR8aCmzpmEqBo6/mz022WaitHI9BGoIqaTuH8e6c\n HazA==","X-Gm-Message-State":"AOJu0Yy3kX6wLGRfh0GuS/8pt3ixoKxLnMHICr6b7vEcp701HR36EP/k\n 8d7qoz9TnWLxg9PxoeZSJWLNBphixLVr4LMW4n4fqIR3duChiRCl01sx","X-Gm-Gg":"AeBDiet8bAIDdcW/PeqNFf+bsGdp4nov841ycw7Zhna7sjv+n7rJ74QtB1jWWfsIKNa\n hIO4bDdrzF98IM6i/GO6naj0ETl6yQ3bMnZ+ZQa+SeJDhpc7AeW6YUE6LqdJXrrYgjHet0nElfC\n hKdFsMnPq7OkNLhaPBk1L6qFKq8aa2Itt6l2kQrH/bdrYlKwbcNqCfTv26Xx/yGPNe5GjstVyNb\n jYem1aS5/ZCIXjHlH0HVKcEWJh7gL1RM4FvEZtWms0BZK+tN3YNOlu38NDMFEJRptjrR9vACu4L\n 3SC5cE3Hs777j2G21qESGzWzKDtacHjTQ272Inp8BPgX/1LZQajskj5rkUOaIVVxArPrT+7L3CC\n ALpXgQZKxBBSY39Hb4ivhiHsllbKQuNAmEYLvz7k8/zoobEfWjxkEsjY2vgEd0EJmHe7sIqr21k\n HlF2HFxuARW9Pdm8pnKO7Aw07/1rxsBgFxRiNQEsMO45MJovImAAjpNJf9zTaiql8fDjY7uj+bA\n EtqWg9y0JnQExX5rlJ/2mhGoSStFQ7tlAy9Z3l3GnFTwUQHwWKsGYsHTTbGioE=","X-Received":"by 2002:a05:620a:258b:b0:8da:384b:9544 with SMTP id\n af79cd13be357-8e78fa1eba1mr2768995385a.2.1776791208197;\n Tue, 21 Apr 2026 10:06:48 -0700 (PDT)","From":"linuxtestproject.agent@gmail.com","To":"Martin Cermak <mcermak@redhat.com>","Date":"Tue, 21 Apr 2026 17:06:46 +0000","Message-ID":"<20260421170646.3943-1-linuxtestproject.agent@gmail.com>","X-Mailer":"git-send-email 2.53.0","In-Reply-To":"<20260421152349.1673057-1-mcermak@redhat.com>","References":"<20260421152349.1673057-1-mcermak@redhat.com>","MIME-Version":"1.0","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-7.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-7.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"Re: [LTP] Make userfaultfd0{1, 3, 4} LTP tests valgrind compatible","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","Cc":"ltp@lists.linux.it","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}},{"id":3680228,"web_url":"http://patchwork.ozlabs.org/comment/3680228/","msgid":"<20260422053712.GB392764@pevik>","list_archive_url":null,"date":"2026-04-22T05:37:12","subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","submitter":{"id":70792,"url":"http://patchwork.ozlabs.org/api/people/70792/","name":"Petr Vorel","email":"pvorel@suse.cz"},"content":"Hi Martin,\n\n[ Cc Ricardo ]\n\n> Historically a page fault is handled in the linux kernel. The\n> userfaultfd mechanism [1] was introduced in Linux 4.3 (2015) to allow\n> custom handling page faults in userspace. It allows for custom page\n> fault handling strategies such as lazy loading, live migration of qemu\n> VMs, etc.  With userfaultfd, kernel communicates with userspace via a\n> file descriptor (userfaultfd).  Userfaultfd LTP tests cover this.\n\n> These tests set up a main thread and a page fault handler thread.  Once\n> a page fault happens in the main thread, kernel stops it, and let's the\n> handler take care of the page fault.\n\n> This is a problem for Valgrind, because it serializes the threads\n> execution (using one \"big mutex\", VG_(acquire_BigLock)).  Once kernel\n> stops the main thread, under valgrind, the handler thread doesn't have\n> a chance to handle the page fault.  Valgrind stalls till the timeout\n> (adjustable via LTP_TIMEOUT_MUL ;)\n\n> However, some of the testcases can be easily changed to use forked\n> processes instead of threads.  That's what this patch does.  When\n> client program forks, Valgrind forks too, and that allows for the needed\n> parallelism to handle the page fault.\n\nYou understand process vs. threads more than me. But shouldn't mmap() use\nMAP_SHARED instead of MAP_PRIVATE for those which aren't using /dev/userfaultfd?\n\n> This redesign can't be easily done with some of the tests, such as e.g.\n> userfaultfd02 where both the main thread and the handler thread need to\n> share the address space.  That could be done via clone() and is proven\n\nWhat is the difference with userfaultfd02 then?\n\n> to work.  But unfortunately there is another Valgrind limitation in clone\n> flags it supports, so this also isn't a practical way to go.\n\n> That said, this update tweaks userfaultfd01, userfaultfd03, and\n> userfaultfd04 in a way that they become \"compatible\" with Valgrind.\n> It's a test coverage improvement.\n\nAlso doc should be updated (mentions thread).\n\nPlease don't forget to add it next time:\nSigned-off-by: Martin Cermak <mcermak@redhat.com>\n\n> [1] https://www.kernel.org/doc/html/latest/admin-guide/mm/userfaultfd.html\n> ---\n>  .../kernel/syscalls/userfaultfd/userfaultfd01.c   | 13 +++++++++----\n>  .../kernel/syscalls/userfaultfd/userfaultfd03.c   | 15 ++++++++++-----\n>  .../kernel/syscalls/userfaultfd/userfaultfd04.c   | 13 +++++++++----\n>  3 files changed, 28 insertions(+), 13 deletions(-)\n\n> diff --git a/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c b/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c\n> index 7368d3863..c927cda95 100644\n> --- a/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c\n> +++ b/testcases/kernel/syscalls/userfaultfd/userfaultfd01.c\n> @@ -57,7 +57,7 @@ static void reset_pages(void)\n>  \tSAFE_MUNMAP(copy_page, page_size);\n>  }\n\n> -static void *handle_thread(void)\n> +static void *pagefault_handler(void)\n>  {\n>  \tstatic struct uffd_msg msg;\n>  \tstruct uffdio_copy uffdio_copy = {};\n> @@ -91,7 +91,7 @@ static void *handle_thread(void)\n\n>  static void run(unsigned int i)\n>  {\n> -\tpthread_t thr;\n> +\tpid_t pid;\n>  \tstruct uffdio_api uffdio_api = {};\n>  \tstruct uffdio_register uffdio_register;\n>  \tstruct tcase *tc = &tcases[i];\n> @@ -112,7 +112,11 @@ static void run(unsigned int i)\n\n>  \tSAFE_IOCTL(uffd, UFFDIO_REGISTER, &uffdio_register);\n\n> -\tSAFE_PTHREAD_CREATE(&thr, NULL, (void *) handle_thread, NULL);\n> +\tpid = SAFE_FORK();\n> +\tif (pid == 0) {\n> +\t\tpagefault_handler();\n> +\t\t_exit(0);\n> +\t}\n\n>  \tchar c = page[0xf];\n\n> @@ -121,7 +125,7 @@ static void run(unsigned int i)\n>  \telse\n>  \t\ttst_res(TFAIL, \"Pagefault not handled!\");\n\n> -\tSAFE_PTHREAD_JOIN(thr, NULL);\n> +\tSAFE_WAITPID(pid, NULL, 0);\n>  \treset_pages();\n>  }\n\n> @@ -129,4 +133,5 @@ static struct tst_test test = {\n>  \t.setup = setup,\n>  \t.test = run,\n>  \t.tcnt = ARRAY_SIZE(tcases),\n> +\t.forks_child = 1,\n>  };\n> diff --git a/testcases/kernel/syscalls/userfaultfd/userfaultfd03.c b/testcases/kernel/syscalls/userfaultfd/userfaultfd03.c\n> index b65f39eca..f5d3be1ae 100644\n> --- a/testcases/kernel/syscalls/userfaultfd/userfaultfd03.c\n> +++ b/testcases/kernel/syscalls/userfaultfd/userfaultfd03.c\n> @@ -61,7 +61,7 @@ static void reset_pages(void)\n>  \tSAFE_MUNMAP(copy_page, page_size);\n>  }\n\n> -static void *handle_thread(void)\n> +static void *pagefault_handler(void)\n>  {\n>  \tstatic struct uffd_msg msg;\n>  \tstruct uffdio_copy uffdio_copy = {};\n> @@ -95,7 +95,7 @@ static void *handle_thread(void)\n\n>  static void run(void)\n>  {\n> -\tpthread_t thr;\n> +\tpid_t pid;\n>  \tstruct uffdio_api uffdio_api = {};\n>  \tstruct uffdio_register uffdio_register;\n\n> @@ -112,7 +112,11 @@ static void run(void)\n\n>  \tSAFE_IOCTL(uffd, UFFDIO_REGISTER, &uffdio_register);\n\n> -\tSAFE_PTHREAD_CREATE(&thr, NULL, (void *) handle_thread, NULL);\n> +\tpid = SAFE_FORK();\n> +\t\tif (pid == 0) {\n> +\t\tpagefault_handler();\n> +\t\t_exit(0);\n> +\t}\n\n>  \tchar c = page[0xf];\n\n> @@ -121,7 +125,7 @@ static void run(void)\n>  \telse\n>  \t\ttst_res(TFAIL, \"Pagefault not handled via /dev/userfaultfd\");\n\n> -\tSAFE_PTHREAD_JOIN(thr, NULL);\n> +\tSAFE_WAITPID(pid, NULL, 0);\n>  \treset_pages();\n>  }\n\n> @@ -132,5 +136,6 @@ static struct tst_test test = {\n>  \t.needs_kconfigs = (const char *[]) {\n>  \t\t\"CONFIG_USERFAULTFD=y\",\n>  \t\tNULL\n> -\t}\n> +\t},\n> +\t.forks_child = 1,\n>  };\n> diff --git a/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c b/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c\n> index 4eb811e45..13883a711 100644\n> --- a/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c\n> +++ b/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c\n> @@ -33,7 +33,7 @@ static void reset_pages(void)\n>  \tSAFE_MUNMAP(page, page_size);\n>  }\n\n> -static void *handle_thread(void)\n> +static void *pagefault_handler(void)\n>  {\n>  \tstatic struct uffd_msg msg;\n>  \tstruct uffdio_zeropage uffdio_zeropage = {};\n> @@ -64,7 +64,7 @@ static void *handle_thread(void)\n\n>  static void run(void)\n>  {\n> -\tpthread_t thr;\n> +\tpid_t pid;\n>  \tstruct uffdio_api uffdio_api = {};\n>  \tstruct uffdio_register uffdio_register;\n\n> @@ -81,7 +81,11 @@ static void run(void)\n\n>  \tSAFE_IOCTL(uffd, UFFDIO_REGISTER, &uffdio_register);\n\n> -\tSAFE_PTHREAD_CREATE(&thr, NULL, (void *) handle_thread, NULL);\n> +\tpid = SAFE_FORK();\n> +\tif (pid == 0) {\n> +\t\tpagefault_handler();\n> +\t\t_exit(0);\n> +\t}\n\n>  \tfor (int i = 0; i < page_size; i++) {\n>  \t\tif (page[i] != 0) {\n> @@ -92,10 +96,11 @@ static void run(void)\n\n>  \ttst_res(TPASS, \"Pagefault handled with UFFDIO_ZEROPAGE\");\n\n> -\tSAFE_PTHREAD_JOIN(thr, NULL);\n> +\tSAFE_WAITPID(pid, NULL, 0);\n>  \treset_pages();\n>  }\n\n>  static struct tst_test test = {\n>  \t.test_all = run,\n> +\t.forks_child = 1,\n>  };","headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=213.254.12.146; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)","smtp-out2.suse.de;\n\tnone"],"Received":["from picard.linux.it (picard.linux.it [213.254.12.146])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0nzt1nMCz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 15:37:30 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 182D53E259C\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 07:37:28 +0200 (CEST)","from in-6.smtp.seeweb.it (in-6.smtp.seeweb.it [217.194.8.6])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 7DD623E1AA6\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 07:37:24 +0200 (CEST)","from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-6.smtp.seeweb.it (Postfix) with ESMTPS id C1A49140026E\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 07:37:22 +0200 (CEST)","from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org\n [IPv6:2a07:de40:b281:104:10:150:64:97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 792AA5BD47;\n Wed, 22 Apr 2026 05:37:22 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 57A81593AF;\n Wed, 22 Apr 2026 05:37:22 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id hTaLFJJe6GnXKgAAD6G6ig\n (envelope-from <pvorel@suse.cz>); Wed, 22 Apr 2026 05:37:22 +0000"],"Date":"Wed, 22 Apr 2026 07:37:12 +0200","From":"Petr Vorel <pvorel@suse.cz>","To":"Martin Cermak <mcermak@redhat.com>","Message-ID":"<20260422053712.GB392764@pevik>","References":"<20260421152349.1673057-1-mcermak@redhat.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20260421152349.1673057-1-mcermak@redhat.com>","X-Rspamd-Pre-Result":["action=no action; module=replies;\n Message is reply to one we originated","action=no action; module=replies;\n Message is reply to one we originated"],"X-Rspamd-Queue-Id":"792AA5BD47","X-Rspamd-Action":"no action","X-Spam-Score":"-4.00","X-Spam-Level":"","X-Spamd-Result":"default: False [-4.00 / 50.00];\n\tREPLY(-4.00)[]","X-Rspamd-Server":"rspamd1.dmz-prg2.suse.org","X-Spam-Status":"No, score=0.0 required=7.0 tests=SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-6.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-6.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","Reply-To":"Petr Vorel <pvorel@suse.cz>","Cc":"valgrind-developers@lists.sourceforge.net, ltp@lists.linux.it","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}},{"id":3680287,"web_url":"http://patchwork.ozlabs.org/comment/3680287/","msgid":"<319d3965-30f0-49c5-b747-ad16334391e2@suse.de>","list_archive_url":null,"date":"2026-04-22T07:54:34","subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","submitter":{"id":92484,"url":"http://patchwork.ozlabs.org/api/people/92484/","name":"Ricardo Branco","email":"rbranco@suse.de"},"content":"On 4/22/26 7:37 AM, Petr Vorel wrote:\n>> However, some of the testcases can be easily changed to use forked\n>> processes instead of threads.  That's what this patch does.  When\n>> client program forks, Valgrind forks too, and that allows for the needed\n>> parallelism to handle the page fault.\n> You understand process vs. threads more than me. But shouldn't mmap() use\n> MAP_SHARED instead of MAP_PRIVATE for those which aren't using /dev/userfaultfd?\n\nThe documentation for userfaultfd mentions threads.  I'm afraid we'll\nlose vital coverage if we move to forked processes.\n\nPerhaps we should cover both?\n\nAlso checkout UFFD_FEATURE_EVENT_FORK and the BUGS section for this in\nuserfaultfd(2).\nI have like 3 patches for userfaultfd that I'm afraid I'd have to rebase \nthen.\\ Best,\nRicardo","headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=Rb4jI2cq;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.de\n header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=h0BW85Bq;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa\n header.b=fq7mTtIE;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=Gj4yaEr2;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)","smtp-out1.suse.de;\n\tnone"],"Received":["from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0s2K5Rvwz1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 17:54:49 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 90D7D3E2DE6\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 09:54:46 +0200 (CEST)","from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it [217.194.8.3])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id B8DDD3E2D89\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 09:54:42 +0200 (CEST)","from smtp-out1.suse.de (smtp-out1.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-3.smtp.seeweb.it (Postfix) with ESMTPS id 04F991A00700\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 09:54:39 +0200 (CEST)","from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out1.suse.de (Postfix) with ESMTPS id 9DF406A81B;\n Wed, 22 Apr 2026 07:54:35 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 2DAD5593AF;\n Wed, 22 Apr 2026 07:54:35 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id c8SjCbt+6GnqWAAAD6G6ig\n (envelope-from <rbranco@suse.de>); Wed, 22 Apr 2026 07:54:35 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776844476;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=w3gBC0Qpq0Aj9Ic0H6VrWB1NS6ZwkBjSADyl90iOhNk=;\n b=Rb4jI2cq6NkGjDVvKvjDts7taqA5buyKABGmdzm5uNGEGw4auY06S85EAs6+7MNR7ErKeX\n P2daK7AXcCPi76TziLPExOqHAGJnlAvIynebmpmhmrqXDu/DJHdikzAo0MnzaCsTe2RDVB\n h8O46NvECFIF3zHnGFdhayzSVRfO5Yw=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776844476;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=w3gBC0Qpq0Aj9Ic0H6VrWB1NS6ZwkBjSADyl90iOhNk=;\n b=h0BW85BqAViicCe+xxP2JjrxQv1Km0T74gRSCUcpyXQX2RLY8BtWSKDS/k9cTafYexhhrr\n NwoxEEVve1Ns0BBQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776844475;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=w3gBC0Qpq0Aj9Ic0H6VrWB1NS6ZwkBjSADyl90iOhNk=;\n b=fq7mTtIEpXOZBrxcVCZxq9WlA2zx/PPwrPsbthgfF8pcb1WH8CF+f2K6bqFAhzg43B17A4\n LB6TOFdzAHuoeTIf63f8/99OgZcPvMNEzYBxjelNCKtYjFpg810auYMmp2falF09IEv4Oc\n pRnaB1gOKuwG30gNrslcFMYFo9IyH7g=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776844475;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=w3gBC0Qpq0Aj9Ic0H6VrWB1NS6ZwkBjSADyl90iOhNk=;\n b=Gj4yaEr2lBvQ0T/d43Sc31RQPly8xv89Yw4R5UoPSW8mKtSPvOHwM3ieLuYlLC1KzzE4Q7\n 2sxKlOZHF2HxAPCg=="],"Message-ID":"<319d3965-30f0-49c5-b747-ad16334391e2@suse.de>","Date":"Wed, 22 Apr 2026 09:54:34 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","To":"Petr Vorel <pvorel@suse.cz>, Martin Cermak <mcermak@redhat.com>","References":"<20260421152349.1673057-1-mcermak@redhat.com>\n <20260422053712.GB392764@pevik>","Content-Language":"en-US","From":"Ricardo Branco <rbranco@suse.de>","In-Reply-To":"<20260422053712.GB392764@pevik>","X-Spamd-Result":"default: False [-8.30 / 50.00]; REPLY(-4.00)[];\n BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+];\n ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[];\n RCVD_TLS_ALL(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5];\n FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2];\n TO_MATCH_ENVRCPT_ALL(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[imap1.dmz-prg2.suse.org:helo,suse.de:mid]","X-Spam-Score":"-8.30","X-Spam-Level":"","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-3.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-3.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","Cc":"valgrind-developers@lists.sourceforge.net, ltp@lists.linux.it","Content-Transfer-Encoding":"base64","Content-Type":"text/plain; charset=\"utf-8\"; Format=\"flowed\"","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}},{"id":3680587,"web_url":"http://patchwork.ozlabs.org/comment/3680587/","msgid":"<20260422121742.GA419002@pevik>","list_archive_url":null,"date":"2026-04-22T12:17:42","subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","submitter":{"id":70792,"url":"http://patchwork.ozlabs.org/api/people/70792/","name":"Petr Vorel","email":"pvorel@suse.cz"},"content":"> On 4/22/26 7:37 AM, Petr Vorel wrote:\n> > > However, some of the testcases can be easily changed to use forked\n> > > processes instead of threads.  That's what this patch does.  When\n> > > client program forks, Valgrind forks too, and that allows for the needed\n> > > parallelism to handle the page fault.\n> > You understand process vs. threads more than me. But shouldn't mmap() use\n> > MAP_SHARED instead of MAP_PRIVATE for those which aren't using /dev/userfaultfd?\n\n> The documentation for userfaultfd mentions threads.  I'm afraid we'll\n> lose vital coverage if we move to forked processes.\n\n+1, at least some tests would keep threads (not all userfaultfd tests would be\nconverted, but yes, that's why I suggested to use MAP_SHARED, which could be\nsimilar to threads (yes, the difference between processes and threads in Linux\nkernel is not that huge as both are created in clone(), it's mostly about what\nis shared).\n\n> Perhaps we should cover both?\n\nWhat do you mean by \"both\"?\n\nRun test with both processes and threads e.g. via .test_variants?\nBecause combine MAP_SHARED | MAP_PRIVATE is not possible (mutually exclusive).\n\n> Also checkout UFFD_FEATURE_EVENT_FORK and the BUGS section for this in\n> userfaultfd(2).\n+1\n\n> I have like 3 patches for userfaultfd that I'm afraid I'd have to rebase\n> then.\\ Best,\n\nYeah, that's life of an open source development.\n\nKind regards,\nPetr\n\n> Ricardo","headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256\n header.s=susede2_rsa header.b=JxyJlXmB;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.cz\n header.i=@suse.cz header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=OdDFz/F/;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.cz header.i=@suse.cz header.a=rsa-sha256 header.s=susede2_rsa\n header.b=JxyJlXmB;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=OdDFz/F/;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)","smtp-out2.suse.de;\n\tnone"],"Received":["from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0ysw6kR8z1y2d\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 22:17:56 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 28DB63E53B7\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 14:17:54 +0200 (CEST)","from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 380D63E27A6\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 14:17:50 +0200 (CEST)","from smtp-out2.suse.de (smtp-out2.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-2.smtp.seeweb.it (Postfix) with ESMTPS id 9641360068A\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 14:17:49 +0200 (CEST)","from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id 4A46F5BCE8;\n Wed, 22 Apr 2026 12:17:48 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 255CF593AF;\n Wed, 22 Apr 2026 12:17:48 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id EDLFB2y86GlKYAAAD6G6ig\n (envelope-from <pvorel@suse.cz>); Wed, 22 Apr 2026 12:17:48 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776860268;\n h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to:\n cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=uUCRWJirr0IhSkhWZp4HE0wOGa8etbNFrafaUVGDuqY=;\n b=JxyJlXmBuYNAseKrMr7AtIyz4QxuvsnnoNCfFFi6g6M4CankrIDRfMw3nXgkppjuVImmw+\n 5F5NF2X/LJy0JC+g8SqHw9qSOgThqB3NDZUerBAkHx717t060V6c7+xpBpCKOzNPI4F49q\n /Tw3oAF6x68Lo/hw6kEapgUIpiRvC6w=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776860268;\n h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to:\n cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=uUCRWJirr0IhSkhWZp4HE0wOGa8etbNFrafaUVGDuqY=;\n b=OdDFz/F/p7Vg6mNODUnEAFVn1z+NeLTDcBoOk2bqHDoBcCe4rpSUkV2vvahlKqolhOmROm\n CuObytTADLd6e1AA==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776860268;\n h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to:\n cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=uUCRWJirr0IhSkhWZp4HE0wOGa8etbNFrafaUVGDuqY=;\n b=JxyJlXmBuYNAseKrMr7AtIyz4QxuvsnnoNCfFFi6g6M4CankrIDRfMw3nXgkppjuVImmw+\n 5F5NF2X/LJy0JC+g8SqHw9qSOgThqB3NDZUerBAkHx717t060V6c7+xpBpCKOzNPI4F49q\n /Tw3oAF6x68Lo/hw6kEapgUIpiRvC6w=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776860268;\n h=from:from:reply-to:reply-to:date:date:message-id:message-id:to:to:\n cc:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=uUCRWJirr0IhSkhWZp4HE0wOGa8etbNFrafaUVGDuqY=;\n b=OdDFz/F/p7Vg6mNODUnEAFVn1z+NeLTDcBoOk2bqHDoBcCe4rpSUkV2vvahlKqolhOmROm\n CuObytTADLd6e1AA=="],"Date":"Wed, 22 Apr 2026 14:17:42 +0200","From":"Petr Vorel <pvorel@suse.cz>","To":"Ricardo Branco <rbranco@suse.de>","Message-ID":"<20260422121742.GA419002@pevik>","References":"<20260421152349.1673057-1-mcermak@redhat.com>\n <20260422053712.GB392764@pevik>\n <319d3965-30f0-49c5-b747-ad16334391e2@suse.de>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<319d3965-30f0-49c5-b747-ad16334391e2@suse.de>","X-Spamd-Result":"default: False [-7.50 / 50.00]; REPLY(-4.00)[];\n BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000];\n MID_RHS_NOT_FQDN(0.50)[]; HAS_REPLYTO(0.30)[pvorel@suse.cz];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MIME_TRACE(0.00)[0:+];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_VIA_SMTP_AUTH(0.00)[]; MISSING_XM_UA(0.00)[];\n RCVD_TLS_ALL(0.00)[]; RCPT_COUNT_FIVE(0.00)[5];\n FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:replyto,imap1.dmz-prg2.suse.org:helo];\n RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[];\n REPLYTO_EQ_FROM(0.00)[]","X-Spam-Score":"-7.50","X-Spam-Level":"","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_MISSING,SPF_HELO_NONE,SPF_PASS\n shortcircuit=no autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-2.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-2.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","Reply-To":"Petr Vorel <pvorel@suse.cz>","Cc":"valgrind-developers@lists.sourceforge.net,\n Martin Cermak <mcermak@redhat.com>, ltp@lists.linux.it","Content-Type":"text/plain; charset=\"iso-8859-2\"","Content-Transfer-Encoding":"quoted-printable","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}},{"id":3680596,"web_url":"http://patchwork.ozlabs.org/comment/3680596/","msgid":"<ec5e037c-b02f-4475-aede-c3aa68d8a10f@suse.de>","list_archive_url":null,"date":"2026-04-22T12:42:10","subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","submitter":{"id":92484,"url":"http://patchwork.ozlabs.org/api/people/92484/","name":"Ricardo Branco","email":"rbranco@suse.de"},"content":"On 4/22/26 2:17 PM, Petr Vorel wrote:\n>> Perhaps we should cover both?\n> What do you mean by \"both\"?\n>\n> Run test with both processes and threads e.g. via .test_variants?\n\nYes.\n\nBest,\nR","headers":{"Return-Path":"<ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>","X-Original-To":["incoming@patchwork.ozlabs.org","ltp@lists.linux.it"],"Delivered-To":["patchwork-incoming@legolas.ozlabs.org","ltp@picard.linux.it"],"Authentication-Results":["legolas.ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n unprotected) header.d=suse.de header.i=@suse.de header.a=rsa-sha256\n header.s=susede2_rsa header.b=swXNCOF1;\n\tdkim=fail reason=\"signature verification failed\" header.d=suse.de\n header.i=@suse.de header.a=ed25519-sha256 header.s=susede2_ed25519\n header.b=ZygtBNLy;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key)\n header.d=suse.de header.i=@suse.de header.a=rsa-sha256 header.s=susede2_rsa\n header.b=swXNCOF1;\n\tdkim=neutral header.d=suse.de header.i=@suse.de header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=ZygtBNLy;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it\n (client-ip=2001:1418:10:5::2; helo=picard.linux.it;\n envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it;\n receiver=patchwork.ozlabs.org)","smtp-out2.suse.de;\n\tnone"],"Received":["from picard.linux.it (picard.linux.it [IPv6:2001:1418:10:5::2])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g0zQ5527yz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 22:42:20 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 21FB83E53BA\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 14:42:18 +0200 (CEST)","from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::5])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id C819B3E229D\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 14:42:13 +0200 (CEST)","from smtp-out2.suse.de (smtp-out2.suse.de\n [IPv6:2a07:de40:b251:101:10:150:64:2])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by in-5.smtp.seeweb.it (Postfix) with ESMTPS id 41A7560008B\n for <ltp@lists.linux.it>; Wed, 22 Apr 2026 14:42:12 +0200 (CEST)","from imap1.dmz-prg2.suse.org (unknown [10.150.64.97])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-out2.suse.de (Postfix) with ESMTPS id B859D5BD2C;\n Wed, 22 Apr 2026 12:42:11 +0000 (UTC)","from imap1.dmz-prg2.suse.org (localhost [127.0.0.1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest\n SHA256)\n (No client certificate requested)\n by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 835D8593AF;\n Wed, 22 Apr 2026 12:42:11 +0000 (UTC)","from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167])\n by imap1.dmz-prg2.suse.org with ESMTPSA id FwpmHiPC6GkYeAAAD6G6ig\n (envelope-from <rbranco@suse.de>); Wed, 22 Apr 2026 12:42:11 +0000"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776861731;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=hX9BPKc2FPL2o0LP8ebWR6YR1peIeQdQAFO/OVJ4sos=;\n b=swXNCOF1c0D2xtAmjiFoTKd+kL/qV9vnHFbphQMaZDHf/PAOlRe2X1ZQ/eZgc/qE0kVIDP\n 4k8+0cXmhHMbKdolQLqfxs9LBqeOF3SZPsh2fDjmtcDzRTLctdLncfOcTZc63gb9VL52Vx\n l2ikfPhnzS2l5Iqmf6avwCwvlh5TEoc=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776861731;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=hX9BPKc2FPL2o0LP8ebWR6YR1peIeQdQAFO/OVJ4sos=;\n b=ZygtBNLy8MigzggT15wQ0/LhEyXUtVBFQpbsxoJ6Qg3uY8l0hhgAorUxV7fnBqeHlNKM+k\n WbBkCXiypt3UTfBw==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_rsa;\n t=1776861731;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=hX9BPKc2FPL2o0LP8ebWR6YR1peIeQdQAFO/OVJ4sos=;\n b=swXNCOF1c0D2xtAmjiFoTKd+kL/qV9vnHFbphQMaZDHf/PAOlRe2X1ZQ/eZgc/qE0kVIDP\n 4k8+0cXmhHMbKdolQLqfxs9LBqeOF3SZPsh2fDjmtcDzRTLctdLncfOcTZc63gb9VL52Vx\n l2ikfPhnzS2l5Iqmf6avwCwvlh5TEoc=","v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de;\n s=susede2_ed25519; t=1776861731;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc:\n mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=hX9BPKc2FPL2o0LP8ebWR6YR1peIeQdQAFO/OVJ4sos=;\n b=ZygtBNLy8MigzggT15wQ0/LhEyXUtVBFQpbsxoJ6Qg3uY8l0hhgAorUxV7fnBqeHlNKM+k\n WbBkCXiypt3UTfBw=="],"Message-ID":"<ec5e037c-b02f-4475-aede-c3aa68d8a10f@suse.de>","Date":"Wed, 22 Apr 2026 14:42:10 +0200","MIME-Version":"1.0","User-Agent":"Mozilla Thunderbird","Content-Language":"en-US","To":"Petr Vorel <pvorel@suse.cz>","References":"<20260421152349.1673057-1-mcermak@redhat.com>\n <20260422053712.GB392764@pevik>\n <319d3965-30f0-49c5-b747-ad16334391e2@suse.de>\n <20260422121742.GA419002@pevik>","From":"Ricardo Branco <rbranco@suse.de>","In-Reply-To":"<20260422121742.GA419002@pevik>","X-Spamd-Result":"default: False [-8.30 / 50.00]; REPLY(-4.00)[];\n BAYES_HAM(-3.00)[99.99%]; NEURAL_HAM_LONG(-1.00)[-1.000];\n NEURAL_HAM_SHORT(-0.20)[-0.983]; MIME_GOOD(-0.10)[text/plain];\n FUZZY_RATELIMITED(0.00)[rspamd.com];\n RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+];\n ARC_NA(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[];\n RCVD_TLS_ALL(0.00)[];\n DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519];\n FROM_HAS_DN(0.00)[]; RCPT_COUNT_FIVE(0.00)[5];\n FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2];\n TO_MATCH_ENVRCPT_ALL(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.de:mid,imap1.dmz-prg2.suse.org:helo]","X-Spam-Score":"-8.30","X-Spam-Level":"","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS shortcircuit=no\n autolearn=disabled version=4.0.1","X-Spam-Checker-Version":"SpamAssassin 4.0.1 (2024-03-25) on in-5.smtp.seeweb.it","X-Virus-Scanned":"clamav-milter 1.0.9 at in-5.smtp.seeweb.it","X-Virus-Status":"Clean","Subject":"Re: [LTP] [Valgrind-developers] [PATCH] Make userfaultfd0{1, 3,\n 4} LTP tests valgrind compatible","X-BeenThere":"ltp@lists.linux.it","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"Linux Test Project <ltp.lists.linux.it>","List-Unsubscribe":"<https://lists.linux.it/options/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=unsubscribe>","List-Archive":"<http://lists.linux.it/pipermail/ltp/>","List-Post":"<mailto:ltp@lists.linux.it>","List-Help":"<mailto:ltp-request@lists.linux.it?subject=help>","List-Subscribe":"<https://lists.linux.it/listinfo/ltp>,\n <mailto:ltp-request@lists.linux.it?subject=subscribe>","Cc":"valgrind-developers@lists.sourceforge.net,\n Martin Cermak <mcermak@redhat.com>, ltp@lists.linux.it","Content-Transfer-Encoding":"7bit","Content-Type":"text/plain; charset=\"us-ascii\"; Format=\"flowed\"","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}}]