Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9095132pxu; Mon, 28 Dec 2020 06:31:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9tGRTWFwhXx+TLp5gLQEFUNs1fyoWrFrjNd0L7HMosdmowcnnAXCfctF9u4yPraxGFjNp X-Received: by 2002:a17:906:2c54:: with SMTP id f20mr42287163ejh.318.1609165880834; Mon, 28 Dec 2020 06:31:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165880; cv=none; d=google.com; s=arc-20160816; b=Icy6Z7IWQZRwmqk4mavU+Y6pHJ7+KiheUXh0Iy6fmlc8VyJlLOvGVVOJYz/VveaYh/ xEe1AYfaXftOlZpbY6ptFLCgLlZ82g7IhnKt+BfDrN8qCjFaXTUqYmHLPgyiPYqtWQZx rA+y75aMGEuu4Qs606c5qqn8MDuU5OgOE1AWHQ2UBme++bOWgRSfrHarWxNeFbmYUSqc DHz30bQwVDrrLkAq57QB7Hk1Wp5r/n0Lzf0j5xGsCMPVhNlORcfzR9e+YKiPKJTlzqcs +pmVTf4aA1WoOsh9upH2J+XqnJtbAjQkqomlgxE9l30xPQpfuZy5TOzZ+PrwqBAhLkfm 1uuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Q5/kPe2OQyzI4Ycmg1g+lIOVWWpjTe8nXtWN6rfghwI=; b=c45Ok2k9m4w/aFVeQDsgO736fZ/He+tWuUA6cfWHrhYzykZnUrv74tbgRiPc27P3yH 9yjPA4P3uTO7Wiw+FBHebMvW3jcq+7tT4vu5Y9Tg9uaFoKRiSZvqAWyI80q3SBLGldAW iLVUSv9Vue8L4xZ1FdX1BGSneZ1XCQajRhs4jn3V+mMhemT6Opdd7x6ukUo+Xu/jxcZ1 gNdFTM/QFnajHYtxTFhiiqEDB9zySQsLT7fPbFYOzunhM92qy340eKC6001jwGViU7rU h/NqwB3YUFUyMhKvt1CdGCWlpa8tlsvQwu2kBdQaWHFJE3y4pa1fTIJGUZLviJj8nWzG KDMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lW7QKLsT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y24si19029876eju.410.2020.12.28.06.30.58; Mon, 28 Dec 2020 06:31:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lW7QKLsT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392033AbgL1O27 (ORCPT + 99 others); Mon, 28 Dec 2020 09:28:59 -0500 Received: from mail.kernel.org ([198.145.29.99]:36766 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390307AbgL1O25 (ORCPT ); Mon, 28 Dec 2020 09:28:57 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1E34224D2; Mon, 28 Dec 2020 14:28:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165696; bh=RrjdCz/cNTsw03Xucv98F+MuW7Wpax9nWU/g6xXb16w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lW7QKLsTziE/hFQzCBndEo6kqccEgRHYu3oMwaCf1sm3jbmJ6jfPlGiWW4Cdoh3Cl FGrBpNvfiwZ5XpP9FHAURuuJZYzxixS+x/JUstFTKMO9OKnOYnMQTe9L0gaEeEoHu3 HJBZO8PfSjqof1zkmulwCR08aaF5RY6dgNIp2srk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ronnie Sahlberg , Steve French Subject: [PATCH 5.10 623/717] SMB3: avoid confusing warning message on mount to Azure Date: Mon, 28 Dec 2020 13:50:21 +0100 Message-Id: <20201228125050.774782951@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Steve French commit ebcd6de98754d9b6a5f89d7835864b1c365d432f upstream. Mounts to Azure cause an unneeded warning message in dmesg "CIFS: VFS: parse_server_interfaces: incomplete interface info" Azure rounds up the size (by 8 additional bytes, to a 16 byte boundary) of the structure returned on the query of the server interfaces at mount time. This is permissible even though different than other servers so do not log a warning if query network interfaces response is only rounded up by 8 bytes or fewer. CC: Stable Reviewed-by: Ronnie Sahlberg Signed-off-by: Steve French Signed-off-by: Greg Kroah-Hartman --- fs/cifs/smb2ops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -477,7 +477,8 @@ parse_server_interfaces(struct network_i goto out; } - if (bytes_left || p->Next) + /* Azure rounds the buffer size up 8, to a 16 byte boundary */ + if ((bytes_left > 8) || p->Next) cifs_dbg(VFS, "%s: incomplete interface info\n", __func__);