Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp243643rwb; Tue, 15 Nov 2022 23:06:21 -0800 (PST) X-Google-Smtp-Source: AA0mqf5RmsSWkgQJ36r0j+vu3MrH4Z1lDr+Iew6WKvDx6dX3yeNtbALh1SIZ34zWRGl/KL6FA9Wq X-Received: by 2002:a17:907:206e:b0:78d:3c82:a875 with SMTP id qp14-20020a170907206e00b0078d3c82a875mr17187483ejb.465.1668582381376; Tue, 15 Nov 2022 23:06:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668582381; cv=none; d=google.com; s=arc-20160816; b=lYgLimjIssRHFlS04dMycl5OWKf3qGdcrMKQEKTk41aHx8ICeeoIdCbVbAksynJmOm 0SRly0h+5H0mRLEX9WnwD7ljBRoIr9R71dlbC/s23rBe6Hd3P0xgen/zlikYzklXXXPO sFwL33K1VQf2/jmLZOP0dD6woCWiI2i7BqKLz04YUOPHGahR7Ri4u5t2YuTEj6vGqdwV jgmBZK8WAQLzOy+iVxYV6dqbmKui1tEfsOl+VZ8dOMJAWiAXntOM56WlkMnOFRXR5FXe 4+sXqS7K40rQCkhlBfTXigzFSD9h8JS8yZHOmsjlJB6rGK9E6odLsogIjWx2LBhmRTz1 HPCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=6OIcgGNpadwxLbIdYcGcd+Dz1Vbz9BtruCXW1wedl5c=; b=EAPlP0pI6JleSZbkwvc+nQ5MHCjUzO5mI5k50Ffs+WXk4AKPaptmGUJGlq5smKf2bH d8nu9R5P8L/omikF0h0QzmmKyEbC13cUzG70q+d3WVIUj45s+rTVIGKruqqs0cJIESDT x6czLFY6z/ihD6iafamLiS6Hxp6hY7ILbiDvj/rxHs8cqx6w550vQBEpBghrajlzvdqA edqqBLVCkFw5Ep1uy6LqOTPyJME2THVpeO/3cVQIOXuEGD6cr3dI77MMazNiY9YUVjTu WH2cngjvThlJZcjzAy6pC5s3o19FmXYZGzkVbldmTnbeNNcoj24DFCuDqFMDqjQB8RxB 2Lag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hF5rEcV0; 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=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id sh13-20020a1709076e8d00b007aeec2bf18esi8798469ejc.529.2022.11.15.23.05.59; Tue, 15 Nov 2022 23:06:21 -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=@redhat.com header.s=mimecast20190719 header.b=hF5rEcV0; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232075AbiKPHB1 (ORCPT + 90 others); Wed, 16 Nov 2022 02:01:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231547AbiKPHBX (ORCPT ); Wed, 16 Nov 2022 02:01:23 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C7CD1409A for ; Tue, 15 Nov 2022 23:00:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668582028; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=6OIcgGNpadwxLbIdYcGcd+Dz1Vbz9BtruCXW1wedl5c=; b=hF5rEcV0nM4/8Nryd+Bx7xR7mX1bzZ2zUPwDz4zY+rg3LUt2d1pSrAwHMcIqg5tkYZVBzM oE+ZFPe1eTghsAlaVT/8cyU6lJ0NaYn5gR8qh2Gyj2Un1QwoKa2ITio0jaCmQkrtphDutD zN7op86NbirKgeoTtEgPjPaP9hxeoFU= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-300-zRSdwYDdOdWwS3fYJIStDw-1; Wed, 16 Nov 2022 02:00:24 -0500 X-MC-Unique: zRSdwYDdOdWwS3fYJIStDw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 5C798805AC8; Wed, 16 Nov 2022 07:00:24 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.33.36.24]) by smtp.corp.redhat.com (Postfix) with ESMTP id DFEF5C1908B; Wed, 16 Nov 2022 07:00:22 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <3609b064-175c-fc18-cd1a-e177d0349c58@samba.org> References: <3609b064-175c-fc18-cd1a-e177d0349c58@samba.org> <166855224228.1998592.2212551359609792175.stgit@warthog.procyon.org.uk> To: Stefan Metzmacher Cc: dhowells@redhat.com, smfrench@gmail.com, tom@talpey.com, Long Li , Namjae Jeon , linux-cifs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cifs: Fix problem with encrypted RDMA data read MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2147869.1668582019.1@warthog.procyon.org.uk> Date: Wed, 16 Nov 2022 07:00:19 +0000 Message-ID: <2147870.1668582019@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 Stefan Metzmacher wrote: > I'm not sure I understand why this would fix anything when encryption is > enabled. > > Is the payload still be offloaded as plaintext? Otherwise we wouldn't have > use_rdma_mr... So this rather looks like a fix for the non encrypted case. The "inline"[*] PDUs are encrypted, but the direct RDMA data transmission is not. I'm not sure if this is a bug in ksmbd. As I understand it, encrypting and decrypting the directly transferred data would need to be done by the NIC, not the cifs driver. David [*] I don't know the correct RDMA terminology for these things.