From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 87B823EF0AB; Mon, 9 Mar 2026 19:24:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773084262; cv=none; b=SyhSe2OBrkGOWIdyH/FAEmoU08JHvv0S42MOdDYSaT/ItZhteEMYA4/QTxCBvN32JFF79ecj7e05e+TI74kaRdPXUoh7P7fguvFrPmb0f+b54uRdxvAK6AR++yyUNZEG2iXqixlOnv7fNrO/99f3FUMInEyXEDRWajtdnNgoA14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773084262; c=relaxed/simple; bh=M2taI9xKx9InHswY76UfTZw5e95o47rk27RlgquvrNY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=GsYjpbahJ2YDlh1778mAYDcWHba9fIThQ+nb+ak4vKA3VsxXba6wxM6BGy0BB8nvxUvBTYBCAkEIyCI6Xk0btobRdxFvJb/DnvIzMs1xIv7XjzKxItWMYs2+r/v5AEhF8JuKT2/Bu0pUFo5I92wRP479/nix9Ex+LDXbv3C7yhk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tRRcmxic; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tRRcmxic" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85AE9C2BCB4; Mon, 9 Mar 2026 19:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773084262; bh=M2taI9xKx9InHswY76UfTZw5e95o47rk27RlgquvrNY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tRRcmxictnFJy7Kp+as1IWBkvQkjyZpKI/zedpr+/jKMT/kdkdcpFD1hs5FE1wxiv nACJXw1tIeUKPX8iHyyvB0AzDO/ThTq6HS2VYTepCJ4xz54OGAMwhOe8xr1ItKb/+v MmAKnw/S9t2LcGnqos4dT7BeRt+vEpK1EudDAS3/hUVVDq0ecXxarswFa7B0Phc0R3 U86FYaTO27QAAJsX3jpFt3nVMowH1bWLTJFme96aN3i6/UxMRA+OuhGqEmpVNcSrhH DG5ipiiyceKF2D0hVju/ySQM7MFGMQmirA72JA5JVFctaYeUCabe/33NmL+yGCNsRT eV7v22shO3kZQ== From: Andrey Albershteyn To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Cc: Andrey Albershteyn , hch@lst.de, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-btrfs@vger.kernel.org, djwong@kernel.org Subject: [PATCH v4 01/25] fsverity: report validation errors through fserror to fsnotify Date: Mon, 9 Mar 2026 20:23:16 +0100 Message-ID: <20260309192355.176980-2-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260309192355.176980-1-aalbersh@kernel.org> References: <20260309192355.176980-1-aalbersh@kernel.org> Precedence: bulk X-Mailing-List: fsverity@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Reported verification errors to fsnotify through recently added fserror interface. Signed-off-by: Andrey Albershteyn --- fs/verity/verify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/verity/verify.c b/fs/verity/verify.c index 4004a1d42875..99276053d3bb 100644 --- a/fs/verity/verify.c +++ b/fs/verity/verify.c @@ -9,6 +9,7 @@ #include #include +#include #define FS_VERITY_MAX_PENDING_BLOCKS 2 @@ -312,6 +313,7 @@ static bool verify_data_block(struct fsverity_info *vi, data_pos, level - 1, params->hash_alg->name, hsize, want_hash, params->hash_alg->name, hsize, level == 0 ? dblock->real_hash : real_hash); + fserror_report_data_lost(inode, data_pos, params->block_size, GFP_NOFS); error: for (; level > 0; level--) { kunmap_local(hblocks[level - 1].addr); -- 2.51.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD3C1FCA178 for ; Mon, 9 Mar 2026 19:24:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.sourceforge.net; s=beta; h=Content-Transfer-Encoding:Content-Type:Cc: Reply-To:From:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Subject:MIME-Version:References:In-Reply-To: Message-ID:Date:To:Sender:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=OA0K49YYr9izI55Wx6CoYDeEVpXSJoUe61s0wAh7T1w=; b=i3ulURB/2zh3T1bIQv4UxWxEV1 SRMeyKFahqmgANG4WgfivS53NuHupKL8y6cyeIKBsuryDJC/XpAjoHsaxbVwdDK3oEDc5FL58UO41 iokoHtiJn6Fn/zeN4WxiE/qrUXbhDFGdRbwapStHCB8jtMLrWg+LWgqCEXGoUCEx/CTc=; Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1vzgDN-0001W8-Am; Mon, 09 Mar 2026 19:24:29 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1vzgDL-0001W2-T8 for linux-f2fs-devel@lists.sourceforge.net; Mon, 09 Mar 2026 19:24:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=TGkOL7p3Zq/dov5mCHzU+8GComYLfQKzsyZQX60I8U4=; b=c/hL9IrVwVU2jNeSPLnpEQH+5i aDBW4FnzDu5WqoifYWuXH12JBrgDQpXUa0mRXyQkPn3drvdOllhi6b/yWDLTq/tRHG15dJTIYvh7l Ia3tq9hyZ4Qn1w0eIDALc3sbOFfCcnP7zlHACRUhUb0KlYRFzTo0lxJPhUlczuHIuV4Y=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-ID: Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TGkOL7p3Zq/dov5mCHzU+8GComYLfQKzsyZQX60I8U4=; b=XNvJ29XmMfEwo8ohvphReLa4Ov YpzE9iCG1CXEkmRszV7h0mwonarZ4GCJ6CT/KHucUuXoK74I3ndmMcw3n08vadJUMn0ck6K6jOhNB Lf1NcAmpA38oeQY/hsgZ55/mGq9HuYJnvZP6/ZJ4P9OnGy50LE9xlSJY+OzrJratQT4k=; Received: from sea.source.kernel.org ([172.234.252.31]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1vzgDL-0001E5-Ib for linux-f2fs-devel@lists.sourceforge.net; Mon, 09 Mar 2026 19:24:27 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 286834453A; Mon, 9 Mar 2026 19:24:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85AE9C2BCB4; Mon, 9 Mar 2026 19:24:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773084262; bh=M2taI9xKx9InHswY76UfTZw5e95o47rk27RlgquvrNY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tRRcmxictnFJy7Kp+as1IWBkvQkjyZpKI/zedpr+/jKMT/kdkdcpFD1hs5FE1wxiv nACJXw1tIeUKPX8iHyyvB0AzDO/ThTq6HS2VYTepCJ4xz54OGAMwhOe8xr1ItKb/+v MmAKnw/S9t2LcGnqos4dT7BeRt+vEpK1EudDAS3/hUVVDq0ecXxarswFa7B0Phc0R3 U86FYaTO27QAAJsX3jpFt3nVMowH1bWLTJFme96aN3i6/UxMRA+OuhGqEmpVNcSrhH DG5ipiiyceKF2D0hVju/ySQM7MFGMQmirA72JA5JVFctaYeUCabe/33NmL+yGCNsRT eV7v22shO3kZQ== To: linux-xfs@vger.kernel.org, fsverity@lists.linux.dev, linux-fsdevel@vger.kernel.org, ebiggers@kernel.org Date: Mon, 9 Mar 2026 20:23:16 +0100 Message-ID: <20260309192355.176980-2-aalbersh@kernel.org> X-Mailer: git-send-email 2.51.2 In-Reply-To: <20260309192355.176980-1-aalbersh@kernel.org> References: <20260309192355.176980-1-aalbersh@kernel.org> MIME-Version: 1.0 X-Headers-End: 1vzgDL-0001E5-Ib Subject: [f2fs-dev] [PATCH v4 01/25] fsverity: report validation errors through fserror to fsnotify X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Andrey Albershteyn via Linux-f2fs-devel Reply-To: Andrey Albershteyn Cc: Andrey Albershteyn , djwong@kernel.org, linux-f2fs-devel@lists.sourceforge.net, linux-ext4@vger.kernel.org, hch@lst.de, linux-btrfs@vger.kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Reported verification errors to fsnotify through recently added fserror interface. Signed-off-by: Andrey Albershteyn --- fs/verity/verify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/verity/verify.c b/fs/verity/verify.c index 4004a1d42875..99276053d3bb 100644 --- a/fs/verity/verify.c +++ b/fs/verity/verify.c @@ -9,6 +9,7 @@ #include #include +#include #define FS_VERITY_MAX_PENDING_BLOCKS 2 @@ -312,6 +313,7 @@ static bool verify_data_block(struct fsverity_info *vi, data_pos, level - 1, params->hash_alg->name, hsize, want_hash, params->hash_alg->name, hsize, level == 0 ? dblock->real_hash : real_hash); + fserror_report_data_lost(inode, data_pos, params->block_size, GFP_NOFS); error: for (; level > 0; level--) { kunmap_local(hblocks[level - 1].addr); -- 2.51.2 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel