Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp6123065rwb; Wed, 18 Jan 2023 01:10:58 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+ygTsN9/1ZyHn3bWfPYTdrIWEVTLBfvPeM4A46mmjAp4bUu2EBBODNFsJ78Er3q8Taaey X-Received: by 2002:a05:6402:1107:b0:493:a6eb:874e with SMTP id u7-20020a056402110700b00493a6eb874emr6576160edv.5.1674033058618; Wed, 18 Jan 2023 01:10:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674033058; cv=none; d=google.com; s=arc-20160816; b=pkAN+0K5k8Nzg1CpsHDUQx2wLdi3xRqx0jq+HdMxpi0e+YbVWwVyD9tPXNNFg87ayP UldxbVrwvRrB+nxxHjenGx32Kt6si8LD9356LCrIgvSKvn6ob52eoRa7Wq2e2DMbelzK s+0oB5BUqd6XYD3IgFPpcYgcIhDnLmQa5gCPv3Q0vI1RnLMcZTF6MjwagCixX9AbLvyP 1cD91X2Ng/lr9vhf9VvjdH66MAfKuF/y7KHG8/fWmLk879BXyRgfOyVtiRwiw7YXuXyY nZ9Sw0sh1LH149wx9xDAGPpYaa1Fa/zARiGQk+Ym8NK6Dgug6JRRMM8df5f8p70SYsp4 m/KQ== 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=kT9JLnHNM2TkFpmwX74T8K9Vx7Co8BPCp+r3Yxy2zqY=; b=x94t00xSdNVAxk/++zNyrUxTWI+N9CFL/TDjkT5NirnHkxjSHv0KvB71u1ku2lnXzI jzGl0vdIrlw2bxpY9uhKQrpJBNJvwXjqKQbn5Mga9P5fl5UZGd675BZDPsR5ASKDaDMH vw5SFmKGlM2/bJjRB/dsuSR/k0adonderF6OiDwqNgN7VvgVqOXl7TKfY89DPumkTkyx QNVKckgSh9aPIS+/l51uRgAhtCtBieaDYGXB/sRYOFb3sCNQYXXXp1O77t4Pt8QsMJkR p7tsoo52VbnFFxjQ97loP1xsvsqYQcFsSlzU3Gm/jLUuPxGh8qHvY2AOsAG2z/uJCfR8 BC8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gBE1GvKy; 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 p27-20020a056402501b00b004998c5650ebsi6512429eda.548.2023.01.18.01.10.43; Wed, 18 Jan 2023 01:10:58 -0800 (PST) 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=gBE1GvKy; 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 S229777AbjARHtt (ORCPT + 46 others); Wed, 18 Jan 2023 02:49:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbjARHsI (ORCPT ); Wed, 18 Jan 2023 02:48:08 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D82F45F46; Tue, 17 Jan 2023 23:17:19 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id EDA42B81B3E; Wed, 18 Jan 2023 07:17:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBB21C433EF; Wed, 18 Jan 2023 07:17:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674026236; bh=TPFbez4kRFQWTS4pIsn2TRE2Yeh3bO7Q6hZYSQ1W6pw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gBE1GvKyWgekNTYsa39JH90glVPf/zresTYnQ0oYxuizvsX6fM5mfbTi+0R6Ij98l YyaDFKnsM6lTyQmL6e2hpKrsC5rvStWq4oOvBnVVT0o/wKzFhIVItTIkr2TYxKT23l 7rqy5WkpcyR27VdIF1yTxHowykDskkvhjoUUG53ZfOQR2moXA8Jxhb1pFtb7BfhQWW P0tpyi+0OtQuTEKt00PruI9rK9RKu8zppqgEd/TVL/h3TTTQsh2MB7hpZmsviYbo8P vLSJorCADin7THDqDQl/r4t7iaa9cPH75VNP1IT+BlbB2MeyX2Jv7uPewvM9XoZFkR ObUnV48z0C9Bg== Date: Tue, 17 Jan 2023 23:17:14 -0800 From: Eric Biggers To: Chaitanya Kulkarni Cc: Jason Gunthorpe , Bryan Tan , Christoph Hellwig , Eric Dumazet , Israel Rukshin , Jakub Kicinski , Jens Axboe , Keith Busch , "linux-kernel@vger.kernel.org" , "linux-nvme@lists.infradead.org" , "linux-rdma@vger.kernel.org" , "linux-trace-kernel@vger.kernel.org" , Masami Hiramatsu , Max Gurtovoy , "netdev@vger.kernel.org" , Paolo Abeni , Saeed Mahameed , Sagi Grimberg , Selvin Xavier , Steven Rostedt , Vishnu Dasa , Yishai Hadas , Leon Romanovsky Subject: Re: [PATCH rdma-next 00/13] Add RDMA inline crypto support Message-ID: References: <95692a47-09e7-0055-2006-46d085b2eadb@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <95692a47-09e7-0055-2006-46d085b2eadb@nvidia.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 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 Wed, Jan 18, 2023 at 07:14:30AM +0000, Chaitanya Kulkarni wrote: > Eric, > > >> Notes: > >> - At plaintext mode only, the user set a master key and the fscrypt > >> driver derived from it the DEK and the key identifier. > >> - 152c41b2ea39fa3d90ea06448456e7fb is the derived key identifier > >> - Only on the first IO, nvme-rdma gets a callback to load the derived DEK. > >> > >> There is no special configuration to support crypto at nvme modules. > >> > >> Thanks > > > > Very interesting work! Can you Cc me on future versions? > > > > I'm glad to see that this hardware allows all 16 IV bytes to be specified. > > > > Does it also handle programming and evicting keys efficiently? > > > > Also, just checking: have you tested that the ciphertext that this inline > > encryption hardware produces is correct? That's always super important to test. > > There are xfstests that test for it, e.g. generic/582. Another way to test it > > is to just manually test whether encrypted files that were created when the > > filesystem was mounted with '-o inlinecrypt' show the same contents when the > > filesystem is *not* mounted with '-o inlinecrypt' (or vice versa). > > > > - Eric > > > > I'm wondering which are the xfstests that needs to run in order > to establish the correctness/stability apart from generic/582 > this work ? > See https://docs.kernel.org/filesystems/fscrypt.html#tests. - Eric