Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp788003rwd; Mon, 12 Jun 2023 23:46:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4RiKPmz4p44MNTo74n3+iOLxxs/lEj9iMN8KwTn8IbeMF2UxjuJ5l7iZ4mBsAGL17jPZb1 X-Received: by 2002:a05:6359:d14:b0:12b:e83f:fcee with SMTP id gp20-20020a0563590d1400b0012be83ffceemr2277871rwb.12.1686638802777; Mon, 12 Jun 2023 23:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686638802; cv=none; d=google.com; s=arc-20160816; b=FkDDmwIa+ksgpfV0SoP3liKEVMbTUN6H+rCnbqeY7cmHp09zNZX/PKErLCL3tuoRFe ulxxrTNF+hG5mh+a1IgcPeB64mAIvFeEG+J6t6MqwfzYjjRfdmEQ6Xpm2UL/MHnO+T7j rhrmW+kkzzEtCPwmNdcwmIYMJSDTCZ+XBQUJkC+BMmb5YUbODFuPLA2zaMhQdkFnB5j5 BdsjOXh00mjNphjkW+d9TIyNbORlwS6ETjIc37cF0G9vUvF+Xz+Bc4fcEsAuhpq7bhdY Z7AKqFemYkiHzaEjkjywExxXV+UYCCe4NqkCI7ZyNQKc/9kqY12cCDMg6KSajxfCGmzx Q53w== 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=pv13t75OeaLi0Wnedj8EISboR7Hj3/TyA2pQxdDC4e8=; b=iOfn3gC4SO9WM6yd6FjmvpfkgfhD7nqaNXAt/1NpJ+wXGqwsuXzrviupUSJxE+jiRf 4JRHmeBmVIbdfwXK3kAO/CgoR10/4QqpXvWLBitZst4txOkzSdPuHX3G7Qz1eUMejVgl Ry3JOfiDlmoD43U7QCTBJFMk9QuWbKGdCMuCdoYrFNpRGvzhAdRTsBQa1GHQpv7EEdkl s1MnO2R+T+DjcL6O06IFRVFs2/dR7mZNNH1CNbWSu/yC95dHhCpYuT9JKdmb9MRJLYbl OfGZYX4zrAwzUFpqgfSc5pQPexKov5VAtcODvlMZnEXt0MdGJvQqgKQH1ptHzLemQVyr /ShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=hXcSNk2K; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j68-20020a636e47000000b005443c85156bsi4405633pgc.222.2023.06.12.23.46.31; Mon, 12 Jun 2023 23:46:42 -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=@infradead.org header.s=bombadil.20210309 header.b=hXcSNk2K; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234044AbjFMFub (ORCPT + 99 others); Tue, 13 Jun 2023 01:50:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240095AbjFMFu1 (ORCPT ); Tue, 13 Jun 2023 01:50:27 -0400 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18C5693; Mon, 12 Jun 2023 22:50:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=pv13t75OeaLi0Wnedj8EISboR7Hj3/TyA2pQxdDC4e8=; b=hXcSNk2KPdcQyfjrbkKlXoE5A8 zHE+DOIDMV94Qeo3me/ZgOieikMcg1ilrc+v5wbdLQ9JogD4Tp+qS4GVyG7b8qYngNk7BsRW5aLFb tF6rnwSpJ51d2rtfmaVN4nxRoZavhXjKNyyEMaMSFDaeFxlomjvwlAmZFXmPUtZaaAAorhnJBIm+H vblo1Smiv8csEcFKVVkhbdxBms8UhjBa35xnir36Rqty6Zt38WM/zYPriU2n5rYkNd6gXeWDW+X9R tGgf9hgo8YIeMREAWS7aGdCIMOh/tnWsg+y63di0f0e7kAWjMdnQ7L24EHgCMLczmFIF9jQXwmDb2 fN0lqz+Q==; Received: from hch by bombadil.infradead.org with local (Exim 4.96 #2 (Red Hat Linux)) id 1q8wuy-0070IZ-2V; Tue, 13 Jun 2023 05:50:12 +0000 Date: Mon, 12 Jun 2023 22:50:12 -0700 From: Christoph Hellwig To: Eric Biggers Cc: Sergei Shtepa , 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: References: <20230612135228.10702-1-sergei.shtepa@veeam.com> <20230612161911.GA1200@sol.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230612161911.GA1200@sol.localdomain> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 09:19:11AM -0700, Eric Biggers wrote: > 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. Yeah. Same for integrity. I guess for now the best would be to not allow attaching a filter to block devices that have encryption or integrity enabled and then look into that as a separate project fully reviewed by the respective experts.