Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2227300/?format=api
{ "id": 2227300, "url": "http://patchwork.ozlabs.org/api/patches/2227300/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/patch/20260423120309.18049-5-chrubis@suse.cz/", "project": { "id": 59, "url": "http://patchwork.ozlabs.org/api/projects/59/?format=api", "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": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260423120309.18049-5-chrubis@suse.cz>", "list_archive_url": null, "date": "2026-04-23T12:03:05", "name": "[v2,4/8] syscalls: Add epoll_ctl06", "commit_ref": null, "pull_url": null, "state": "needs-review-ack", "archived": false, "hash": "099ca451cc79640011a97fa8ba519c75d5506f5d", "submitter": { "id": 8530, "url": "http://patchwork.ozlabs.org/api/people/8530/?format=api", "name": "Cyril Hrubis", "email": "chrubis@suse.cz" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/ltp/patch/20260423120309.18049-5-chrubis@suse.cz/mbox/", "series": [ { "id": 501188, "url": "http://patchwork.ozlabs.org/api/series/501188/?format=api", "web_url": "http://patchwork.ozlabs.org/project/ltp/list/?series=501188", "date": "2026-04-23T12:03:01", "name": "Add more epoll tests", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/501188/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2227300/comments/", "check": "warning", "checks": "http://patchwork.ozlabs.org/api/patches/2227300/checks/", "tags": {}, "related": [], "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=HDbVL3RB;\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=wa5SDpoM;\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=k+fkrcGw;\n\tdkim=neutral header.d=suse.cz header.i=@suse.cz header.a=ed25519-sha256\n header.s=susede2_ed25519 header.b=TXbVfn8R;\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 dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=k+fkrcGw;\n dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=TXbVfn8R" ], "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 4g1ZYP1Fspz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 22:05:45 +1000 (AEST)", "from picard.linux.it (localhost [IPv6:::1])\n\tby picard.linux.it (Postfix) with ESMTP id CC1CA3E5387\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 14:05:42 +0200 (CEST)", "from in-5.smtp.seeweb.it (in-5.smtp.seeweb.it [217.194.8.5])\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 EED383E5375\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 14:03:31 +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 37AB160057D\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 14:03:31 +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 8CC945BD41\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 12:03:06 +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 7D90F593B0\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 12:03:06 +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 R0RIHXoK6mm9UQAAD6G6ig\n (envelope-from <chrubis@suse.cz>)\n for <ltp@lists.linux.it>; Thu, 23 Apr 2026 12:03:06 +0000" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776945793; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=evngerSik1ESTg7uFYkiMM4ARIJ08OXB0fKLzjwYo5k=;\n b=HDbVL3RBYhrnSb7u40RIIZ5rNQqz9143UfSjMiN7A2qI1DH2zRaBZUGghyF3d/6ZTEIJp8\n Ud6G8JkQc5Ov2OOG8uvwMxUev78qjHkT1CU1neP6lx1y+e+TQSH/5i2iqvtwTljlwcfwkQ\n Xe/4qpgiN08vbsoNqeTGYcojbQJJJf8=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776945793;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=evngerSik1ESTg7uFYkiMM4ARIJ08OXB0fKLzjwYo5k=;\n b=wa5SDpoMBUlZmJMSBphDTN/hGdGTmhPjOssL7JPTjVFgE6084X4PBxSOuWLGzctVHq1Svh\n ivC9UlnJyrsrZJCw==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_rsa;\n t=1776945790; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=evngerSik1ESTg7uFYkiMM4ARIJ08OXB0fKLzjwYo5k=;\n b=k+fkrcGwAcxOoVkEEn0GcdYx0nK7L2Oiz/dkSux9GZKi+v4Y8H2jo4x2c16nr2xBNZlUsh\n XrzeG0lC0FO3dcZc/8eeMs3azXybPoqk1DJt5X0NyFVwqDsez+5rZOsqMpRpe1BJAFCpLy\n MCvZNSa860hBHBfeVPBECobVRHHUv+Q=", "v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz;\n s=susede2_ed25519; t=1776945790;\n h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:\n mime-version:mime-version:\n content-transfer-encoding:content-transfer-encoding:\n in-reply-to:in-reply-to:references:references;\n bh=evngerSik1ESTg7uFYkiMM4ARIJ08OXB0fKLzjwYo5k=;\n b=TXbVfn8RrPfjZStPgMHz+kMT5AygXohfuv2HFdy1/9JgumaIG948trza7VBKUsxp/DjOVW\n oKKJXjU86bE4lADA==" ], "From": "Cyril Hrubis <chrubis@suse.cz>", "To": "ltp@lists.linux.it", "Date": "Thu, 23 Apr 2026 14:03:05 +0200", "Message-ID": "<20260423120309.18049-5-chrubis@suse.cz>", "X-Mailer": "git-send-email 2.52.0", "In-Reply-To": "<20260423120309.18049-1-chrubis@suse.cz>", "References": "<20260423120309.18049-1-chrubis@suse.cz>", "MIME-Version": "1.0", "X-Rspamd-Action": "no action", "X-Rspamd-Server": "rspamd2.dmz-prg2.suse.org", "X-Spamd-Result": "default: False [-3.01 / 50.00]; BAYES_HAM(-3.00)[100.00%];\n NEURAL_HAM_LONG(-1.00)[-1.000]; MID_CONTAINS_FROM(1.00)[];\n R_MISSING_CHARSET(0.50)[];\n R_DKIM_ALLOW(-0.20)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain];\n MX_GOOD(-0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[];\n RCVD_VIA_SMTP_AUTH(0.00)[];\n FUZZY_RATELIMITED(0.00)[rspamd.com]; RCPT_COUNT_ONE(0.00)[1];\n MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[];\n PREVIOUSLY_DELIVERED(0.00)[ltp@lists.linux.it];\n FROM_EQ_ENVFROM(0.00)[];\n DBL_BLOCKED_OPENRESOLVER(0.00)[suse.cz:dkim,suse.cz:mid,suse.cz:email,imap1.dmz-prg2.suse.org:helo,imap1.dmz-prg2.suse.org:rdns];\n DKIM_SIGNED(0.00)[suse.cz:s=susede2_rsa,suse.cz:s=susede2_ed25519];\n RCVD_TLS_ALL(0.00)[]; TO_DN_NONE(0.00)[];\n RCVD_COUNT_TWO(0.00)[2];\n SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from];\n DKIM_TRACE(0.00)[suse.cz:+]", "X-Rspamd-Queue-Id": "8CC945BD41", "X-Spam-Score": "-3.01", "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": "[LTP] [PATCH v2 4/8] syscalls: Add epoll_ctl06", "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>", "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": "Test that iterates over different types of file descriptors, attempts to\nadd them to epoll and expects either success or a failure based on the\ntype of the file descriptor.\n\nSigned-off-by: Cyril Hrubis <chrubis@suse.cz>\n---\n runtest/syscalls | 1 +\n .../kernel/syscalls/epoll_ctl/.gitignore | 1 +\n .../kernel/syscalls/epoll_ctl/epoll_ctl06.c | 71 +++++++++++++++++++\n 3 files changed, 73 insertions(+)\n create mode 100644 testcases/kernel/syscalls/epoll_ctl/epoll_ctl06.c", "diff": "diff --git a/runtest/syscalls b/runtest/syscalls\nindex 569e8bbe4..b302935d5 100644\n--- a/runtest/syscalls\n+++ b/runtest/syscalls\n@@ -187,6 +187,7 @@ epoll_ctl02 epoll_ctl02\n epoll_ctl03 epoll_ctl03\n epoll_ctl04 epoll_ctl04\n epoll_ctl05 epoll_ctl05\n+epoll_ctl06 epoll_ctl06\n \n epoll_wait01 epoll_wait01\n epoll_wait02 epoll_wait02\ndiff --git a/testcases/kernel/syscalls/epoll_ctl/.gitignore b/testcases/kernel/syscalls/epoll_ctl/.gitignore\nindex 3e05f2e1f..9c555f41b 100644\n--- a/testcases/kernel/syscalls/epoll_ctl/.gitignore\n+++ b/testcases/kernel/syscalls/epoll_ctl/.gitignore\n@@ -3,3 +3,4 @@ epoll_ctl02\n epoll_ctl03\n epoll_ctl04\n epoll_ctl05\n+epoll_ctl06\ndiff --git a/testcases/kernel/syscalls/epoll_ctl/epoll_ctl06.c b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl06.c\nnew file mode 100644\nindex 000000000..b2bfce252\n--- /dev/null\n+++ b/testcases/kernel/syscalls/epoll_ctl/epoll_ctl06.c\n@@ -0,0 +1,71 @@\n+// SPDX-License-Identifier: GPL-2.0-or-later\n+/*\n+ * Copyright (c) 2026 Cyril Hrubis <chrubis@suse.cz>\n+ */\n+\n+/*\\\n+ * Verify epoll_ctl EPOLL_CTL_ADD behavior across all file descriptor types.\n+ *\n+ * The test iterates over all available fd types via TST_FD_FOREACH and\n+ * attempts EPOLL_CTL_ADD on each. File descriptor types that implement the\n+ * poll file operation are expected to succeed. The rest must fail with:\n+ *\n+ * - EPERM for fds that are valid but lack poll support (regular files,\n+ * directories, /dev/zero, /proc files, memfd).\n+ * - EBADF for fds that are not usable for I/O (O_PATH, open_tree).\n+ */\n+\n+#include <sys/epoll.h>\n+\n+#include \"tst_test.h\"\n+#include \"tst_epoll.h\"\n+#include \"tst_fd.h\"\n+\n+static int exp_errno(enum tst_fd_type type)\n+{\n+\tswitch (type) {\n+\tcase TST_FD_FILE:\n+\tcase TST_FD_DIR:\n+\tcase TST_FD_DEV_ZERO:\n+\tcase TST_FD_PROC_MAPS:\n+\tcase TST_FD_MEMFD:\n+\tcase TST_FD_MEMFD_SECRET:\n+\t\treturn EPERM;\n+\tcase TST_FD_PATH:\n+\tcase TST_FD_OPEN_TREE:\n+\tcase TST_FD_FSOPEN:\n+\tcase TST_FD_FSPICK:\n+\t\treturn EBADF;\n+\tdefault:\n+\t\treturn 0;\n+\t}\n+}\n+\n+static void run(void)\n+{\n+\tint efd, err;\n+\tstruct epoll_event ev = {.events = EPOLLIN};\n+\n+\tTST_FD_FOREACH(fd) {\n+\t\tefd = SAFE_EPOLL_CREATE1(0);\n+\t\tev.data.fd = fd.fd;\n+\t\terr = exp_errno(fd.type);\n+\n+\t\tif (err) {\n+\t\t\tTST_EXP_FAIL(epoll_ctl(efd, EPOLL_CTL_ADD,\n+\t\t\t\t fd.fd, &ev), err,\n+\t\t\t\t \"epoll_ctl() on %s\", tst_fd_desc(&fd));\n+\t\t} else {\n+\t\t\tTST_EXP_PASS(epoll_ctl(efd, EPOLL_CTL_ADD,\n+\t\t\t\t fd.fd, &ev),\n+\t\t\t\t \"epoll_ctl() on %s\", tst_fd_desc(&fd));\n+\t\t}\n+\n+\t\tSAFE_CLOSE(efd);\n+\t}\n+}\n+\n+static struct tst_test test = {\n+\t.test_all = run,\n+\t.needs_tmpdir = 1,\n+};\n", "prefixes": [ "v2", "4/8" ] }