{"id":2230133,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2230133/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/patch/20260429101244.3309913-1-wakel@google.com/","project":{"id":59,"url":"http://patchwork.ozlabs.org/api/1.1/projects/59/?format=json","name":"Linux Test Project development","link_name":"ltp","list_id":"ltp.lists.linux.it","list_email":"ltp@lists.linux.it","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20260429101244.3309913-1-wakel@google.com>","date":"2026-04-29T10:12:44","name":"syscalls/userfaultfd04: Require CONFIG_USERFAULTFD=y","commit_ref":null,"pull_url":null,"state":"needs-review-ack","archived":false,"hash":"7aa41aabac647740db24aa3294b89b906a7ceda9","submitter":{"id":92108,"url":"http://patchwork.ozlabs.org/api/1.1/people/92108/?format=json","name":"Wake Liu","email":"wakel@google.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/ltp/patch/20260429101244.3309913-1-wakel@google.com/mbox/","series":[{"id":502033,"url":"http://patchwork.ozlabs.org/api/1.1/series/502033/?format=json","web_url":"http://patchwork.ozlabs.org/project/ltp/list/?series=502033","date":"2026-04-29T10:12:44","name":"syscalls/userfaultfd04: Require CONFIG_USERFAULTFD=y","version":1,"mbox":"http://patchwork.ozlabs.org/series/502033/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2230133/comments/","check":"success","checks":"http://patchwork.ozlabs.org/api/patches/2230133/checks/","tags":{},"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=neLMVf7Q;\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=wdbEbCYd;\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 4g5CmX2LJjz1yHZ\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 20:13:00 +1000 (AEST)","from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id 4FAAD3E2D4D\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 12:12:58 +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 9F2793E1A9F\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 12:12:52 +0200 (CEST)","from mail-pl1-x64a.google.com (mail-pl1-x64a.google.com\n [IPv6:2607:f8b0:4864:20::64a])\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 59A331A00920\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 12:12:52 +0200 (CEST)","by mail-pl1-x64a.google.com with SMTP id\n d9443c01a7336-2b24af7ca99so167285565ad.1\n for <ltp@lists.linux.it>; Wed, 29 Apr 2026 03:12:52 -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=1777457578; h=date :\n in-reply-to : mime-version : references : message-id : to : subject :\n list-id : 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=FOZra/PLjT2YKkfy5ey/dhqEysI81FJnYgE2b37pH8s=;\n b=neLMVf7QqRsdaNspdv3xJwW0YW1oOq3pcTvGNsTNEP8mxtaOLcgkzg1ay/PXf1LudIURa\n klNC8Slu6/G29Vs3IBIpynHTYGwy20ayTlbq94UNSF7v+P8/SThHDeGUFIjxnkKR61lqX8G\n UaeTxAocAgs95KeItufF5kRNEb678do=","v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=google.com; s=20251104; t=1777457570; x=1778062370; darn=lists.linux.it;\n h=cc:to:from:subject:message-id:references:mime-version:in-reply-to\n :date:from:to:cc:subject:date:message-id:reply-to;\n bh=g2Sxeg6YgaqcxBDNY5o1Np5oxhNKj6kqTqdRq+c/4II=;\n b=wdbEbCYd03FzfE0sCCywkdYMP/EEzikCu/f7UYoh1d+jEZoPjyeXfI99i6LNaOuq2K\n USHSd0Jo6OhzC8rPPTifKKtjLM+hraOHH00FbPJaZ+aegT4T5M/QYFfm0TOK6gVpYkUs\n qjylRiESSdbj2cqwUopMJlzlcaWc0e1th64rdXGvE3OP3GBTtO2rm4/xjbJuRV0Gh3WI\n UVGA84jW4EBx4/zohd3FXmIdojAaRQILBIjD2iigdqPqn24ewrQHs69yL28afULeFLdi\n haLmtzdMLwtCTZFh3CckXEgPkETWmH3Wb+uqfxwgagFUY3XhGI3uSLVkJLAT3XM6otTV\n 347w=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1777457570; x=1778062370;\n h=cc:to:from:subject:message-id:references:mime-version:in-reply-to\n :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;\n bh=g2Sxeg6YgaqcxBDNY5o1Np5oxhNKj6kqTqdRq+c/4II=;\n b=K+z73spJVXSsoSnoF2uFaUAX5zBXbp2Gry0qIizZSUIwR5HZ+mlwUFrZORKVlXTvaa\n 0oohWHDoZDGZ4OFOl5yHseNyu1bSbVHVW3cMtmrDqnf1Gx+mZemPF/ShnEf3STvuKsio\n 6lJxjVkQL8UiSLkiIWTy+ycV8rur0htZph7qIkM5E2bFrURgrcOi+rTnFh/27PcytE9G\n ENwjoYNZ4UNgEBzVUBf9l3xlYaNcMAVEnM3LnnPtir8SaEIxKL3kwzkmZV2XIXLaHd1C\n IwX6abJ5kJjeHynX/Hyx9KKXGkP/P+NP/vhtPZm3QPJdqmgH62sWDy15PxV4Ucjzih0d\n uRew==","X-Gm-Message-State":"AOJu0YxzZwgi+XxguKtB9YXZBo2tHmxcU3DOvZ/PaCMzxyJTtO+S/jTv\n jBgcGxZIFTdVMOohWHYQBf8DpYsYQvN8XUMt1f/i45ie/5HFgviT53mNk82ylH8ALlX22XOqy6W\n 5//AS3yBD84DUJ+a/m55v6RGNTzUQUrXlGRGa9URfWpUI2WdRP2ZfIgrtLC43vszP/5oD7QrV2l\n 54IXc7GpnOUvvF8ebUsxKQxsvcMw==","X-Received":"from pgdj5.prod.google.com ([2002:a05:6a02:5205:b0:c76:3f60:53ff])\n (user=wakel job=prod-delivery.src-stubby-dispatcher) by\n 2002:a05:6a20:3d85:b0:3a1:5cce:ca8d\n with SMTP id adf61e73a8af0-3a39c28db89mr8666866637.51.1777457570045; Wed, 29\n Apr 2026 03:12:50 -0700 (PDT)","Date":"Wed, 29 Apr 2026 18:12:44 +0800","In-Reply-To":"<69f1d73a.050a0220.3c19ab.a437@mx.google.com>","Mime-Version":"1.0","References":"<69f1d73a.050a0220.3c19ab.a437@mx.google.com>","X-Mailer":"git-send-email 2.54.0.545.g6539524ca2-goog","Message-ID":"<20260429101244.3309913-1-wakel@google.com>","To":"ltp@lists.linux.it","X-Spam-Status":"No, score=-7.4 required=7.0 tests=DKIM_SIGNED,DKIM_VALID,\n DKIM_VALID_AU,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL\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":"[LTP] [PATCH] syscalls/userfaultfd04: Require CONFIG_USERFAULTFD=y","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":"Wake Liu <wakel@google.com>, camann@suse.com, rbranco@suse.com","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>"},"content":"The test fails with TBROK on systems where CONFIG_USERFAULTFD is not\nenabled because SAFE_USERFAULTFD calls tst_syscall(__NR_userfaultfd)\nwhich fails (e.g., returning ENOSYS or EOPNOTSUPP), and SAFE_USERFAULTFD\ncalls tst_brk(TBROK) for errors other than EPERM.\n\nFix this by adding CONFIG_USERFAULTFD=y to .needs_kconfigs, so that\nthe test is skipped with TCONF on kernels without userfaultfd support.\n\nSigned-off-by: Wake Liu <wakel@google.com>\n---\n testcases/kernel/syscalls/userfaultfd/userfaultfd04.c | 4 ++++\n 1 file changed, 4 insertions(+)","diff":"diff --git a/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c b/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c\nindex 4eb811e45..a84117964 100644\n--- a/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c\n+++ b/testcases/kernel/syscalls/userfaultfd/userfaultfd04.c\n@@ -98,4 +98,8 @@ static void run(void)\n \n static struct tst_test test = {\n \t.test_all = run,\n+\t.needs_kconfigs = (const char *[]) {\n+\t\t\"CONFIG_USERFAULTFD=y\",\n+\t\tNULL\n+\t}\n };\n","prefixes":[]}