Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2229419/?format=api
{ "id": 2229419, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2229419/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260428083332.768693-4-aalbersh@kernel.org/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260428083332.768693-4-aalbersh@kernel.org>", "date": "2026-04-28T08:33:09", "name": "[v9,03/22] ovl: use core fsverity ensure info interface", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "241a16cf70898484e53b02e7699aff6b4ea9f5f0", "submitter": { "id": 92821, "url": "http://patchwork.ozlabs.org/api/1.1/people/92821/?format=api", "name": "Andrey Albershteyn", "email": "aalbersh@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20260428083332.768693-4-aalbersh@kernel.org/mbox/", "series": [ { "id": 501796, "url": "http://patchwork.ozlabs.org/api/1.1/series/501796/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=501796", "date": "2026-04-28T08:33:09", "name": "[v9,01/22] fsverity: report validation errors through fserror to fsnotify", "version": 9, "mbox": "http://patchwork.ozlabs.org/series/501796/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2229419/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2229419/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=dFmB=C3=vger.kernel.org=linux-ext4+bounces-16149-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=DH0LlJbg;\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=dfmb=c3=vger.kernel.org=linux-ext4+bounces-16149-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=172.232.135.74 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=DH0LlJbg;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16149-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=\"DH0LlJbg\"", "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 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g4Ylt20shz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:40:09 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g4Ylm1FVGz4wK0\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 18:40:04 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g4Ylm0xgPz4wL8; Tue, 28 Apr 2026 18:40:04 +1000 (AEST)", "from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])\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 4g4Ylh4gxVz4wK0\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 18:40:00 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sto.lore.kernel.org (Postfix) with ESMTP id E79EC3074496\n\tfor <patchwork-incoming@ozlabs.org>; Tue, 28 Apr 2026 08:34:18 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id AE5B23D648C;\n\tTue, 28 Apr 2026 08:34:04 +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 6CC612D0614;\n\tTue, 28 Apr 2026 08:34:04 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 550B8C2BCB5;\n\tTue, 28 Apr 2026 08:34:01 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777365604; cv=pass;\n\tb=RRCWfKFJA2SsEzGSNqD48vdyAGAzlt2/EwjbmTORtHkv4ewb06I+nNdFSEhorvdQ/OzEcJm5YukrDa8P/1PGaweg+jp4qOkB41ZgCUn4GvprVN1631rf+KYsWnWSkjNmWHGUzPc1o2erj3rxspc6ptSIS5hUJaW8QTiCq/vCXfHRVBsFjuvceDe+qXaUG+OyR5hsXEwbnq3lCObMY8R8dlYqEiZt7mNlZeq/CrpYve4XshtWbBNYE6Z4j8cNY2uwqFWjqO0RWK2FoLT8upGK+ZlfxPIYds5R7WYWCUnCFAdrrk1D/jf6yKEfzYlfndmu5A2J6poRspdZrPSEfse8ZQ==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777365244; cv=none;\n b=RgJTG4lPsn9bXEFOUNYebOsiFwOy10P5SowYa9mDrC5VoSZPmVsxMZUf/K3czOuNipt2u0s0cQ3JOG6J7+dWAlpZbPz3XO/1DxQYxgYMxGr6jRqTsbwD0O65SqjHMbCYTi+1TAEIe1ZDxw5QWtwP+uVZfVrCZJ7LnqbCoeR69iQ=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777365604; c=relaxed/relaxed;\n\tbh=gLN6w7Js5RLu5drJwAcDxLuRy7aLXqdarmwXm2uOIRk=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=J8s+p0yWvEnlsntkCO5qm+fuo5AVk4MtXDglcmFDIRfBJaJRrdwsJM2hZSR76sG70basSj2T6IE3A2+7ZsfrPR3A4TPWEqUJyO5GgkLvkDFY3tIpNrOax69LkJnGyr4a3TRAmTwgSvdZwgBHCTya1h6LVA9XqSoiVbpoT4vUGbUa/kyTK4Rq3v6rBF+dXevFz91Sz5ueSRD6Uz/7YPKoeUkTFWBDmUywgMs1bT4SPtlpm6x1bdIXzIu5t73fB9qbOZOnLe4I+NH7z9xbvT6IX67ePW/1fIbVR5Q2bDu6Zvm8ufSE52J6YOv4f6s9kUg/uLW/W79EYiw6b7Uv4O9Q9w==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777365244; c=relaxed/simple;\n\tbh=079Sd9B0THqZauyTaA39ffFEl5GJG+gEUoXDQzKrZpo=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=YN39U54CG+OfyfF+uL/PfAmhprQN+26iiUxZwIOzT0uw/ScJO7eGBUOb7w0yz5dQVQHnT3ipprJFw3Yrg/z33p9y20Gmdgc5lks3C9PFd/kyCUKj56Y82KU2sCV6zBld0DxzCy+DZQBL/c5xZH2Yst9my5PpGXzb8QnAwPwvimQ=" ], "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=DH0LlJbg; dkim-atps=neutral;\n spf=pass (client-ip=172.232.135.74; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16149-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=DH0LlJbg; 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=1777365244;\n\tbh=079Sd9B0THqZauyTaA39ffFEl5GJG+gEUoXDQzKrZpo=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=DH0LlJbglvlNFHEpiAiX4MDWUMzoJqoSIfpxZ/W52r+Rx+4kfCDouWrHsbWCC2lIg\n\t SdFbfgGezV7eN0vGp14jxshCv6OFDR5rklii1/aH5t4NNk4yp0rT9XJqPRf4liUwuy\n\t 25Ou05DBsp+s35wTA8J4GAa0E/wRTICGDKTT3PwfkLIFJIlWwQHEGora2D6kZeEZHd\n\t FrC/GMGOiHFUJHF/l+6cNYLVjNIRW5BvlFdjZCWQF/gnbzeUgWRqOME/HNrQS+pfeH\n\t t+CIcf+kcsTcZWxJ0IbJbamRToK77Jb6BT9sgpxh+DMFoe9xl/rnWdpqpigtAx2LY1\n\t JkA2DROiZ7SgA==", "From": "Andrey Albershteyn <aalbersh@kernel.org>", "To": "linux-xfs@vger.kernel.org,\n\tfsverity@lists.linux.dev,\n\tlinux-fsdevel@vger.kernel.org,\n\tebiggers@kernel.org", "Cc": "Andrey Albershteyn <aalbersh@kernel.org>,\n\thch@lst.de,\n\tlinux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-btrfs@vger.kernel.org,\n\tlinux-unionfs@vger.kernel.org,\n\tdjwong@kernel.org,\n\tAmir Goldstein <amir73il@gmail.com>", "Subject": "[PATCH v9 03/22] ovl: use core fsverity ensure info interface", "Date": "Tue, 28 Apr 2026 10:33:09 +0200", "Message-ID": "<20260428083332.768693-4-aalbersh@kernel.org>", "X-Mailer": "git-send-email 2.51.2", "In-Reply-To": "<20260428083332.768693-1-aalbersh@kernel.org>", "References": "<20260428083332.768693-1-aalbersh@kernel.org>", "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-Transfer-Encoding": "8bit", "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": "fsverity now exposes fsverity_ensure_verity_info() which could be used\ninstead of opening file to ensure that fsverity info is loaded and\nattached to inode.\n\nSigned-off-by: Andrey Albershteyn <aalbersh@kernel.org>\nAcked-by: Amir Goldstein <amir73il@gmail.com>\n---\n fs/overlayfs/util.c | 14 +++-----------\n 1 file changed, 3 insertions(+), 11 deletions(-)", "diff": "diff --git a/fs/overlayfs/util.c b/fs/overlayfs/util.c\nindex 2ea769f311c3..dd2e81022e4f 100644\n--- a/fs/overlayfs/util.c\n+++ b/fs/overlayfs/util.c\n@@ -16,6 +16,7 @@\n #include <linux/namei.h>\n #include <linux/ratelimit.h>\n #include <linux/overflow.h>\n+#include <linux/fsverity.h>\n #include \"overlayfs.h\"\n \n /* Get write access to upper mnt - may fail if upper sb was remounted ro */\n@@ -1377,18 +1378,9 @@ char *ovl_get_redirect_xattr(struct ovl_fs *ofs, const struct path *path, int pa\n int ovl_ensure_verity_loaded(const struct path *datapath)\n {\n \tstruct inode *inode = d_inode(datapath->dentry);\n-\tstruct file *filp;\n \n-\tif (!fsverity_active(inode) && IS_VERITY(inode)) {\n-\t\t/*\n-\t\t * If this inode was not yet opened, the verity info hasn't been\n-\t\t * loaded yet, so we need to do that here to force it into memory.\n-\t\t */\n-\t\tfilp = kernel_file_open(datapath, O_RDONLY, current_cred());\n-\t\tif (IS_ERR(filp))\n-\t\t\treturn PTR_ERR(filp);\n-\t\tfput(filp);\n-\t}\n+\tif (fsverity_active(inode))\n+\t\treturn fsverity_ensure_verity_info(inode);\n \n \treturn 0;\n }\n", "prefixes": [ "v9", "03/22" ] }