[{"id":3683834,"web_url":"http://patchwork.ozlabs.org/comment/3683834/","msgid":"<69f1aab3.5d0a0220.2e761c.6b1c@mx.google.com>","list_archive_url":null,"date":"2026-04-29T06:52:34","subject":"Re: [LTP] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","submitter":{"id":82886,"url":"http://patchwork.ozlabs.org/api/people/82886/","name":"Andrea Cervesato","email":"andrea.cervesato@suse.com"},"content":"Hi Wake,\n\n> When CONFIG_USERFAULTFD is not enabled in the kernel, the userfaultfd\n> syscall returns ENOSYS. Currently, SAFE_USERFAULTFD calls tst_brk(TBROK)\n> for any error other than EPERM, causing tests to fail when they should\n> be skipped.\n> \n> Add a check for ENOSYS to return TCONF, so that tests using\n> SAFE_USERFAULTFD are skipped appropriately on kernels without\n> userfaultfd support.\n> \n> Signed-off-by: Wake Liu <wakel@google.com>\n> ---\n>  include/lapi/userfaultfd.h | 4 ++++\n>  1 file changed, 4 insertions(+)\n> \n> diff --git a/include/lapi/userfaultfd.h b/include/lapi/userfaultfd.h\n> index 0c9e34c84..09126d856 100644\n> --- a/include/lapi/userfaultfd.h\n> +++ b/include/lapi/userfaultfd.h\n> @@ -244,6 +244,10 @@ static inline int safe_userfaultfd(const char *file, const int lineno, int\n>  retry:\n>  \tret = tst_syscall(__NR_userfaultfd, flags);\n>  \tif (ret == -1) {\n> +\t\tif (errno == ENOSYS) {\n\nThis is already handled in the tst_syscall() implementation.\nThe solution would be to use:\n\nstatic struct tst_test test = {\n  ..\n\t.needs_kconfigs = (const char *[]) {\n\t\t\"CONFIG_USERFAULTFD=y\",\n\t\tNULL\n\t}\n};\n\nfor all the tests which need this configuration.\n\nWhere did you see this issue? Do you have a use case scenario where\nthis happened?\n\nKind regards,\n--\nAndrea Cervesato\nSUSE QE Automation Engineer Linux\nandrea.cervesato@suse.com","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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=i632UjUq;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256\n header.s=google header.b=AgSGuBzA;\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 4g57KS6ZyWz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 16:52:44 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 5FFB23E252C\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 08:52:42 +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) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id EDEE03CFB7E\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 08:52:37 +0200 (CEST)","from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n [IPv6:2a00:1450:4864:20::430])\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-3.smtp.seeweb.it (Postfix) with ESMTPS id CB2671A008BB\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 08:52:36 +0200 (CEST)","by mail-wr1-x430.google.com with SMTP id\n ffacd0b85a97d-43eb012ac4fso7309870f8f.0\n for <ltp@lists.linux.it>; Tue, 28 Apr 2026 23:52:36 -0700 (PDT)","from localhost.localdomain\n (p200300ef2f4fc9009ff26ae1d4042002.dip0.t-ipconnect.de.\n [2003:ef:2f4f:c900:9ff2:6ae1:d404:2002])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-447b120bdefsm3699213f8f.0.2026.04.28.23.52.35\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 28 Apr 2026 23:52:35 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777445562; h=message-id :\n to : in-reply-to : date : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : cc : mime-version : content-type :\n content-transfer-encoding : sender : from;\n bh=WVSgpKGwiROD7D+33jtYL/lWrJNOTxGTydfZL8Vnj4w=;\n b=i632UjUqVmRo9ib1k8cW86UOC3ZHUoXVBgzeo6RybXOGa7sKMyfUk0EcY79Js8qj1icmJ\n myQApKQS8lr17mWe6p81zzLsq8EGHzrwMALDfRNijaIrzMsmPK9L3nNe1Zro9gr4DMq2nsH\n tC1Pctbgq//BVNVA22J81Wi4E/tkZns=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=suse.com; s=google; t=1777445556; x=1778050356; darn=lists.linux.it;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:from:to:cc:subject:date:message-id:reply-to;\n bh=3FxJDN/tKazaCGzFaLbOhvR6nkpQBZpgeE4cBVjCmno=;\n b=AgSGuBzAAsqVmSci+AHCcgvRRb/EMN9RYGAoEgNFb5sh8ts0fl7QsTSRGxsK3a3SHj\n zOfITvEKhufrT+ZC+CtI8O1oyQ3Cc3xc+hx6k8Vpih/KHmP3kSd77gUO9kfvQK79KGYT\n 5nyVdIZu0D0lHR4JXZamNcXzm6ufiNjDbdjgeLUMXT6ONSP+E8qJgbxdnOfdWoZYIyZn\n iOTQI8uIdFKUrQl3cnuv6R/BzI1NhNobnyoOOixYOBWNaZdimtPX4L96FxOUmGx50UBi\n H9msHCH9ARx2LjwkOXzngxt0FspWqlO8TVTz/VxMTSXfXbnpCJ/XNTaLV4JJqBZ2BJUd\n 0NuQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777445556; x=1778050356;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=3FxJDN/tKazaCGzFaLbOhvR6nkpQBZpgeE4cBVjCmno=;\n b=RMpJ/3g8HHPmEBVZKDCI3LrhbEAbRtrsZRt81S9EvDeKtHU0m+wTejg2GGtYv/ovAw\n XRSA1nduQGHXTGSMz8EL2RAidcyX8eV2Yop6P4L2vShU3SuhSuxjx9Lb0ThaXuQon/Yf\n rR3/jXwc/6q9divmkusAmjXobLsGpFTz/0iV6bVsoxnqA6a2AnoDFv+J6hdgLLtVLk6b\n Aa71GmVJ7BM0mVLSTJpJwHgxZGHvgHY8SpntMm9nuPJfdPOLB/yMcu8hz5sMbX+di8zE\n tSutKggONGqu5LV4OgglNDvZg4ubzK/Nr2+dBoBa+i9zeykwuuxHzsiU854aKL8Vrae/\n pkaw==","X-Gm-Message-State":"AOJu0Yz10vufcCzW+DBysoZzzXu4XYbrszSiEuDtky5tPAvv8wC/TsIJ\n UVZnWTjkox0lM719VdB9/VQDi8Tw5PX5PdZ22a2dNT4NJZ5RcknOqCZRilJw3jU58sP34mu1Kdd\n XzLR8ifmAWQ==","X-Gm-Gg":"AeBDiet49rU+hSpm7WfPXhlC+FfCYOIwaPOcsDLav4QI+NTLiL/ONfRd7sq+e/gM7A5\n WCp9v7qSKX9Q7WH+MwuWAR8UPyXl4t1Tnr/m+r3FgTJj6QsaQ268+WQgNSqAyWNeq9lQJkvzQ+z\n NOdUXNFInbBPkt9rXE+U76ibjdRY4QQSs9smmIIRlLUuvOm71W30lMdnADR5yY/K0IJQ2FptqSU\n 1AefpjaUEdwcVhtS5tzsecrdiTBwp1aaCz9gzvG9e3KdY0WKV3C3Sn8OdChGB146d+wFC4jkD/R\n pmk6fHXIIX4itW2n1AWyrsG5IjiNDnALEkFVYhm2ktuch54Wx7imBwuO7RWdFJ5i1QhiMq0pEqI\n /BZGIbMVHcvTanTVPQpbm6OuS8rGL8BxgIzXQJJy5KfpufwZjPcW/B/OdLGC3ArOY4YNuAsaOuj\n cNvJZHodHhv0xxzMDU2SjTXshKim18Xg3RTzI6nhUVGbsB4WgYgNvgNJ52RmtfGl2rvPl9fp0yM\n 35kvcP1UPZOaJICI4J7yU7f9nPkg8UTPvq1Pp6NljpIxQ==","X-Received":"by 2002:a05:6000:2dc3:b0:43d:67d1:2022 with SMTP id\n ffacd0b85a97d-4478ee6223amr4372587f8f.19.1777445555855;\n Tue, 28 Apr 2026 23:52:35 -0700 (PDT)","Message-ID":"<69f1aab3.5d0a0220.2e761c.6b1c@mx.google.com>","To":"\"Wake Liu via ltp\" <ltp@lists.linux.it>","In-Reply-To":"<20260429064011.3200745-1-wakel@google.com>","Date":"Wed, 29 Apr 2026 06:52:34 +0000","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] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","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>","From":"Andrea Cervesato via ltp <ltp@lists.linux.it>","Reply-To":"Andrea Cervesato <andrea.cervesato@suse.com>","Cc":"camann@suse.com, Wake Liu <wakel@google.com>, rbranco@suse.com,\n ltp@lists.linux.it","MIME-Version":"1.0","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":3683858,"web_url":"http://patchwork.ozlabs.org/comment/3683858/","msgid":"<20260429073109.3901-1-linuxtestproject.agent@gmail.com>","list_archive_url":null,"date":"2026-04-29T07:31:09","subject":"Re: [LTP] lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD","submitter":{"id":93132,"url":"http://patchwork.ozlabs.org/api/people/93132/","name":null,"email":"linuxtestproject.agent@gmail.com"},"content":"Hi Wake,\n\nOn Wed, 29 Apr 2026 14:40:10 +0800, Wake Liu wrote:\n> lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD\n\n> +\t\tif (errno == ENOSYS) {\n> +\t\t\ttst_brk_(file, lineno, TCONF | TERRNO,\n> +\t\t\t\t\"userfaultfd() is not supported by this kernel\");\n> +\t\t}\n\nThe fix is correct, but since this is a bug fix, please add a Fixes:\ntag pointing to the commit that introduced SAFE_USERFAULTFD without\nENOSYS handling.\n\n---\nNote:\n\nOur agent completed the review of the patch. The agent can sometimes\nproduce false positives although often its findings are genuine. If you\nfind issues with the review, please comment this email or ignore the\nsuggestions.\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=IHMfhKvr;\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g589y5rDtz1yHv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:31:18 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 5801F3E252D\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 09:31:16 +0200 (CEST)","from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::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 9850F3CA6DC\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 09:31:12 +0200 (CEST)","from mail-qk1-x743.google.com (mail-qk1-x743.google.com\n [IPv6:2607:f8b0:4864:20::743])\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-3.smtp.seeweb.it (Postfix) with ESMTPS id E29571A00987\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 09:31:11 +0200 (CEST)","by mail-qk1-x743.google.com with SMTP id\n af79cd13be357-8ef45a6d9dfso910786985a.0\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 00:31:11 -0700 (PDT)","from\n runnervmeorf1.3xinleeka1zelpky03zrhmkzma.bx.internal.cloudapp.net\n ([48.217.140.229]) by smtp.gmail.com with ESMTPSA id\n af79cd13be357-8f940051f74sm110258085a.38.2026.04.29.00.31.10\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 00:31:10 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=gmail.com; s=20251104; t=1777447871; x=1778052671; 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=fL5bCIgaCzbmBeJ+ejQk7cdTOKhucoR4Vk+zes26zXA=;\n b=IHMfhKvrvKvu1hOdfkNIVNqIIUhsi7hNqv4nQlC97Cg3jIHum5jyuNHH49wlAf8xN0\n jIWcAep9wGxSz8wwcRlHYrnSIixyMZp445GLYr1dd0M6wGej9ic7/HcUL+MuWAhMfhrY\n I+HaCKTD8TIZq5X4QWxjQKlLPlN7FwxSZxeZ5X63aQ7csREVm//rbWQQNjv532ypv+58\n uhsSBxnOFsfcVU7PTp+6r7jGI6zyPX8Bx0VE4D5SX4xap9Ki09JfBDTWJd8cI1n+DQbQ\n oNZ7NKnmT2Bejgrsf/oCZpHpOMgyNyHW+B+LCKx6IgQKmMcfLknkMWIHTZrSZUvYGAwG\n Nc+w==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777447871; x=1778052671;\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=fL5bCIgaCzbmBeJ+ejQk7cdTOKhucoR4Vk+zes26zXA=;\n b=LhGf1kp5TayNxjb+0docbyk6lvFVP4bCA/wWqcm1gLlHH+pUyN37IzNgoFRRyN3UUx\n xRQIrSfXt/M9TnyIgMXSXAOROQk9PVUNpa76sz8xF9fsxXlI7/k7EcWWTKzwR/IyASb9\n TOk4efFt8kkUjY6X6e/7udhegkRFgOYjAyrlVVoU0MooSWEix3KeuEw0c55tBahp3cEO\n Mu2nujT4YFKJCYHxMmLWTXn8w00NUPucrHeAkxXvjWtgd9925CGa1GXLXATtbUFM0/UA\n Tf+yfIw8wpc+4db1lQy48VXhVwFOJMqEQmQFYumLYfQXui0gALnIRzw0DgGgffeKFwhq\n v6HA==","X-Gm-Message-State":"AOJu0YzLffY1quBNgCe90mVKxHUQ51lTB7sf3xx4odgg+jzK8TgmAbBm\n hJ47N8g9ZZ2yqEEpo/GTu3SrA3Z2ygvWfwcxCYwBgFgS4cIO60uQZ4+V","X-Gm-Gg":"AeBDietGm48Ub7OipOZSbzqZWAbNIjJccasMxgajFAHrWIDsXXvS0aaIpMsZZNbM5nw\n ibVI9frlCkX5prIvkop35KnrpXzcbOTSUmKwJpIB2P/b+yer+KBW226zllu5IJqMkGBoiRNGvQg\n 7UJ2g0MQsqXx3sEpjx4r3XrHvWrbyKK/Viu1XDQwtESCn7Q4/jQyooPU+afw2fZNdRN3ylHAsQj\n 3QoQt360o31k0Pyei32xBNglTxAp8T0lKfoaFxksMWBnK//0IK08vqjN/wK2lGqnIbICT/R4fRU\n EZZ7OvPoNArzMCf7J4NQooy9i60pm7XCwmacjBfaCPPzgkIs+PxEsas+aXBXD21g493g73P5gwi\n htBlm1vgw8/KMLb1rVJvBTwuJQ+lwZ7Qm8KxZxY3n3/ZZ654Lk4+k7FK2v80ErfWPXdctNfgubX\n LvagLsKgTFgiPEiwnU0LHlPRoYJstgWA61KG1ufuaccc3o5V63Sw+dy90Y4y133rugAxAmFAw4X\n ACJpB1LslhmLQ/r6+Z762v36DD0iqtO39Xtu7gvQbzwt71ATkY=","X-Received":"by 2002:a05:620a:40d6:b0:8cd:b7bc:5184 with SMTP id\n af79cd13be357-8f7d6f3fa84mr840606185a.8.1777447870637;\n Wed, 29 Apr 2026 00:31:10 -0700 (PDT)","From":"linuxtestproject.agent@gmail.com","To":"Wake Liu <wakel@google.com>","Date":"Wed, 29 Apr 2026 07:31:09 +0000","Message-ID":"<20260429073109.3901-1-linuxtestproject.agent@gmail.com>","X-Mailer":"git-send-email 2.54.0","In-Reply-To":"<20260429064011.3200745-1-wakel@google.com>","References":"<20260429064011.3200745-1-wakel@google.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-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] lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD","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":3683864,"web_url":"http://patchwork.ozlabs.org/comment/3683864/","msgid":"<69f1b4e5.050a0220.1891c8.b404@mx.google.com>","list_archive_url":null,"date":"2026-04-29T07:36:04","subject":"Re: [LTP] lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD","submitter":{"id":82886,"url":"http://patchwork.ozlabs.org/api/people/82886/","name":"Andrea Cervesato","email":"andrea.cervesato@suse.com"},"content":"Hi Wake,\n\n> The fix is correct, but since this is a bug fix, please add a Fixes:\n> tag pointing to the commit that introduced SAFE_USERFAULTFD without\n> ENOSYS handling.\n\nPlease ignore this review, this is a corner case that needs to be\nupdated in our reviewer agent.\n\nRegards,\n--\nAndrea Cervesato\nSUSE QE Automation Engineer Linux\nandrea.cervesato@suse.com","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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=N1lVa/nl;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256\n header.s=google header.b=RvwGJhtz;\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g58Hc6bLxz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 17:36:12 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id C16773E2572\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 09:36:10 +0200 (CEST)","from in-3.smtp.seeweb.it (in-3.smtp.seeweb.it\n [IPv6:2001:4b78:1:20::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 40D533CA104\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 09:36:07 +0200 (CEST)","from mail-wr1-x431.google.com (mail-wr1-x431.google.com\n [IPv6:2a00:1450:4864:20::431])\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-3.smtp.seeweb.it (Postfix) with ESMTPS id 733B81A0092B\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 09:36:06 +0200 (CEST)","by mail-wr1-x431.google.com with SMTP id\n ffacd0b85a97d-43eb05b1875so7068982f8f.3\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 00:36:06 -0700 (PDT)","from p200300ef2f4fc90003f4f7286cdeff7d.dip0.t-ipconnect.de\n (p200300ef2f4fc9009ff26ae1d4042002.dip0.t-ipconnect.de.\n [2003:ef:2f4f:c900:9ff2:6ae1:d404:2002])\n by smtp.gmail.com with ESMTPSA id\n ffacd0b85a97d-447b7ca64ffsm4158041f8f.37.2026.04.29.00.36.05\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 00:36:05 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777448170; h=message-id :\n to : in-reply-to : date : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : cc : mime-version : content-type :\n content-transfer-encoding : sender : from;\n bh=gOCjQHnuy0AYy2TccHxER9zOYF4BLbs3w4sNWnmW1n0=;\n b=N1lVa/nlkZ3myllFb3AFxea7GDEi7Y+xIyEnGOiSIZUe+ylOUC9JZk+SalkMkaoX5bu0t\n 1oLyMfUpMiuXjSRyo8t3gGKf/Xh+LtEXCV816iCb6AyHEo3rqBGj3nhLE/FE7K68QRPyY8W\n elpdmJcIeU3ZhbG/jo4k/rN3OvWyupU=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=suse.com; s=google; t=1777448166; x=1778052966; darn=lists.linux.it;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:from:to:cc:subject:date:message-id:reply-to;\n bh=PplQbj9Fh4kKFsWPAlYSoPJumhTTOm9/e1+GNekhygA=;\n b=RvwGJhtzGxMoIWoOdQpN6uXT6vAvFB8fsKshRzg52u8QtWjRH0sH3zquZ8SgrTBhvN\n N7Ge/ZJERpTWZv94cPsLH4ijXPnOVvkPR7mlOQTmAHThePhAQ0IIM06r/NOBr/tX+Poq\n Ze/8gHTwgajo/6WlWLeZL1v7XC4E7QnqhFbn/WzuogKMGSfvAcGjvyWi/fs8HVxrYYtM\n dP0nUH6jfF/5nEcsRsbmHTHs+SzknNyKYXteSKifkjPEu2+OxJUYqqxLDM8WQFFPX4Cc\n l/8/KoXiEPKZOkETPsgaaVvJvClH2cHNADE9v/kkZMXpbgD0qKV6H8O4aH/dk80ENBBu\n FwyA=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777448166; x=1778052966;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=PplQbj9Fh4kKFsWPAlYSoPJumhTTOm9/e1+GNekhygA=;\n b=cQZL2MjODnNI5AQ2jWk0iiuwDEBTnD2oxjH6TaIuEc+dQsOagAm3wHJU5dj62/cD24\n rKUbZdXLmh5AiiJkO6icPjK9xtuG+IgwjTU5htdMrdL6E+9+Pd/mh2NJjgFdCLEmU1Na\n 2xQNGrYfH7Man3oHJOGFO9Y2GmFk3B52W9F9AcBGg5YFXQ4bpWH69aKoVa4fFgTDUrx4\n 8pGDY9lrb3A33+ilG+8ZKoprNUaMaLZ6MZ4bnc8ZzT6YzZOfhkpGtDGcviZDfR9j6bFD\n UeQOItLrdU2fJpb8Xwo/+g6vGz/lDn1Ac+4utowUxh+V04FIoNyKMpTLWCT07L3mTC+2\n oDvQ==","X-Forwarded-Encrypted":"i=1;\n AFNElJ8PfeTCNLFRGAsobj6D+t4NDdPUBDzeQ0I8st/HXdQ8Yl9yk/QMvos/18r7eOBw+1ofCvE=@lists.linux.it","X-Gm-Message-State":"AOJu0YxK0ZbuKF0VitwSAPUO+FnCp4f7kSc0YjY7n8ceuTlR7LxY3UKl\n yqSFvsMUq/629rcRu2JEEDmnb/6r/+DpFK1Dw//O8HI0Sr3YpXpDVhPpGa4DNEa97tb4TRglcyE\n aYgJ1104TCA==","X-Gm-Gg":"AeBDietiN+K+K2UnSoGuTgXZ3efdtAZ9tu+QRdt5CV7Chs9tXFJTtiKLu9r8EJ3+333\n Dq4HSAki+T4bqpTiXgOuYBt/WH5vJXX1XCnq8gKdjGa57ixyeYfZ9s8Iv+7OFKUAcGMf3fR9jRG\n olP54AZEc9aSEPp4rioNUQLhCVPYXVToB2pTXT7EieJVT0fU7WsX5btI7/rWa3QRjpjrlRuoBBg\n XeUydsZ+FpxodWh2ypPnG4fdge6hSCi9mxfF+c6wrgLO8XDFJk/rYwIKCgxdBplLA5frKYHIjvv\n lr9VlgXSG2SbWBxXjY8VK0Rdi/GsR/qE++O2KqOyW3HdgfD/F2olgJTMDS74ErFdey/1Comrjec\n EBixigrG6UGtMAwkZMA2FyMfABONDe0frwb6DtHZyffud+s5Ur3YMmU4XPyECnayZH1Z9taDwjA\n QRa0MphXE6Y5xOAfI1xse7BTuyWW2j8vsncRc8Zdm5y+a6Q7KvyZgm/uGVPkCwqzHHb2M994G4S\n tfISeuixkhYcFASGbR3+bBhIyFWOZvafEHnHDTCCcb1w20IcOJdMt/CP6Z9+MXVzOodNnrZwMIg\n +hk2+jfP4k1d","X-Received":"by 2002:a05:6000:200e:b0:43f:dd94:3c30 with SMTP id\n ffacd0b85a97d-44648b51105mr11588529f8f.14.1777448165710;\n Wed, 29 Apr 2026 00:36:05 -0700 (PDT)","Message-ID":"<69f1b4e5.050a0220.1891c8.b404@mx.google.com>","To":"linuxtestproject.agent@gmail.com","In-Reply-To":"<20260429073109.3901-1-linuxtestproject.agent@gmail.com>","Date":"Wed, 29 Apr 2026 07:36:04 +0000","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] lapi/userfaultfd: Handle ENOSYS in SAFE_USERFAULTFD","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>","From":"Andrea Cervesato via ltp <ltp@lists.linux.it>","Reply-To":"Andrea Cervesato <andrea.cervesato@suse.com>","Cc":"Wake Liu <wakel@google.com>, ltp@lists.linux.it","MIME-Version":"1.0","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":3683929,"web_url":"http://patchwork.ozlabs.org/comment/3683929/","msgid":"<CAOcRiAEh+CFKBeaT+beQzhX_TRNiau4zP0iCuRFsahPkw7WhxA@mail.gmail.com>","list_archive_url":null,"date":"2026-04-29T08:51:44","subject":"Re: [LTP] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","submitter":{"id":92108,"url":"http://patchwork.ozlabs.org/api/people/92108/","name":"Wake Liu","email":"wakel@google.com"},"content":"I encountered this issue during Android GKI (Generic Kernel Image) and\nVTS (Vendor Test Suite) testing on various device targets (e.g., Pixel\n6, virtual devices). In our testing environment, we run the same test\nsuite against a wide variety of kernel versions and configurations.\n\nSpecifically, on some kernels where CONFIG_USERFAULTFD is disabled,\nthe userfaultfd() syscall returns ENOSYS. While you mentioned\ntst_syscall() handles it, in the version/configuration we are using,\ntst_syscall() returns -1 and sets errno to ENOSYS. This is then passed\nto safe_userfaultfd(), which currently only checks for EPERM to skip\n(TCONF) and falls back to TBROK for any other error, including ENOSYS.\n\n\nAndrea Cervesato <andrea.cervesato@suse.com> 於 2026年4月29日週三 下午2:52寫道：\n>\n> Hi Wake,\n>\n> > When CONFIG_USERFAULTFD is not enabled in the kernel, the userfaultfd\n> > syscall returns ENOSYS. Currently, SAFE_USERFAULTFD calls tst_brk(TBROK)\n> > for any error other than EPERM, causing tests to fail when they should\n> > be skipped.\n> >\n> > Add a check for ENOSYS to return TCONF, so that tests using\n> > SAFE_USERFAULTFD are skipped appropriately on kernels without\n> > userfaultfd support.\n> >\n> > Signed-off-by: Wake Liu <wakel@google.com>\n> > ---\n> >  include/lapi/userfaultfd.h | 4 ++++\n> >  1 file changed, 4 insertions(+)\n> >\n> > diff --git a/include/lapi/userfaultfd.h b/include/lapi/userfaultfd.h\n> > index 0c9e34c84..09126d856 100644\n> > --- a/include/lapi/userfaultfd.h\n> > +++ b/include/lapi/userfaultfd.h\n> > @@ -244,6 +244,10 @@ static inline int safe_userfaultfd(const char *file, const int lineno, int\n> >  retry:\n> >       ret = tst_syscall(__NR_userfaultfd, flags);\n> >       if (ret == -1) {\n> > +             if (errno == ENOSYS) {\n>\n> This is already handled in the tst_syscall() implementation.\n> The solution would be to use:\n>\n> static struct tst_test test = {\n>   ..\n>         .needs_kconfigs = (const char *[]) {\n>                 \"CONFIG_USERFAULTFD=y\",\n>                 NULL\n>         }\n> };\n>\n> for all the tests which need this configuration.\n>\n> Where did you see this issue? Do you have a use case scenario where\n> this happened?\n>\n> Kind regards,\n> --\n> Andrea Cervesato\n> SUSE QE Automation Engineer Linux\n> andrea.cervesato@suse.com","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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=Tl84sIIE;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=YOtjfAXA;\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g59zg4RgPz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 18:52:30 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id B93CD3D7220\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 10:52:27 +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) server-digest SHA384)\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 3EE3A3C029B\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 10:52:23 +0200 (CEST)","from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com\n [IPv6:2607:f8b0:4864:20::102b])\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-6.smtp.seeweb.it (Postfix) with ESMTPS id 78A87140054B\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 10:52:23 +0200 (CEST)","by mail-pj1-x102b.google.com with SMTP id\n 98e67ed59e1d1-35fbca04006so6189618a91.1\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 01:52:23 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777452747; h=mime-version :\n references : in-reply-to : date : message-id : to : subject : list-id\n : list-unsubscribe : list-archive : list-post : list-help :\n list-subscribe : from : reply-to : cc : content-type :\n content-transfer-encoding : sender : from;\n bh=Blu/qJzDQXVXsvZZaqio0Nr50uIl3WFZynUaysEe8a8=;\n b=Tl84sIIEoqMPrZs90FQmTIpWw/OrCeYzbpYULIRKitnMe0/V0IjAKQrmd8qN4fs5mW05T\n nsV1cWf+yCOtL+++I1x7mFvf0xvQmn3Z1TKI4YusFNbyQ4OVF6y85E1uBhWP9CZEiy8zUYi\n yq5EZS/kb+3+9M3LFPrOOqCsqOTVYYU=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1777452742; x=1778057542; darn=lists.linux.it;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=ali4lNh84g4ts8t+yvPvTEBj7UcWs408h06PEibMbuU=;\n b=YOtjfAXA9oflxdXye+Iram3m4Rts35pbi25ZsMZbM5SCmcUYM5PyYYWh4T/U6KxNvh\n bIfiuB1G+PTii/mNMQAsIb/wGhMsgEg2Cp8QpZ3wZmq6pCIF+m1KNNr9YsJ823fRc+Yo\n 1PDt1/vLVkVj8Dvz6vUIRG9k1LICoCkve2jNY85UBcs80mU0vSMXtcCszB8ylMMpwSal\n P322D+k9MabkgTnieMmG6VceORIQHj3rTSeZcH+AMD6JuXKE3P6rVC/BomLEJFhB5DPE\n p+52z3a0O8I8m5y3lIjvh9fruAXFwmHBdtpIZ76VNaw1LQgV5H7bvD82Ynot1khyKWNJ\n GkvQ=="],"ARC-Seal":"i=1; a=rsa-sha256; t=1777452742; cv=none;\n d=google.com; s=arc-20240605;\n b=P1KEPpivfnWoUqN+Xkvj1FpZd3DX3f2S75ET1IFVGL6oi/li2Lg6+7BRuGW8yaFaOq\n z+aMa6oPqqe4ubFcDxnxOZnK/evszm8gSX/lP+IBMh5JKF6cK11cEdLuenIjj70Mhbzm\n Fb0oA9JH4gE5qlnmxKlaIZ/QeEbZ0u+CkbNtBgA2qgbyeem4d1S8lFytWGekREr8zTah\n 7ukAduPO2VJeMXXOcdR21wVVIaScVYUF8gadl2JJxPRg2hY3vGRKSAcPDXaPH9CcThOT\n /YvQVmFoLYjy+ZDCqJfeoLypx0utW8iM9iJHVmrI5gMgEh6NEelEUE7HA+36GjaI6CL9\n sdEQ==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=ali4lNh84g4ts8t+yvPvTEBj7UcWs408h06PEibMbuU=;\n fh=2YQYtMVmMy2j1lD0Oo2Xudl4rUQaR7oOOMixaxmfPUU=;\n b=WelXA1/6ZfXLmH42aiFmtAqpKF6+O9aonNkA45B5kyrKxZI80ujt36bI76BNO+WT3j\n 3JQDr3KPcb5cMhxk4XrfdPeDlEPSyLGnI+izx+dUCFbfUzc9UdGNXWY91+5L8hRMr8F7\n QQk9j+Q12Tj4eDMN0ssc9XyR0ljzqGjppKpLTtWh7H5l2So8cNCvAg2Ng2CCIW1BcVc8\n ejCwi0i3RC+oZ0I/f0en37i93TyjbsKnVfJt1dYV+UMNogqq8LSFXFQZZS6feCwa4uLP\n L2jNeBStRperdKvcsT+U4byhWXGMW0usaWrtZYGXXOsBJbH87jk7qx2pAXvetzGT8zWu\n pqYw==; darn=lists.linux.it","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777452742; x=1778057542;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=ali4lNh84g4ts8t+yvPvTEBj7UcWs408h06PEibMbuU=;\n b=ojoKGSQJYpKmmKu7xw1J4RPSmHH6J8uYlNKbaU/6mbMybeip4fOeu01Eo+p/S8ujq4\n yQ1bEcC2XSOew9UslL+XZaZrqBHNrTy0X9OXlh+/xpSZx1L6LQlz3PEURizD0tHep4uW\n uns31ZqjFH329jpcPf6FpVA+3rJLOp75JD8E111IAYt/B8GjXYJYMGaFcQvylEPns2Om\n Yu+fo9aOEBMdcSCh9PY7/vDavYx3TQmUy4w/BvO/0Mgx7XuRHf6d7Za5Tl3DZNqfzB0A\n WyM310G3Efuh+MboArl017k51N5Fn5ummE8BvKzLhEunJaqIsklNNkmnNVmTYsRGIAt+\n YHkQ==","X-Gm-Message-State":"AOJu0YwmEAtG6QMogZz+62VO2Vro/aFXSOwxFji3Bs0T/sEDNri0DKRD\n +v4WxGTPkbIwr/oXLpYRIb0zu8bb0Q+raqf3HULLEYo9j9kanEWiML2UkQNMKgsHUJFUznxlwZr\n 1SLnFJXRUj9DPON5MniNVQICBYvx81lC6BESvHbVy","X-Gm-Gg":"AeBDieve+8kBhBXOqUs5cYSnB4ExYMjS2zRPztUonKAVKR2xJ2MvR15RKrfytAimMWt\n joZBWvsviDrGgV4hDt/TtCVF5VcKh2G1n+09zzoH8WesMv0wY22q5v/AmDru60HXD/oeRE8mtvj\n aQnLSCYO/u2MCfFD2GPRMkqHLMSIkpfCaT6YQ3IZ8kmouuDla1NJyq7WcK5GItCAQGArABKr/y6\n Q/Ub8YvCSxvlQxh2GXkoFf68WcjOwMCw61vyssL5o49VZ0EbnW2XyvsWokwfOGrZ5ddVHvwOdOk\n q00ODLktFwqbdUlioNO1FGAQuWkQF9mXuaQhL3zrd+sGG9zHh6Mc/g18SLQ=","X-Received":"by 2002:a17:90b:57cd:b0:35e:5b19:234d with SMTP id\n 98e67ed59e1d1-36491fa9c69mr7150299a91.7.1777452741232; Wed, 29 Apr 2026\n 01:52:21 -0700 (PDT)","MIME-Version":"1.0","References":"<20260429064011.3200745-1-wakel@google.com>\n <69f1aab3.5d0a0220.2e761c.6b1c@mx.google.com>","In-Reply-To":"<69f1aab3.5d0a0220.2e761c.6b1c@mx.google.com>","Date":"Wed, 29 Apr 2026 16:51:44 +0800","X-Gm-Features":"AVHnY4Ij4VfmWQxk48yw8wHZc8moh1bxcZeTRYhHnZrDSYb8vQzIJLs9WAotyrg","Message-ID":"\n <CAOcRiAEh+CFKBeaT+beQzhX_TRNiau4zP0iCuRFsahPkw7WhxA@mail.gmail.com>","To":"Andrea Cervesato <andrea.cervesato@suse.com>","X-Spam-Status":"No, score=-14.9 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,\n SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL shortcircuit=no\n 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] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","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>","From":"Wake Liu via ltp <ltp@lists.linux.it>","Reply-To":"Wake Liu <wakel@google.com>","Cc":"camann@suse.com, rbranco@suse.com, Wake Liu via ltp <ltp@lists.linux.it>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}},{"id":3683948,"web_url":"http://patchwork.ozlabs.org/comment/3683948/","msgid":"<69f1cdbc.050a0220.29173d.95d4@mx.google.com>","list_archive_url":null,"date":"2026-04-29T09:22:03","subject":"Re: [LTP] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","submitter":{"id":82886,"url":"http://patchwork.ozlabs.org/api/people/82886/","name":"Andrea Cervesato","email":"andrea.cervesato@suse.com"},"content":"> I encountered this issue during Android GKI (Generic Kernel Image) and\n> VTS (Vendor Test Suite) testing on various device targets (e.g., Pixel\n> 6, virtual devices). In our testing environment, we run the same test\n> suite against a wide variety of kernel versions and configurations.\n> \n> Specifically, on some kernels where CONFIG_USERFAULTFD is disabled,\n> the userfaultfd() syscall returns ENOSYS. While you mentioned\n> tst_syscall() handles it, in the version/configuration we are using,\n> tst_syscall() returns -1 and sets errno to ENOSYS. This is then passed\n> to safe_userfaultfd(), which currently only checks for EPERM to skip\n> (TCONF) and falls back to TBROK for any other error, including ENOSYS.\n\nI'm a bit puzzled because according to the tst_syscall() implementation\nthis should not happen. If syscall returns -1 with errno == ENOSYS,\nthe tst_syscall() implementation will always TCONF. This is visible\nin include/lapi/syscalls.h generated by the build system before\ncompiling.\n\nPlease provide the exact test that is failing, as well as the logs\nyou have seen having this issue.\n\nRegards,\n--\nAndrea Cervesato\nSUSE QE Automation Engineer Linux\nandrea.cervesato@suse.com","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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=d+prBIY/;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256\n header.s=google header.b=FAAgdk4l;\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)"],"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 4g5Bf16f4Qz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 19:22:17 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 733A03E2D50\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 11:22:09 +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))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 75FEE3CBDC7\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 11:22:06 +0200 (CEST)","from mail-wm1-x332.google.com (mail-wm1-x332.google.com\n [IPv6:2a00:1450:4864:20::332])\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-2.smtp.seeweb.it (Postfix) with ESMTPS id 5ED7A600385\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 11:22:05 +0200 (CEST)","by mail-wm1-x332.google.com with SMTP id\n 5b1f17b1804b1-4891e86fabeso137929905e9.1\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 02:22:05 -0700 (PDT)","from p200300ef2f4fc90003f4f7286cdeff7d.dip0.t-ipconnect.de\n (p200300ef2f4fc9009ff26ae1d4042002.dip0.t-ipconnect.de.\n [2003:ef:2f4f:c900:9ff2:6ae1:d404:2002])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a7c31f1ddsm13783895e9.29.2026.04.29.02.22.03\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 02:22:04 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777454529; h=message-id :\n to : in-reply-to : date : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : cc : mime-version : content-type :\n content-transfer-encoding : sender : from;\n bh=TC4jhmy63hs9DYUqYNa0tLKhEqK47RFI3Px3OTqvszo=;\n b=d+prBIY/8eQ5sVr6DwbuvKI/mSAxURa7BGnIhYC7XiZ79V9P1/y+yrRBbfuuOZKlehIbH\n 0qiswt14RblHmoHDs1v3Sn9+w/RmNrv4Ugmr2CF1wm/yoI2CuBs7zjfsiP4WpJBFAVVNRi4\n 0SibL5lDX8W73Feo7iJ5N2INQ/rSQQA=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=suse.com; s=google; t=1777454525; x=1778059325; darn=lists.linux.it;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:from:to:cc:subject:date:message-id:reply-to;\n bh=LynzBGwRwyd4NloHZXO91PN8g/ufkVyvJKm0O48aVAo=;\n b=FAAgdk4luqSaU/lzE9i/uYYl4bq7Hx4XL+D3P7ILWfLCGnACHZMI3bVSm56asldxdr\n oGcp0t1SpFHk6WF0q356sqxjMW7fY3piYJXJo16U9yIsbHrB+/5vSEOg4eyW4reYWXC+\n 1gGbb14PtTN+qgxPOArAKuM0hRuuKFIdU5Wkg8Nu+Cr3cpWQURfHILRFSSX27MJyM1pO\n WrreRR/I1SP4HD62/SBmwdJHdtvMqm0QIy60EAB742/ND0FXjQM9cMUBWgPavyMQUkii\n U8vDAtN0QyWn9Bi6wc0FHJirRNEtApOhHHvRZ9fQqbVxCGX8P1whxebbhd9xvf6JtwJk\n DdWQ=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777454525; x=1778059325;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=LynzBGwRwyd4NloHZXO91PN8g/ufkVyvJKm0O48aVAo=;\n b=jOJ7FihunvZixjL9J2dm7tHulmFByu7Y5Yla8sHfiktVRj2Jnlr7C1H/m6qPcP4fi/\n pdHJiZUizma6mv/Tu7VQC3QVgPUekMpPPiHdgyWUz3JMYU4VxKRfhYU8s92MjeOxPJRB\n ON7OBJAtTXB3rhcwebu8S+L8naDZvo/BbLxJI7Qyg7VFjDyB2C5ck1f8uQsv/iLXXSGf\n sgJTiu0JJ0bbniRsgAaGeM5kT9TNb+B6rMWNx+RYEM9HWu6lJ7KkEPGZQcX4XUKR8TxK\n moN95KiGNTJR3I1oyGPDb8Ly1rQC8cs/lLLRmqvB+DN0gTFuaa/Uv3kArXNMc/HovSky\n xERw==","X-Gm-Message-State":"AOJu0Yw1TgKT+hTtSBWcK9nzse3UN4CS/z/KQRXu4YaFu/GooOZaZKKp\n igJ1COnQKzz+KsUnlajX9b9Nlfbj23Nxl5ZTyeBjBje+1QbDVpSzyroPjZoJidOhK4A=","X-Gm-Gg":"AeBDietjxYDg7y7Fwmd0jCq5+iHDHetAOVNAT0nL6TbeprvEruKoEXBvTz31lkd2g7d\n Lbrpcowmx1GObLtpMds7s12O3s4QNTHECdeu1h/d1J2R80Tv0BAvhzZdwxGII7Y4uaf+7hbUI4s\n SPsyBerrsW7ZezTB2CaAbw97r3i8A7XcAAezMdNiVNy8uazvWVzm2ZfpAJLdhMOBpSH87BBWTtb\n eTQQOSk2V86y5UTUiPX7STm9+IFMMExUAbUiR6WhqhsaEfVDAzFRtohle2Ro711JnnS1h9cYcsU\n O8vXn0ECae/B5CGaLKZTbGo7RCGMJ8Wz5VCty7nsEphfCDEeJmwuWJxS13uhni6lLYmlygKyIPo\n efYNUDx7MQOAx82SRwiaL6Zif4DY7ys63r6MWOc9GtxrJJokyfrY9bH2fxzQvWi8zIVP2VtcIZZ\n b0Qv9Z3/GlPgtUSN5MM3BceMPbhK/0+7uikX9a+koMBFeJWUgfLDcasNUtoVfodz/ibdMN4RFi1\n IujiPd5TLQOeBqWEwlSyFlfVjBFetksOMmadbYwphNTVrwKIequ9NqCFHu/H+JoD6Eu7m2uVBvs\n OOkuyvdkxKwYQWqC4z7tQIA=","X-Received":"by 2002:a05:600c:c16a:b0:488:a639:b772 with SMTP id\n 5b1f17b1804b1-48a7b5193c3mr52778485e9.7.1777454524506;\n Wed, 29 Apr 2026 02:22:04 -0700 (PDT)","Message-ID":"<69f1cdbc.050a0220.29173d.95d4@mx.google.com>","To":"\"Wake Liu\" <wakel@google.com>","In-Reply-To":"\n <CAOcRiAEh+CFKBeaT+beQzhX_TRNiau4zP0iCuRFsahPkw7WhxA@mail.gmail.com>","Date":"Wed, 29 Apr 2026 09:22:03 +0000","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","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>","From":"Andrea Cervesato via ltp <ltp@lists.linux.it>","Reply-To":"Andrea Cervesato <andrea.cervesato@suse.com>","Cc":"camann@suse.com, rbranco@suse.com, Wake Liu via ltp <ltp@lists.linux.it>","MIME-Version":"1.0","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":3683962,"web_url":"http://patchwork.ozlabs.org/comment/3683962/","msgid":"<CAOcRiAEQnOGn7X5U51Jr_dYGCc6mRYwL_Vh68FNtkvRXXrCh7g@mail.gmail.com>","list_archive_url":null,"date":"2026-04-29T09:48:02","subject":"Re: [LTP] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","submitter":{"id":92108,"url":"http://patchwork.ozlabs.org/api/people/92108/","name":"Wake Liu","email":"wakel@google.com"},"content":"Thank you for your reply and for pointing out the behavior of tst_syscall().\n\n    I must apologize for the confusion. You are absolutely correct\nthat tst_syscall() automatically handles ENOSYS and\n  returns TCONF. I assumed it was ENOSYS without looking closely at\nthe exact error code in the logs.\n\n    After checking the logs again, I found that in our Android GKI\ntesting environment (kernel 6.12.74-android16), the\n  userfaultfd() syscall actually returns EOPNOTSUPP (95) instead of\nENOSYS when CONFIG_USERFAULTFD is disabled.\n\n    Here is the relevant log snippet for userfaultfd04:\n\n    external/ltp/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c:73:\nTBROK: syscall(__NR_userfaultfd, 526336)\n  failed: EOPNOTSUPP (95)\n\n    Because the error was EOPNOTSUPP, the TCONF logic in tst_syscall()\n(which only checks for ENOSYS) was bypassed, and\n  the error fell through to safe_userfaultfd(). Since\nsafe_userfaultfd() only handles EPERM for TCONF and defaults to\n  TBROK for everything else, it resulted in the TBROK failure.\n\n    Given this behavior, I think we should update the patch to handle\nEOPNOTSUPP in safe_userfaultfd() as well (and maybe\n  keep ENOSYS just in case other kernels do return it).\n\n    What do you think about this? I would be happy to send a v2 patch\naddressing this.\n\n\nAndrea Cervesato <andrea.cervesato@suse.com> 於 2026年4月29日週三 下午5:22寫道：\n>\n> > I encountered this issue during Android GKI (Generic Kernel Image) and\n> > VTS (Vendor Test Suite) testing on various device targets (e.g., Pixel\n> > 6, virtual devices). In our testing environment, we run the same test\n> > suite against a wide variety of kernel versions and configurations.\n> >\n> > Specifically, on some kernels where CONFIG_USERFAULTFD is disabled,\n> > the userfaultfd() syscall returns ENOSYS. While you mentioned\n> > tst_syscall() handles it, in the version/configuration we are using,\n> > tst_syscall() returns -1 and sets errno to ENOSYS. This is then passed\n> > to safe_userfaultfd(), which currently only checks for EPERM to skip\n> > (TCONF) and falls back to TBROK for any other error, including ENOSYS.\n>\n> I'm a bit puzzled because according to the tst_syscall() implementation\n> this should not happen. If syscall returns -1 with errno == ENOSYS,\n> the tst_syscall() implementation will always TCONF. This is visible\n> in include/lapi/syscalls.h generated by the build system before\n> compiling.\n>\n> Please provide the exact test that is failing, as well as the logs\n> you have seen having this issue.\n>\n> Regards,\n> --\n> Andrea Cervesato\n> SUSE QE Automation Engineer Linux\n> andrea.cervesato@suse.com","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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=Ee0qncJp;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=google.com header.i=@google.com header.a=rsa-sha256\n header.s=20251104 header.b=Jm9RTnnv;\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)"],"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 4g5CDZ5Kw9z1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 19:48:46 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 991D33E2D49\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 11:48:44 +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 40EDD3C2C93\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 11:48:41 +0200 (CEST)","from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com\n [IPv6:2607:f8b0:4864:20::1031])\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-3.smtp.seeweb.it (Postfix) with ESMTPS id 8F91A1A00906\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 11:48:40 +0200 (CEST)","by mail-pj1-x1031.google.com with SMTP id\n 98e67ed59e1d1-35fb0bb27e7so8339273a91.1\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 02:48:40 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777456124; h=mime-version :\n references : in-reply-to : date : message-id : to : subject : list-id\n : list-unsubscribe : list-archive : list-post : list-help :\n list-subscribe : from : reply-to : cc : content-type :\n content-transfer-encoding : sender : from;\n bh=OgBYtz+TdDwgzhQ/J0JzMMEdfGp10sxLi+J/hP17oeE=;\n b=Ee0qncJppnweqrJqIYFh/BYcxXbgbHWD4y6KYH0mOISaVKBQE5yFnQpuaBP0EbGodkY+G\n V0Dk9itmqMO9dOEp1/0fd1vacSNopa5JgeoXaII9QhWX+5F/PJfa25zMMXNaKSE6P3QS7rt\n lk0Wvl6QHcChsmaZBr9gkDlP7ym/7fo=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1777456119; x=1778060919; darn=lists.linux.it;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:from:to:cc:subject:date\n :message-id:reply-to;\n bh=GhGrws1hNi+ZcCcsfWUM++uhI+tRKeHLBdHZWgHwBIw=;\n b=Jm9RTnnv5GWZ0mFOJV/DXJgsUXc+QANe0kT8vRnpEzRjkeyGuG2eaaEZXVZftnFr17\n ulTT5F7vVmWe+1VM8qpRsF/pju/OC1em8QUlVMQBpHatJ5QaRJTWry8tufHMofNA7ono\n s3YBc5E8KyljIIvZmsXk4hmcPzqqeDHChPJdx/PLG2UyKRf99gHzdhUw6gNH5qVTb0bj\n YM2Ya35LX7bXS6iEU6H0DRnFMWNde2AovgGwhPPztPxeQ+aIpIEkExpmFLOHLJe73wkr\n oGL+2J0unAgyQKGrqgRZjHbZAF+Zq+OtgIAwHzAmGCo5ZokHael4QjxxjheJBGJlvZft\n rIRg=="],"ARC-Seal":"i=1; a=rsa-sha256; t=1777456119; cv=none;\n d=google.com; s=arc-20240605;\n b=aJhHGPrUHsW8GaL9IuQY3l9pWtVBCPkYnwcdcslupKiNns52nIcvGi5Hh6ZfaDKtKG\n fV6mbvTB1/MyHOoV3z/70hs6Na51RYrNhIul+ebnnOXfvvrsrgYYseLN9m3fHgT+UB+6\n BPdNksT9JWoxmgL4dm4OM5MEkkLaFTkF4E0GbU+2GMIS1qPlraBA3uC6+u/lZ4zjlMkN\n CMMjXkN3fQHXndAXmu4lAUQIeoN6lrn4fspzApbekggTuLl0nDsYrykxF6kg1XMFD/hs\n QMy4GOX6sRK6uQHD23fZ84NxzDqMzifsoj3c7izJOr+t35G60jPKa5biZBpLr3UsBSDe\n +pjA==","ARC-Message-Signature":"i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n s=arc-20240605;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:dkim-signature;\n bh=GhGrws1hNi+ZcCcsfWUM++uhI+tRKeHLBdHZWgHwBIw=;\n fh=qFEG16QLF8nzMvpGOA11J1RuCwVQ35mvz3NsCaNtro8=;\n b=JFW9h/V2oRFqnncXFy9/+jvmrxwQmDt6lJzWiX2i246j3bsDpPruLRoX4mHbbwTVYx\n goyLmx7oxKWSYmPyrK2dxALz1Vewu1ebVOLxgJFJYsk0f8TylMk21OgKZ+CHrcgbnh6W\n ROkx7Y81XEQgT1guEasd9jE6XTTgzDOGOgfRi5Cc3Q07uSDFeQo3XulwTXplcblTg03A\n PvVfPZV4ImbBDsUkR3qv5Ede7Ts+JV93PXYnl4A+nkE2KqCoLZl6F3sDXPP82Xo/hU3u\n vPOjf+35YTBdfkmKEid3jvDxV+Cc2AN8jUM0m6pNz2yxtbvNdolKE56lEujE2DAcBSCH\n Y9+w==; darn=lists.linux.it","ARC-Authentication-Results":"i=1; mx.google.com; arc=none","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777456119; x=1778060919;\n h=content-transfer-encoding:cc:to:subject:message-id:date:from\n :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from\n :to:cc:subject:date:message-id:reply-to;\n bh=GhGrws1hNi+ZcCcsfWUM++uhI+tRKeHLBdHZWgHwBIw=;\n b=oI03CgBqSVqnk/Fvoa+XV72+O9LSuY+o25Kg5nqbdIired1dbJd7P81nIIjLO4pzhl\n m0GC1olvOnjckrEQgACDN1CVFtxfNhiP0MJXdgTkqdD3JslfVFecpqVyq1BHruXiz606\n YkHH3w0Mjb0+vJVPVn3a8UZMJNCtlE/HwiCvI+vmDWhohom6IPXO7eohixGIa0AUzkBc\n tuhDHKgh8NieJKUmX6hlX6SC3aOEdA/2PjiVw391eB4NJNBTIxuEOcpeGz+SI+6wi2QU\n ZqGVgStKQdoAw/W4IA21sR4oQGaHGnbY7+hV18KtHc3Acj3JOfr4mQsIhu5RjYisB/19\n /guw==","X-Gm-Message-State":"AOJu0Yy2qXo8vsG1LAfBCye30Inl9koGsmTetnOfRjOHoqhMsTZgViUr\n v3Azk9fXwVL7hw01y5SM8gB67EYiiMox2l0QEZCrcw/1URM82WqGJAWYWHoUl2wIrCXklrT5aJv\n YJgcZ3VfqIFSc1ugn3ciNsFD2jdefgSyOmQYzfavAN6SKyCeyLK9hTcykjFY=","X-Gm-Gg":"AeBDiev8TIIwua4iN9l6zIoOcX+RR5Q0ti+5pLFEkKI37sb5nmcIKCtftU3WKHanw0W\n nQ+gjXwXiJm4nnidcrt9ZBrXiHX/dtK83+wItbhpwXGF5vCcixI3bPDXxpcsfahpoMQYEvojh6f\n sWbdwCQfcFkx+kV+nEPZFt740UtpEGpXH2S7tgTwloq2tt4x+mvYbJiFl7yTLYEO1GQEjwHq/UX\n MjVikhmCSrOHdm7g21vaQUm8+yrf1QnkIEQhFjy4Jln3CeJRkuSI7enTKOJHNhRQpXxiWa0Y/05\n 3PDjGHwU5aFqZ701F6AgDET2ku+7y/5II8g2vVGszmD4j1y3k1N02FSOl2M=","X-Received":"by 2002:a17:90b:3d8d:b0:35e:577c:c9f with SMTP id\n 98e67ed59e1d1-364a0b317b8mr3065898a91.9.1777456118435; Wed, 29 Apr 2026\n 02:48:38 -0700 (PDT)","MIME-Version":"1.0","References":"\n <CAOcRiAEh+CFKBeaT+beQzhX_TRNiau4zP0iCuRFsahPkw7WhxA@mail.gmail.com>\n <69f1cdbc.050a0220.29173d.95d4@mx.google.com>","In-Reply-To":"<69f1cdbc.050a0220.29173d.95d4@mx.google.com>","Date":"Wed, 29 Apr 2026 17:48:02 +0800","X-Gm-Features":"AVHnY4L8_L6nfWo_VH7O9iygdGqNDFQSUm73tpSq6Mgq-LxvExsACW_Hbwz71MY","Message-ID":"\n <CAOcRiAEQnOGn7X5U51Jr_dYGCc6mRYwL_Vh68FNtkvRXXrCh7g@mail.gmail.com>","To":"Andrea Cervesato <andrea.cervesato@suse.com>","X-Spam-Status":"No, score=-14.9 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,ENV_AND_HDR_SPF_MATCH,SPF_HELO_NONE,\n SPF_PASS,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","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>","From":"Wake Liu via ltp <ltp@lists.linux.it>","Reply-To":"Wake Liu <wakel@google.com>","Cc":"rbranco@suse.com, Wake Liu via ltp <ltp@lists.linux.it>","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"base64","Errors-To":"ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it","Sender":"\"ltp\" <ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it>"}},{"id":3683969,"web_url":"http://patchwork.ozlabs.org/comment/3683969/","msgid":"<69f1d73a.050a0220.3c19ab.a437@mx.google.com>","list_archive_url":null,"date":"2026-04-29T10:02:33","subject":"Re: [LTP] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","submitter":{"id":82886,"url":"http://patchwork.ozlabs.org/api/people/82886/","name":"Andrea Cervesato","email":"andrea.cervesato@suse.com"},"content":">     What do you think about this? I would be happy to send a v2 patch\n> addressing this.\n> \n\nno everything makes more sense :-) the right way to handle this issue\nis to use needs_kconfig as I explained in the first email.\n\nFeel free to follow that pattern after trying it out. It should work.\n\nKind regards,\n--\nAndrea Cervesato\nSUSE QE Automation Engineer Linux\nandrea.cervesato@suse.com","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=pass (1024-bit key;\n unprotected) header.d=lists.linux.it header.i=@lists.linux.it\n header.a=rsa-sha256 header.s=picard header.b=kY+vuier;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n unprotected) header.d=suse.com header.i=@suse.com header.a=rsa-sha256\n header.s=google header.b=DYyDeVj2;\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)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5CXf2zCMz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 20:02:42 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 347C93E2D4A\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 12:02:40 +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))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 104B53C2022\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 12:02:35 +0200 (CEST)","from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com\n [IPv6:2a00:1450:4864:20::32a])\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-2.smtp.seeweb.it (Postfix) with ESMTPS id 69AF6600A0F\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 12:02:35 +0200 (CEST)","by mail-wm1-x32a.google.com with SMTP id\n 5b1f17b1804b1-4890098abbaso97494655e9.0\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 03:02:35 -0700 (PDT)","from localhost.localdomain ([88.128.90.1])\n by smtp.gmail.com with ESMTPSA id\n 5b1f17b1804b1-48a7bc79ab4sm48542225e9.9.2026.04.29.03.02.34\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 29 Apr 2026 03:02:34 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=lists.linux.it;\n i=@lists.linux.it; q=dns/txt; s=picard; t=1777456960; h=message-id :\n to : in-reply-to : date : subject : list-id : list-unsubscribe :\n list-archive : list-post : list-help : list-subscribe : from :\n reply-to : cc : mime-version : content-type :\n content-transfer-encoding : sender : from;\n bh=w0bEoYceBi9pf+xIx732eFLU9bY9agaW8LFRCbadlnQ=;\n b=kY+vuierEpqFfLXDdhTwpV+8IwmQaYzoA1l5KtTbgZ/kZHhqMLhItkpqoDg3xwOrKwsN6\n mPMHkhITliEQOj/dDxh4faHjvDgA+FFxAgTMfRBmxn7mCn6kccTnabqUC3MiNl70IdE2AUE\n O4V5/TjuAC8r5EKY3YYl/wb/J0lFSZY=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=suse.com; s=google; t=1777456955; x=1778061755; darn=lists.linux.it;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:from:to:cc:subject:date:message-id:reply-to;\n bh=FHNQBg2SU0SfUiZjQYeSC+RINiguA2i3U+DIMBH2da0=;\n b=DYyDeVj2wWNtEblpE0+GD9A7f8/0iCjmew/WVf2brrf0Up2Ov0gfQ8UGGTfsPkZB0r\n L/LchzTTVRTmxgpnifM/v127zOCiwsAurUyDgPUabbiY6YghadiivmSZ50Ee+bgCa3IG\n SwWZfIowg5zixFm6HG9X7plS95WRit9OjfQulyEA6Hb5lm/oYZ/hnKCyvu6YPM/iEKYM\n IIGrHiOLEWHusP+Ev69Zs8JZ5eCypz5poiIKBzjSWhh5Opu2XXbvYi8N+u/6Py7AKPZZ\n RHy6zSQJyMiOkbahrAxJNG9ukh/0Enwigh9ad5lObDzSlIta3zsasriZcEYffIFXeNcq\n 9mOw=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777456955; x=1778061755;\n h=date:content-transfer-encoding:subject:in-reply-to:cc:to:from\n :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date\n :message-id:reply-to;\n bh=FHNQBg2SU0SfUiZjQYeSC+RINiguA2i3U+DIMBH2da0=;\n b=DYtD5I9eppZr/KnjXSg/BIk/oKR56fDTtdIBUns3G+mN9wSAd/YQIpeNeSr3WxqPtp\n Fs61xJXbtmJH8bfa0lej4V+i9ZQFyuoV1037q3BkN806nSCI+/v3bWsHwTtX+QCtJAzE\n Hs+tStySLhNRoaNXqHVqjaVTuXC7OmPDAUIh7e18mr1SZwOIRYPnGVRDlve9i/CxQdah\n Nd50ZBZxBzhRbUG84z+laBXbGd4Mpz/91rT6J+nFHNizCQ3SAmyC80qc4hk6kmvv3dmu\n cpARlSHVHtcbacARTNL+cs5FiYWPy6j0gzcVSCvpu0qfsE9Ww1QyyhQSycRl5Bs6JnXf\n QarQ==","X-Gm-Message-State":"AOJu0YxfdCQfmWDK0uYgXqxdAqwyfY3J4WV8LH4plW2L5iNfqfCt5Rmq\n AuNdb6Av+cWiz6dMMuWAKDp1ePqanbyvLfffOwDNmySY6ZdVG2TSD/Nijr9EGcIDgHHv3GChgAO\n OeTYsFxylrQ==","X-Gm-Gg":"AeBDievrkafnZ9D169j6O1mstyy/jBlyPBPQurMzBEbQQlfpxO5oPV/Xp81rnULMXB0\n MWNBwKgANcbkFB2tOsOFqJ2UcsQdGc5tK6giEoAQ9qllGNMgmy/NG2XAG/BRqdIuv1xKXGcQmD9\n n417pdBl4wZFxL4h2e8Xf+wG4+Mv+TTFKpUkazCgqNLr908TsOL1GNOWHhcCLZUtD+F7Cz12LXU\n vH60+KjnnkCZe+U/VULdwZYN7e0dU4J9a1/uI3G8hJ/oOGMN6vB8jzBdAzuuYP31p4yH6L0E849\n w/YE7nQ4DXPQsIGE7Z6vSxLHEuW8WtOZ05tuautOA0ROn+mV0rjhOYnSCHO+W+8t/qqCmzhLioX\n UYwcTpkYUsIzEYqChxCwoI6T3WQKeY9wZ8bm57THwQzFm6VhetmCZ2w3sDwPydIR2bAhGdH2ln6\n +n5nIlYk0Ml5IEqrzOWNYA6nMnd9VaUGj6pnKlb4LS+fFVj9f6XqCRTd+v/5FW","X-Received":"by 2002:a05:600c:3556:b0:489:284:44ab with SMTP id\n 5b1f17b1804b1-48a7b51e0d4mr54293595e9.12.1777456954582;\n Wed, 29 Apr 2026 03:02:34 -0700 (PDT)","Message-ID":"<69f1d73a.050a0220.3c19ab.a437@mx.google.com>","To":"\"Wake Liu\" <wakel@google.com>","In-Reply-To":"\n <CAOcRiAEQnOGn7X5U51Jr_dYGCc6mRYwL_Vh68FNtkvRXXrCh7g@mail.gmail.com>","Date":"Wed, 29 Apr 2026 10:02:33 +0000","X-Spam-Status":"No, score=0.1 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,DKIM_VALID_EF,DMARC_PASS,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] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","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>","From":"Andrea Cervesato via ltp <ltp@lists.linux.it>","Reply-To":"Andrea Cervesato <andrea.cervesato@suse.com>","Cc":"rbranco@suse.com, Wake Liu via ltp <ltp@lists.linux.it>","MIME-Version":"1.0","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":3683993,"web_url":"http://patchwork.ozlabs.org/comment/3683993/","msgid":"<afHkQ3kFW1PBSHU0@yuki.lan>","list_archive_url":null,"date":"2026-04-29T11:07:50","subject":"Re: [LTP] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","submitter":{"id":8530,"url":"http://patchwork.ozlabs.org/api/people/8530/","name":"Cyril Hrubis","email":"chrubis@suse.cz"},"content":"Hi!\n>  include/lapi/userfaultfd.h | 4 ++++\n>  1 file changed, 4 insertions(+)\n> \n> diff --git a/include/lapi/userfaultfd.h b/include/lapi/userfaultfd.h\n> index 0c9e34c84..09126d856 100644\n> --- a/include/lapi/userfaultfd.h\n> +++ b/include/lapi/userfaultfd.h\n> @@ -244,6 +244,10 @@ static inline int safe_userfaultfd(const char *file, const int lineno, int\n>  retry:\n>  \tret = tst_syscall(__NR_userfaultfd, flags);\n>  \tif (ret == -1) {\n> +\t\tif (errno == ENOSYS) {\n> +\t\t\ttst_brk_(file, lineno, TCONF | TERRNO,\n> +\t\t\t\t\"userfaultfd() is not supported by this kernel\");\n> +\t\t}\n\nThe tst_syscall() code has already branch that checks for ENOSYS and\ncalls tst_brk(TCONF, ...) which looks like:\n\n#define TST_SYSCALL_BRK__(NR, SNR) ({ \\\ntst_brk(TCONF, \\\n        \"syscall(%d) \" SNR \" not supported on your arch\", NR); \\\n})\n\n#define tst_syscall(NR, ...) ({ \\\nintptr_t tst_ret; \\\nif (NR == __LTP__NR_INVALID_SYSCALL) { \\\n        errno = ENOSYS; \\\n        tst_ret = -1; \\\n} else { \\\n        tst_ret = syscall(NR, ##__VA_ARGS__); \\\n} \\\nif (tst_ret == -1 && errno == ENOSYS) { \\\n        TST_SYSCALL_BRK__(NR, #NR); \\\n} \\\ntst_ret; \\\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=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 4g5F021pJNz1xqf\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 21:08:02 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 2CDB13E49CB\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 13:07:59 +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))\n (No client certificate requested)\n by picard.linux.it (Postfix) with ESMTPS id 540453C60F2\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 13:07:55 +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-2.smtp.seeweb.it (Postfix) with ESMTPS id 004FF600A7E\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 13:07:54 +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 3E1595BD50;\n Wed, 29 Apr 2026 11:07:54 +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 2BC71593B0;\n Wed, 29 Apr 2026 11:07:54 +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 ipb7CYrm8WnWGgAAD6G6ig\n (envelope-from <chrubis@suse.cz>); Wed, 29 Apr 2026 11:07:54 +0000"],"Date":"Wed, 29 Apr 2026 13:07:50 +0200","From":"Cyril Hrubis <chrubis@suse.cz>","To":"Wake Liu <wakel@google.com>","Message-ID":"<afHkQ3kFW1PBSHU0@yuki.lan>","References":"<20260429064011.3200745-1-wakel@google.com>","MIME-Version":"1.0","Content-Disposition":"inline","In-Reply-To":"<20260429064011.3200745-1-wakel@google.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-Server":"rspamd2.dmz-prg2.suse.org","X-Spamd-Result":"default: False [-4.00 / 50.00];\n\tREPLY(-4.00)[]","X-Rspamd-Queue-Id":"3E1595BD50","X-Rspamd-Action":"no action","X-Spam-Score":"-4.00","X-Spam-Level":"","X-Spam-Status":"No, score=0.0 required=7.0 tests=DMARC_MISSING,SPF_HELO_NONE,\n SPF_PASS 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] [PATCH] lapi/userfaultfd: Handle ENOSYS in\n SAFE_USERFAULTFD","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":"camann@suse.com, rbranco@suse.com, 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>"}}]