{"id":2221430,"url":"http://patchwork.ozlabs.org/api/1.2/patches/2221430/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260409131404.1545834-4-aalbersh@kernel.org/","project":{"id":8,"url":"http://patchwork.ozlabs.org/api/1.2/projects/8/?format=json","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":"<20260409131404.1545834-4-aalbersh@kernel.org>","list_archive_url":null,"date":"2026-04-09T13:13:35","name":"[v7,03/22] ovl: use core fsverity ensure info interface","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"e903969284219b29532b6cabed38395ff0aef294","submitter":{"id":92821,"url":"http://patchwork.ozlabs.org/api/1.2/people/92821/?format=json","name":"Andrey Albershteyn","email":"aalbersh@kernel.org"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/linux-ext4/patch/20260409131404.1545834-4-aalbersh@kernel.org/mbox/","series":[{"id":499292,"url":"http://patchwork.ozlabs.org/api/1.2/series/499292/?format=json","web_url":"http://patchwork.ozlabs.org/project/linux-ext4/list/?series=499292","date":"2026-04-09T13:13:34","name":"fs-verity support for XFS with post EOF merkle tree","version":7,"mbox":"http://patchwork.ozlabs.org/series/499292/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2221430/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2221430/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <SRS0=Hlal=CI=vger.kernel.org=linux-ext4+bounces-15700-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=X++ACa7D;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=150.107.74.76; helo=mail.ozlabs.org;\n envelope-from=srs0=hlal=ci=vger.kernel.org=linux-ext4+bounces-15700-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)","gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=\"2600:3c09:e001:a7::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=X++ACa7D;\n\tdkim-atps=neutral","gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15700-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=\"X++ACa7D\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201"],"Received":["from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76])\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 4fs0m215qyz1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:15:14 +1000 (AEST)","from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4fs0m20dnJz4wL4\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 23:15:14 +1000 (AEST)","by gandalf.ozlabs.org (Postfix)\n\tid 4fs0m20Y9Lz4wSp; Thu, 09 Apr 2026 23:15:14 +1000 (AEST)","from sto.lore.kernel.org (sto.lore.kernel.org\n [IPv6:2600:3c09:e001:a7::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 4fs0ly27bxz4wL4\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 09 Apr 2026 23:15:10 +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 BA44F3012856\n\tfor <patchwork-incoming@ozlabs.org>; Thu,  9 Apr 2026 13:14:52 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id DB8EF3D34AB;\n\tThu,  9 Apr 2026 13:14: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 647C63D3490;\n\tThu,  9 Apr 2026 13:14:20 +0000 (UTC)","by smtp.kernel.org (Postfix) with ESMTPSA id A0810C4CEF7;\n\tThu,  9 Apr 2026 13:14:17 +0000 (UTC)"],"ARC-Seal":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1775740514; cv=pass;\n\tb=DEuMh8S+VD5o8ojmGarv8phvfnp4FC+TVuvypO+OlQl4EBZ09UULo0wDVqnGXHHE4ixwxxCQPd1o+Q4W5qqA1F9ZECam0u1JeypSkdusiH60qIIIdHmbbCYFP4a3EXqTjC9W1fma5Pv/72zd8V085jU8VRH+WT6rXcO0wdvyhDk+SEV54iyCRZUQK2tcvf0gUqXpIzSeNb8UbqySVJzn9R95uHidoj2TYbmG6lpUM+vlJRvHmKtF/97l716b7r00Y/LBntboD4gs+d+W2rxZlXiW7XA63Xl9LwHzK279a17WphJwP7Hk/bQxvs1q6+arTsG1PaTkLrr1BxleKb4p/w==","i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775740460; cv=none;\n b=kUTvUf7wNjFN9p65hWhqBsGDeJhDQa91cIorOI11s32uHdF5voCdHSqqNa5zxVeBjzM8yZlboavm88caoNglXWIgzZfMh1SVZV4TJtcI+nvw15l1ZaNEk3yNMABM8ZBqru7lCQJfozHt9S+7n10IzGv1XjaMzREUpMaIZhLAc9M="],"ARC-Message-Signature":["i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1775740514; c=relaxed/relaxed;\n\tbh=2M9ZXhVJR3hOHKb6vLxjZkVz4jG7PCh50ykTScgsxUw=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=jcKSUWYDsTcYYfM6r6cTsNFeTPzpqpRxaguXYbtud2678JumyuclNy9Q4BdO67p6u/0WSnak6yiJMf2rH7sSToFHb7pD85lfuPGVddrmVVxx5aTolNLf9wpPL/pCtiMYBKRb6rySJTg1odhYb/9fI7HRKSW7thOUkSY+cA//m7PkF2DbJ1D2hzx8Vo1/lb+RPYj5Zh5UQKWbU6jWxjtFMYycZNmUoKASnTj4JZfc7DJVeo41c9lzeENsJbZRQZplfdxLRpwUUEAyuq7ChcF3435+EhLrESxV72qgJkbNRTh/ZpLV9hmg9+qnIZ6jbIq0XSYKtY5iYJBDgkIohkCnpw==","i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775740460; c=relaxed/simple;\n\tbh=AbS2Yqdj6XUOqI6/cjToB96OIoO0+yHzdJktpA4Z80Q=;\n\th=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n\t MIME-Version;\n b=Q8Zhu2tvoMJvCtbn5Oo/xE0lK6gALQikyilvYDgXtykt0iAxlQNhzBbHHZ5QfvK2LUcNAkFIKXexsRJip3toBT4ipzuSzIDCEGG4BnLuHHypHOUm+nE0jAi4k36HlSW04T5B12ogBXJLuITjuqeL1eVyPRpdWJv9XTTpih76JdE="],"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=X++ACa7D; dkim-atps=neutral;\n spf=pass (client-ip=2600:3c09:e001:a7::12fc:5321; helo=sto.lore.kernel.org;\n envelope-from=linux-ext4+bounces-15700-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=X++ACa7D; 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=1775740460;\n\tbh=AbS2Yqdj6XUOqI6/cjToB96OIoO0+yHzdJktpA4Z80Q=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=X++ACa7DLl+MgBznlPIGUiklF6Chxrh9ZHMM4gerK3mUvoBHd+CbxfV5DkLtfzux5\n\t KOp7SmaabkjjnQdnMDRS2OEysOZd34tZ8pvFstTX+YAaIC61xJ2EExX5XPBfwuH8As\n\t YmLYuVldzi9E1Nj4SiNbv7K7CfgEyrrfft5eV5WoySY0yHbYgmdK1lRVTYhmphy/03\n\t oO8fb1WGpGapxlB0ulw55D/rukwTDNDvgmhVF00hdZ7N2w/VCfwVJ/rghg0wchXRne\n\t Gg+c3M5e/Qxp76TJVhox2uKf99wuaCXBoL9xqCFqtQoRUNgElMw9/qaqjsr13/bWnX\n\t rA8ICZpvK3gKA==","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\tdjwong@kernel.org","Subject":"[PATCH v7 03/22] ovl: use core fsverity ensure info interface","Date":"Thu,  9 Apr 2026 15:13:35 +0200","Message-ID":"<20260409131404.1545834-4-aalbersh@kernel.org>","X-Mailer":"git-send-email 2.51.2","In-Reply-To":"<20260409131404.1545834-1-aalbersh@kernel.org>","References":"<20260409131404.1545834-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>\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..8bde5dc31d7d 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\tfsverity_ensure_verity_info(inode);\n \n \treturn 0;\n }\n","prefixes":["v7","03/22"]}