Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp648638rwb; Wed, 16 Nov 2022 06:02:32 -0800 (PST) X-Google-Smtp-Source: AA0mqf6UKZ99VtRaVd1CDoGggy3fuf5mwfZHKF9nCg4UKFf10zA8lFr9A4CQIR+NyOEuql55wUtA X-Received: by 2002:a05:6a00:1c86:b0:56b:d027:214 with SMTP id y6-20020a056a001c8600b0056bd0270214mr23385816pfw.79.1668607352024; Wed, 16 Nov 2022 06:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668607352; cv=none; d=google.com; s=arc-20160816; b=xXLDFHQWkV+B3ECk0036MEr/unRvSW5IGniMMosk8oZ1f2v2kP1Dsvo3Nr5qeB/9jk DhC1FoRopne8r4S/lL+6so1SFGJnS6YtibMzwGkH09ndE2vmZy+PUjCbhUtNpdp1ylU8 Mut4EGR6xhrtMBgBbHQbJbJ6UmYgs65WtviIpHZ0UVUgRqaLRwX8iYjlUcUE3HPsWbWX iy2RLJzkNY650xO05WDjf7ZzW6mwoUlNa9ToJYj2JCM8DuI3rzP3ZjLqi5qp78/H++iw hxca2HGOnxpbmWf0ixbmRTj4h5HxlzvJJF42+GZYfh7h7TLp6roSJY1s+wWudpJhRmYd ag/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=xBAeCVptFbtzjwGJPhdVosR+Dozmcafc15UMBTFJB5Q=; b=SYuuTdIUWVhcCK2RJYbcwMfOgdVgCAG1fQdHUHAHLnpZdcQrpZDskvBIdusBwlx8zF w5V4fmhWrsoYCuZ1oCFRGyPuedumh8C0tkzlj0fO58Da1OGpQFHnl8r0jekwerrnb+fx QaSnqK0nlOFmSlc9oP4qupdcvNJzsO7+T0PI2QajEg+KF5/dmjOP2YAy+ELPfMoWMBmq sxOCVYlgk9oRadK0v3GfjkVwxlmSl4hlve518+xeIi4F5Xypoy/jGXgoKWfFCqkjw+UN HeHz/IbaFnZt8iyubijhttFRtDhyzsmLQZATz9XbGrPy3cxYUxi/0B8aoh4A9iDF4Sic 9/8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samba.org header.s=42 header.b=08zLYLTP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 144-20020a630296000000b0045ec918ad31si15611146pgc.544.2022.11.16.06.01.56; Wed, 16 Nov 2022 06:02:32 -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=@samba.org header.s=42 header.b=08zLYLTP; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=samba.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbiKPMxj (ORCPT + 91 others); Wed, 16 Nov 2022 07:53:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231292AbiKPMxh (ORCPT ); Wed, 16 Nov 2022 07:53:37 -0500 Received: from hr2.samba.org (hr2.samba.org [IPv6:2a01:4f8:192:486::2:0]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EDB2B7E7; Wed, 16 Nov 2022 04:53:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=samba.org; s=42; h=From:Cc:To:Date:Message-ID; bh=xBAeCVptFbtzjwGJPhdVosR+Dozmcafc15UMBTFJB5Q=; b=08zLYLTPYx4yVriV/Ko5T/ZyrA 8e7qBKmzmlOuvWuW7cdSOfXh2eP/WjqK3CR2vqCr9VyJwqrycX1iQNWhoMIgE8C/S1Onq0kIZuC+C OOsuBSypuotD+7oGELLb5ThdaeYh/7qy+CBac456p9C5wDeK5AsXilIb9k25nPRa6i5tFyTGaJbBI zoBEFhj20zPSicM8V/YQoUe+/rMZW8s6doIniWIXaHHx5Tb2J7ONQzJdlXzSnc4edF5vNMgcdBnPB srWRgne2vaLFi0eLrGQX6it7ohd5Fkqk0Kmh+3ss1+q09bGD6RKYlUxGRKum9EOgPaTjnT5yfN5lm 46H3gajCqldfl0dsSWJte9V7G/j5zILMd2Yh0n5GVucYQQCWWA+6g97ZLXSIRUuQKJSxtaJI1G3wS 4E5wSICvQOIrdwKzCztM/EXhNGJcPJdzm6127gm8S/HX01OIJLeDiK2ZAlwRmfSZ2vQX7e7FstOQz 4k2JVCBgA4o3pG+EAw4t/Erp; Received: from [127.0.0.2] (localhost [127.0.0.1]) by hr2.samba.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__ECDSA_SECP256R1_SHA256__CHACHA20_POLY1305:256) (Exim) id 1ovHv1-008sHO-Ci; Wed, 16 Nov 2022 12:53:31 +0000 Message-ID: <34140d2f-4f1f-0d58-c0ca-eb181ca9fde3@samba.org> Date: Wed, 16 Nov 2022 13:53:31 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH] cifs: Fix problem with encrypted RDMA data read Content-Language: en-US To: David Howells Cc: 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 References: <88b441af-d6ae-4d46-aae5-0b649e76031d@samba.org> <3609b064-175c-fc18-cd1a-e177d0349c58@samba.org> <166855224228.1998592.2212551359609792175.stgit@warthog.procyon.org.uk> <2147870.1668582019@warthog.procyon.org.uk> <2780586.1668600891@warthog.procyon.org.uk> From: Stefan Metzmacher In-Reply-To: <2780586.1668600891@warthog.procyon.org.uk> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: base64 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, 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 QW0gMTYuMTEuMjIgdW0gMTM6MTQgc2NocmllYiBEYXZpZCBIb3dlbGxzOg0KPiBTdGVmYW4g TWV0em1hY2hlciA8bWV0emVAc2FtYmEub3JnPiB3cm90ZToNCj4gDQo+Pj4gU3RlZmFuIE1l dHptYWNoZXIgPG1ldHplQHNhbWJhLm9yZz4gd3JvdGU6DQo+Pj4NCj4+Pj4gSSdtIG5vdCBz dXJlIEkgdW5kZXJzdGFuZCB3aHkgdGhpcyB3b3VsZCBmaXggYW55dGhpbmcgd2hlbiBlbmNy eXB0aW9uIGlzDQo+Pj4+IGVuYWJsZWQuDQo+Pj4+DQo+Pj4+IElzIHRoZSBwYXlsb2FkIHN0 aWxsIGJlIG9mZmxvYWRlZCBhcyBwbGFpbnRleHQ/IE90aGVyd2lzZSB3ZSB3b3VsZG4ndCBo YXZlDQo+Pj4+IHVzZV9yZG1hX21yLi4uICBTbyB0aGlzIHJhdGhlciBsb29rcyBsaWtlIGEg Zml4IGZvciB0aGUgbm9uIGVuY3J5cHRlZCBjYXNlLg0KPj4+IFRoZSAiaW5saW5lIlsqXSBQ RFVzIGFyZSBlbmNyeXB0ZW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