Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp577545img; Fri, 22 Mar 2019 04:24:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwRALZ2S1SUMtdyrnX7pbvgAk0tR8KjR9V8yMEzw+Im3+PIcoag5sJ4chTHKJFNzjSjhCyN X-Received: by 2002:a63:2045:: with SMTP id r5mr8259634pgm.394.1553253882751; Fri, 22 Mar 2019 04:24:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553253882; cv=none; d=google.com; s=arc-20160816; b=VyK2m7GOhiovmE9VQNeOmj2NZsg8M/5Jxm4V9UPcgzsxKSm7oD9ariCYdyUd58gZIg D+1ks/pmbVkgJKy34XDTcIKtbtml6UsOMPNfUx93FxkjQ5wE2qynBvY18aPHfLARUQht iSQ5QwHmBcy65hyBU1fd8QwCeQ2kbtT7/Q2zsScJ2Ic9QtJMqd0XvcmJH6bDCo5niz5T QPImL+9JkY771ZjxvWfG1MjE78GsBlNhumxRDCErQxVpqsFaFg2XYYnCgZf2z51W2AVI Tki0M1IHmovwTZXCgeofEvpkIWf9jzhtpaEWu5sMwRXUONRkOw8p6I/iUxymFjkfXocS KVGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=5iL+zNwqvI6cnWMC1mVcigiEZZJC+2heb7wJ3z12AZM=; b=0CGeTW6qH5I4tektb2sLIm1PwQuXTyGiIm2H0x5HHNMQOXhPzjLBdY2a64ZzWp4pMd 28cOIqltTiCvTq9Jym+oRsiNsWg3ndYNl5h7FRiwvV20dIF3RsKY3rR8UAypHuFTM8+R mIvsucn6L/A/LILZgXlswCwjSq2BM0L+Cjoyq99ItZj+7y3+BRJvbQ9BCI40G5XokDoM v/I3h5aI5+MlySS0CFnvBwpdb1SyUjJs3pECgL2ziW1hvYKTzn71xwXc5EVfI0EOr1F9 V8iBESVsu2xpPJmiJDoqTsrHuJhG88KOvl9hw91LNb9KnMr/Lp0sRC7DPFh2gux+jKnk cj7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LkfCQKXZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si6630026plk.323.2019.03.22.04.24.27; Fri, 22 Mar 2019 04:24:42 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=LkfCQKXZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728465AbfCVLW4 (ORCPT + 99 others); Fri, 22 Mar 2019 07:22:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:49670 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbfCVLWv (ORCPT ); Fri, 22 Mar 2019 07:22:51 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 02FC921916; Fri, 22 Mar 2019 11:22:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1553253771; bh=+VaddMuCBThMQICx6JB2+2wNuJHCzgQIxrcp8KTCHcs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LkfCQKXZ5FAj2u5HG07++st6w05xBDAUawHd2ufffJiRdLepYEFixNwpYepbqCuIG qS16FCkl+SPCkFAeIT5BJ6l/r6Pxj7ANbSorN1ALJRxYh35rwOV2IyINe0W0VvVOAZ KluAnZuB04dwm/c0iL7atV9/On6uwvqV+wYn79Gk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ronnie Sahlberg , Steve French , Pavel Shilovsky , Sasha Levin Subject: [PATCH 3.18 067/134] cifs: fix computation for MAX_SMB2_HDR_SIZE Date: Fri, 22 Mar 2019 12:14:40 +0100 Message-Id: <20190322111214.915617141@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190322111210.465931067@linuxfoundation.org> References: <20190322111210.465931067@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 58d15ed1203f4d858c339ea4d7dafa94bd2a56d3 ] The size of the fixed part of the create response is 88 bytes not 56. Signed-off-by: Ronnie Sahlberg Signed-off-by: Steve French Reviewed-by: Pavel Shilovsky Signed-off-by: Sasha Levin --- fs/cifs/smb2pdu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/cifs/smb2pdu.h b/fs/cifs/smb2pdu.h index 05c322d9e1e7..c68c31c9fedf 100644 --- a/fs/cifs/smb2pdu.h +++ b/fs/cifs/smb2pdu.h @@ -82,8 +82,8 @@ #define NUMBER_OF_SMB2_COMMANDS 0x0013 -/* 4 len + 52 transform hdr + 64 hdr + 56 create rsp */ -#define MAX_SMB2_HDR_SIZE 0x00b0 +/* 52 transform hdr + 64 hdr + 88 create rsp */ +#define MAX_SMB2_HDR_SIZE 204 #define SMB2_PROTO_NUMBER __constant_cpu_to_le32(0x424d53fe) -- 2.19.1