Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226963/?format=api
{ "id": 2226963, "url": "http://patchwork.ozlabs.org/api/patches/2226963/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177689989593.3821326.8030762717050212953.stgit@frogsfrogsfrogs/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<177689989593.3821326.8030762717050212953.stgit@frogsfrogsfrogs>", "list_archive_url": null, "date": "2026-04-22T23:24:19", "name": "[03/10] unix_io: allow passing /dev/fd/XXX paths to the unixfd IO manager", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "d6992abcc26f0b7888b93922679b097829f1ba5c", "submitter": { "id": 77032, "url": "http://patchwork.ozlabs.org/api/people/77032/?format=api", "name": "Darrick J. Wong", "email": "djwong@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177689989593.3821326.8030762717050212953.stgit@frogsfrogsfrogs/mbox/", "series": [ { "id": 501127, "url": "http://patchwork.ozlabs.org/api/series/501127/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501127", "date": "2026-04-22T23:23:47", "name": "[01/10] libext2fs: make it possible to extract the fd from an IO manager", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501127/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226963/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226963/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <SRS0=ANhs=CV=vger.kernel.org=linux-ext4+bounces-16007-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ext4@vger.kernel.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "patchwork-incoming@ozlabs.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=odUyoTq7;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=anhs=cv=vger.kernel.org=linux-ext4+bounces-16007-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c0a:e001:db::12fc:5321\"\n arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org", "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=odUyoTq7;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16007-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"odUyoTq7\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\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 4g1Fjk3cVJz1yDD\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:26:50 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g1Fjk36PQz4wCM\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 09:26:50 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g1Fjk31v5z4wHx; Thu, 23 Apr 2026 09:26:50 +1000 (AEST)", "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\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 gandalf.ozlabs.org (Postfix) with ESMTPS id 4g1Fjf5gk6z4wCM\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 23 Apr 2026 09:26:46 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id 9BEEA3073D63\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 22 Apr 2026 23:24:21 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 430B436E473;\n\tWed, 22 Apr 2026 23:24:20 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 051451D6DA9;\n\tWed, 22 Apr 2026 23:24:20 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id C9E19C2BCAF;\n\tWed, 22 Apr 2026 23:24:19 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1776900410; cv=pass;\n\tb=epf3g5afy4Bu6HCM9fJJF1nraY/iIy1w9rF1Dawntmc7Vsvg1CV+lbKYo5kPiEzXXSqLpO/mlcjdCIvTkrIASX2J85izGOOaic/KJeFl0NPHa5CTbVEZgiRRqC2N2e1bv+OsrCvefBqZOfxc4Uo1m6Z9flM30NzxwdL6cYU5vyWs6e7XegOsu4mrFvoFz7bMQCHB5ftPb/68qxhEZAi5Da08OkxXrUxEm0X4zT9m1iuDHxSpwdSxkf4YbTym2JDvCFAhB6teYtoFbKmbHExXPOvfPdNytx0Xh2lCGTNEE/56qBDdcdDoEXIp43qkAME2+eID5bjmjxc16tLXa9ByYw==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1776900260; cv=none;\n b=Rz4atMf6KBQ0gmHxjMKGwlpNVMkKQmT8ddcw0WT7xXhwvpGadGrxgx/x/NxCKbQEu4SIA9djKaecGFPG92hDyn+yWo5HTLbym1YhLHOUC/AwwrIbUzbDApm1kwrJsOmJXtoc+znrrK/BPIu093zYNIsMVEslmo3M6ukHkhM1oLY=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1776900410; c=relaxed/relaxed;\n\tbh=mx3cTTISTwWgNMHQtRxeSeZbdmyLeMnmFveBnoSGg/k=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=g7TjhFPBY2S8FDaZTOrq55bzBJ/rBfEeeVy+5zF9urpmgjzynwcPf5e6XHXu452lmpCNeS0TjeOWIpS2yV7dLL4zig7M/kynn6AnQvayae6Ok2AVTS5u/bMahotirRiYfW5TzdfT+Tz6xkBjGrxI92sclbGc8H94KiRn1WvTsTNnLpW7At3Yh5Kn70IVtjppDMhq1oiP0zNf42IkINLxHLed9dxNivhOshp4e4XiMEcvqEJlLD1bIXwrZJyJBILHVCVS3prIxNYzQAoYJJgHiGaRyENDuSojW5bGkYV/UXid9J65jroV2YKk2dLop5/O3ie9kxnpbiJMlfPzX1X6wQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1776900260; c=relaxed/simple;\n\tbh=NkhOfkyKeLlFOmxSWSlGf6xb4M1S8YLYljkVdi3MaHo=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=hHVMWHYDE4hGtcoTSbkhaXt+uY/ZES2N40AzTw7CwUWOE1zACL2ug8jIXURGWGBF3dCr6iV8vf4i57cZE3D9KOBOHSzDn43x6ZggEfP7ACtLvBHJrVumXjFj9nYnBxvR8t7DgxJ96wR1ptkUlAConJwETHMnrzRk3mLayhqALpw=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=odUyoTq7; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16007-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=odUyoTq7; arc=none smtp.client-ip=10.30.226.201" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1776900259;\n\tbh=NkhOfkyKeLlFOmxSWSlGf6xb4M1S8YLYljkVdi3MaHo=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=odUyoTq7Vp2S9mBWvbF5qFoaOAgbteZHoTrVx5PVBIawj82FhrXenru3gif6sFq6z\n\t 94zBP8JnIo+J9nHjwo9zz2fjgNYVsguByZ2KQgKZ8XMyquvgVY0Zlpm4WxpBhLM7HA\n\t K3XOwgHyFuA1pzMqC44uXhZ+JM8AYmwLVYRJJtBoEja69GaduWY4k5cuNyQzCbIh/v\n\t A0kd22K5+OGZM6NHfeAS1+LOzz8asjECepWOSRYLC5jso0QV0TtRiXe2zpiK4684Mn\n\t lJPaALs/x3+pruq6SFHFUDKLoEHSS9q4+bqmlkR3pE9KrKWP49pHUL9jLS/sVUYUFg\n\t fVVSLyyllapeg==", "Date": "Wed, 22 Apr 2026 16:24:19 -0700", "Subject": "[PATCH 03/10] unix_io: allow passing /dev/fd/XXX paths to the unixfd\n IO manager", "From": "\"Darrick J. Wong\" <djwong@kernel.org>", "To": "tytso@mit.edu", "Cc": "linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org,\n fuse-devel@lists.linux.dev, linux-ext4@vger.kernel.org, neal@gompa.dev,\n joannelkoong@gmail.com, miklos@szeredi.hu, bernd@bsbernd.com", "Message-ID": "<177689989593.3821326.8030762717050212953.stgit@frogsfrogsfrogs>", "In-Reply-To": "<177689989498.3821326.15497525132012299039.stgit@frogsfrogsfrogs>", "References": "<177689989498.3821326.15497525132012299039.stgit@frogsfrogsfrogs>", "Precedence": "bulk", "X-Mailing-List": "linux-ext4@vger.kernel.org", "List-Id": "<linux-ext4.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "From: Darrick J. Wong <djwong@kernel.org>\n\nCommit 4ccf9e4fe165cf created a \"unixfd\" IO manager that allows someone\nto choose the unixfd IO manager and then mount a filesystem from an\nexisting file descriptor by passing a string with the fd number as the\n\"device\" name to ext2fs_open().\n\nThat was an unfortunate choice of naming, however, because that could\nbe mistaken for a relative path to a file whose name is an integer\nnumber. Let's improve this by allowing callers to pass /dev/fd/XX\nas the filesystem device name. The upcoming fuse4fs service patches\nwill employ this method to open a filesystem on a block device fd passed\ninto the secure container from a mount helper.\n\nCc: <linux-ext4@vger.kernel.org> # v1.43.2\nFixes: 4ccf9e4fe165cf (\"libext2fs: add unixfd_io_manager\")\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n lib/ext2fs/unix_io.c | 30 +++++++++++++++++++++++++++++-\n 1 file changed, 29 insertions(+), 1 deletion(-)", "diff": "diff --git a/lib/ext2fs/unix_io.c b/lib/ext2fs/unix_io.c\nindex 79bc9219f9515b..a9b1fac62a0250 100644\n--- a/lib/ext2fs/unix_io.c\n+++ b/lib/ext2fs/unix_io.c\n@@ -67,6 +67,7 @@\n #ifdef HAVE_SYS_FILE_H\n #include <sys/file.h>\n #endif\n+#include <limits.h>\n \n #if defined(__linux__) && defined(_IO) && !defined(BLKROGET)\n #define BLKROGET _IO(0x12, 94) /* Get read-only status (0 = read_write). */\n@@ -1148,13 +1149,40 @@ static errcode_t unix_open_channel(const char *name, int fd,\n \treturn retval;\n }\n \n+#define DEV_FD_PATH\t\"/dev/fd/\"\n+#define DEV_FD_PATHLEN\t(sizeof(DEV_FD_PATH) - 1)\n+\n+static int possible_unixfd_pathname(const char *path)\n+{\n+\treturn strncmp(DEV_FD_PATH, path, DEV_FD_PATHLEN) == 0;\n+}\n+\n static errcode_t unixfd_open(const char *str_fd, int flags,\n \t\t\t io_channel *channel)\n {\n \tint fd;\n \tint fd_flags;\n \n-\tfd = atoi(str_fd);\n+\t/*\n+\t * The caller should provide a path in the form \"/dev/fd/XX\",\n+\t * but the shorthand form \"XX\" is allowed for legacy reasons.\n+\t */\n+\tif (possible_unixfd_pathname(str_fd)) {\n+\t\tchar *endptr;\n+\t\tlong maybe_fd;\n+\n+\t\terrno = 0;\n+\t\tmaybe_fd = strtol(str_fd + DEV_FD_PATHLEN, &endptr, 10);\n+\t\tif (errno)\n+\t\t\treturn errno;\n+\t\tif (*endptr != 0)\n+\t\t\treturn EINVAL;\n+\t\tif (maybe_fd < 0 || maybe_fd > INT_MAX)\n+\t\t\treturn EINVAL;\n+\t\tfd = maybe_fd;\n+\t} else {\n+\t\tfd = atoi(str_fd);\n+\t}\n #if defined(HAVE_FCNTL)\n \tfd_flags = fcntl(fd, F_GETFL);\n \tif (fd_flags == -1)\n", "prefixes": [ "03/10" ] }