Received: by 10.223.164.202 with SMTP id h10csp102207wrb; Wed, 22 Nov 2017 16:43:47 -0800 (PST) X-Google-Smtp-Source: AGs4zMYjoXPcHQU5cYlR9JxbJFP16jp4vYT4LOkUl0XhhxyDopNhzxKRG7Wy7y7mpKShw8RD+rjT X-Received: by 10.84.217.206 with SMTP id d14mr23014535plj.132.1511397827501; Wed, 22 Nov 2017 16:43:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511397827; cv=none; d=google.com; s=arc-20160816; b=dODsfYSD5QS4FhGaJt98NEcrdJ0Lad04A54qJKPQNBS6Lt5fG0wM5VlwRPNLfQIVy7 YvufnQYX62hK/9kbQSVwsECVGg+7X7I82BlSkLZi/5SuQ4dMiZ29sscvp75QPHE4MdLR fjjieYIarh8BsUNs7tV6CTXe2fqDDnTfwwcWG2N7fHVNz8y+h2vEM54679Ao7a9W0Rbs U4NiUGHQ0aU8u2DMLk9EQuHunWRjUDfEnxlGndyexUwx7NJSjHGvcq22OWGNFsRz3/Th cTP2JpkhV8juL853qmuM3/inhbQ4YRkF3AFTOCbOByCtdT5JMQt0FLrvCInoxk7lSWZx 9nSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=qgy0NqN8zI03unubuqx92K1iF+0kqgtY2xONtlQgUyw=; b=vHUuy3Jr8C5eo4KWNRrVIgSgR1NtshlP0vTDu8KRuzwwaSb+HmMDEe1QifTB+T7QLp YBO0j7kEKOY+GdQYLQkirx3MHtxoklRFxz0iXn2pbtJDMWaJ4RTBP+BJgCYk7ztQ5Ccm QfpamTeFy8W0ow423aFNXSFyDY/E4+/4qCUX8fFAqusZ1DPkhdzTTFvicLG7mufn3nBk kynUnELORMSlvOxCbZq1kcfxOeFbgIk5ucyPKQxHPJwdDOSQpB4/Tr9f4rabErf8cQ94 VwXByxvr2emohpMGPcAq1MsPObQ10EOp2l8su1xS5ns6YDoKvH3+G5iySu7nOMnaOCjg 5+Bg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i2si14379544pgq.7.2017.11.22.16.43.36; Wed, 22 Nov 2017 16:43:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=exchange.microsoft.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752780AbdKWAlw (ORCPT + 76 others); Wed, 22 Nov 2017 19:41:52 -0500 Received: from a2nlsmtp01-04.prod.iad2.secureserver.net ([198.71.225.38]:39122 "EHLO a2nlsmtp01-04.prod.iad2.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbdKWAkR (ORCPT ); Wed, 22 Nov 2017 19:40:17 -0500 Received: from linuxonhyperv.com ([107.180.71.197]) by : HOSTING RELAY : with SMTP id HfXce4a2wgsKFHfXceQX1l; Wed, 22 Nov 2017 17:39:15 -0700 x-originating-ip: 107.180.71.197 Received: from longli by linuxonhyperv.com with local (Exim 4.89) (envelope-from ) id 1eHfXc-0004UD-KM; Wed, 22 Nov 2017 17:38:56 -0700 From: Long Li To: Steve French , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Christoph Hellwig , Tom Talpey , Matthew Wilcox , Stephen Hemminger Cc: Long Li Subject: [Patch v8 16/16] CIFS: SMBD: Disable signing on SMB direct transport Date: Wed, 22 Nov 2017 17:38:49 -0700 Message-Id: <20171123003849.17093-17-longli@exchange.microsoft.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: <20171123003849.17093-1-longli@exchange.microsoft.com> References: <20171123003849.17093-1-longli@exchange.microsoft.com> X-CMAE-Envelope: MS4wfLZE5Hgd7LBwlGsnXH1R46MrLS+7X/A49Nns2oU7LygdrEmyWSdw9LNjZ8e5YHSVWKrX3KU++b7iedVecyflRlAkKeaWAfQvch0VF8i7YDms7RjiJ3O0 A5RmPXbwRKbIC0qLVLZ7aRFFiaURH42XLM7My1Hb+jDlHnZQZkvewujxg3+uf2gSIkQ6CF5KkZGzN/bz6kHFvaixoxI7LhWltIc979TLuJCywzfXhKIRxbsG DsK7VAqNYSC1M16LBEdKe0QyLLnpIVf28Zh9/iWtRsdal23Tz8b1bgirwN4K+U783l/hWaKw4zXfxRqtNiAEKgsK9rFCbG9dwHDyjJM0ooGgMaIuf1Qb8DL6 AhV48C/aAHuENHfCtCYWgcfJxWf7ECfM0PDZapchUwnrkpX+ns7+kAtuq01j6nMLt1SDX1McUrqtLrQGmkFmXfak/t4lE0gcghKMEKiW6cxUEDvuv/6+am4C 1c5IOOlKNVl31X74hGRrOfWst2PaylicVU1tKg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Long Li Currently the CIFS SMB Direct implementation (experimental) doesn't properly support signing. Disable it when SMB Direct is in use for transport. Signing will be enabled in future after it is implemented. Signed-off-by: Long Li --- fs/cifs/connect.c | 8 ++++++++ fs/cifs/smb2pdu.c | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 1677401..b18eae1 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -1968,6 +1968,14 @@ cifs_parse_mount_options(const char *mountdata, const char *devname, goto cifs_parse_mount_err; } +#ifdef CONFIG_CIFS_SMB_DIRECT + if (vol->rdma && vol->sign) { + cifs_dbg(VFS, "Currently SMB direct doesn't support signing." + " This is being fixed\n"); + goto cifs_parse_mount_err; + } +#endif + #ifndef CONFIG_KEYS /* Muliuser mounts require CONFIG_KEYS support */ if (vol->multiuser) { diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index bee0871d..a3e67be 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -616,6 +616,11 @@ int smb3_validate_negotiate(const unsigned int xid, struct cifs_tcon *tcon) cifs_dbg(FYI, "validate negotiate\n"); +#ifdef CONFIG_CIFS_SMB_DIRECT + if (tcon->ses->server->rdma) + return 0; +#endif + /* * validation ioctl must be signed, so no point sending this if we * can not sign it (ie are not known user). Even if signing is not -- 2.7.4 From 1585437973677048998@xxx Wed Nov 29 21:37:55 +0000 2017 X-GM-THRID: 1585437973677048998 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread