Received: by 2002:ac8:3b51:0:b0:3f3:9eb6:4eb6 with SMTP id r17csp2758103qtf; Mon, 12 Jun 2023 09:30:14 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5le6bbnlkFPcYA3c7InY30ixZkF63aJ81Nk1yiQpr1Itp1rlqloh+jjSXjykkqSnKhB1j0 X-Received: by 2002:a17:902:ec88:b0:1af:9c18:a160 with SMTP id x8-20020a170902ec8800b001af9c18a160mr7380313plg.17.1686587414508; Mon, 12 Jun 2023 09:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686587414; cv=none; d=google.com; s=arc-20160816; b=rMTHeD3WME6R4IU6uA2X7/vTJa1wRkRwf7D5WGFYf+8MuIhWiziCnN8UzmmwuKs0a1 KJASoJcoEBCrgjMJHR53ZNl+CbCkVRIwWdyvaWIjHURXGYRXRr4fhvVO01tOTLsm/6Q8 QndujNvEQRr68pTjN424GFUGnOuCo1+b2xXkO4Ce7PJUWqj0qCfHmnorsI5I2rylFUKt 3NAIUDOC801ea//wMpg+tbUKShWjSz8W9XTpheMGqtPhdI/5JeZwICOFiomp9USsZKRz GPTDxlfSxJbmetYaryWHu+YDlNd+GDQDTHB0bBq7TwDMEcLv2PUzVWqkL7WbbguAWrtO MXMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lZpnYRT4vP+lT109rXmB07GNE3mexUI6oroneDPjagA=; b=UN50mh7PE9RkcVv6abf6KjyQxiYH+9lgkLUAK+8x2baKQoJs9Lo8jQABD3Me+YClcG T9iTkdf//ktKgM1IxsKsFT8hmNyWYRIYMwhbXBQh7Bd/2vShazBG4cgn+rzUJSBK81q7 A1kvEzMbQDVD43wM7tMDKmKb6TgFqnpIvt6GFTXNx3vhU5dg5NySwsbd+N3ZS8UPDWYA V8A5yzP4i6HzrsAhbBxw0PCv0Aw3NDthQEKPEg9CLn2zahMDcM7eal1XfG7zEFo6XPmM ha6D8yC3XCAKdi0ovtcxSk35a20yfoyVAJMRlbq+00MbeyPc9kvpVcX0u9MV6TFd5yrW V9RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=isGY9Orh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u3-20020a17090341c300b001b04bc1f28csi7406215ple.517.2023.06.12.09.29.54; Mon, 12 Jun 2023 09:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=isGY9Orh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234786AbjFLQTZ (ORCPT + 99 others); Mon, 12 Jun 2023 12:19:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234900AbjFLQTV (ORCPT ); Mon, 12 Jun 2023 12:19:21 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9B8410FC; Mon, 12 Jun 2023 09:19:14 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0D57962B6C; Mon, 12 Jun 2023 16:19:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9B28C433D2; Mon, 12 Jun 2023 16:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686586753; bh=1Pg6K/mRbNwSUBb2+JQVUVkftOwerQBSw3ZHxkdQIwk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=isGY9OrhG/Kov6/wT9QytolJi0sZtDOYrW3YCL0j0GnYT5fj4DgrV+393PwgenCKy FxH6NkbKUif7VYLtcyvUNtzds02/tcJHgy2hIP/YYP30urvlCCiLKQSYGQUt3qWTae FGmYgPH4xjt6jtpNNil/OHqtDuiEiz4+a0foVdOkCYMpqIYvYPCJaDoNUwgfsj3Zcr xaJMTqdmijzLSNIsi6wZaS5VrCqWykUAPhQiuabzbWX9mt95xgmqH4Mgl4xOxizX8Q VxmlviBblrOVbJhAGgCdQOJgst55jkzRK9iyahdBDAFFcpidkHXIWOn5VJpxLwBe5N jnfOJfTlNXwyA== Date: Mon, 12 Jun 2023 09:19:11 -0700 From: Eric Biggers To: Sergei Shtepa Cc: axboe@kernel.dk, hch@infradead.org, corbet@lwn.net, snitzer@kernel.org, viro@zeniv.linux.org.uk, brauner@kernel.org, dchinner@redhat.com, willy@infradead.org, dlemoal@kernel.org, linux@weissschuh.net, jack@suse.cz, ming.lei@redhat.com, linux-block@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v5 00/11] blksnap - block devices snapshots module Message-ID: <20230612161911.GA1200@sol.localdomain> References: <20230612135228.10702-1-sergei.shtepa@veeam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612135228.10702-1-sergei.shtepa@veeam.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 12, 2023 at 03:52:17PM +0200, Sergei Shtepa wrote: > Hi all. > > I am happy to offer a improved version of the Block Devices Snapshots > Module. It allows to create non-persistent snapshots of any block devices. > The main purpose of such snapshots is to provide backups of block devices. > See more in Documentation/block/blksnap.rst. How does blksnap interact with blk-crypto? I.e., what happens if a bio with a ->bi_crypt_context set is submitted to a block device that has blksnap active? If you are unfamiliar with blk-crypto, please read Documentation/block/inline-encryption.rst It looks like blksnap hooks into the block layer directly, via the new "blkfilter" mechanism. I'm concerned that it might ignore ->bi_crypt_context and write data to the disk in plaintext, when it is supposed to be encrypted. - Eric