Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2639337pxj; Mon, 31 May 2021 07:09:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxK2a0+fjv/NvwSqkFlrr0i5ry5Nx2SKgND6bE8cB190peqzfrCak2HCGhuKctsiV8LA5Gs X-Received: by 2002:a05:6e02:1be8:: with SMTP id y8mr17589230ilv.52.1622470175209; Mon, 31 May 2021 07:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622470175; cv=none; d=google.com; s=arc-20160816; b=I80vct984XF9cDEYlLq8P90Dz7cq3SB/Fhwq3uT7j3lr22toj9Es9LYzIYhWillSSx CHYuWyBdUHUGeiGbPzEmVrcIzeInzrqNJn4zIlD1LNTZjoduUTvIr3mlGruhhbkS6jRD LKplzBw9JpQ0XiJPJVKBrfx5ID2KX8rRfooF9PheEpjSctJ2a7E4nmW9rwua1J5qzqwJ zRXNQEljoq+8EEzNP04MsROKW6J9rT6/2C4KmQ8jvrYdJrrhUWqvat7fRPDwg/Q4E6n5 fjeWHqaQNZX9VZK/tix1XGmiDHAojFRsSNaye82YALLwAU4o2KDwyiXHZ2xdCafBVOVT WLRg== 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=qG3Ku1rWQVMCmg3/AnrCZC0hyKtBQiPo0+a80VCEAp8=; b=dx/881hwseou5O9dq5g5C1M1uo7O0PTezv8Raree8q6TWZy4XhZOyQYSKSX4MY7deP s+3fiC70fOqbVHTpBHlJ3+3dMsRzR2jePkMQpZLotBEkSpUEZlPMqoG/7c8iRHJvRJo2 Y2BUlBbsdkuaST8o471a6+7HKfJZceQDpKnsv2vtbSGXSN5b/AoB3qxphJodwPD3w/qQ miMCry7yy8U0+mgPIDl4BU2481LGHta0ZoKue6HbI7igEFEWh+uT2AB35aUpPgv6Ptfi 9cYOas2JCFyG2OKv1Mv9OnCU7sXbpjyLfpw7sMd9Is9qCpUZpf9KIwukuMsJ9ESG6iDl iJhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2EdzYkZV; 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 g9si13597591ild.113.2021.05.31.07.09.20; Mon, 31 May 2021 07:09:35 -0700 (PDT) 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=2EdzYkZV; 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 S231627AbhEaOIo (ORCPT + 99 others); Mon, 31 May 2021 10:08:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:49834 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232450AbhEaNnT (ORCPT ); Mon, 31 May 2021 09:43:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0E9D761416; Mon, 31 May 2021 13:28:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467737; bh=VrtYBmNnianniO00dxS8V0QD4bR7ffHy19vt9sjE4yg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2EdzYkZVp4SLNubk5+8YJYFM+4OdTx07EOgVV2Ehd5JB1y2xLmu2gaCpcuVr/vMQ0 Qou0Kzaf1dhibAfefn1jZKujbHNaM6RjSVUFbdeN0jD74qwJRp7EslBaETG8W7hzRj dUa/yFpSBBEZiyq0gBXKe0bSgkXTUdChG6vOEIE4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Steve French , Stefan Metzmacher , Shyam Prasad N , Sasha Levin Subject: [PATCH 4.14 61/79] SMB3: incorrect file id in requests compounded with open Date: Mon, 31 May 2021 15:14:46 +0200 Message-Id: <20210531130637.949164113@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130636.002722319@linuxfoundation.org> References: <20210531130636.002722319@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 [ Upstream commit c0d46717b95735b0eacfddbcca9df37a49de9c7a ] See MS-SMB2 3.2.4.1.4, file ids in compounded requests should be set to 0xFFFFFFFFFFFFFFFF (we were treating it as u32 not u64 and setting it incorrectly). Signed-off-by: Steve French Reported-by: Stefan Metzmacher Reviewed-by: Shyam Prasad N Signed-off-by: Sasha Levin --- fs/cifs/smb2pdu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 2097b5fd51ba..77a9aeaf2cb1 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -2518,10 +2518,10 @@ smb2_new_read_req(void **buf, unsigned int *total_len, * Related requests use info from previous read request * in chain. */ - shdr->SessionId = 0xFFFFFFFF; + shdr->SessionId = 0xFFFFFFFFFFFFFFFF; shdr->TreeId = 0xFFFFFFFF; - req->PersistentFileId = 0xFFFFFFFF; - req->VolatileFileId = 0xFFFFFFFF; + req->PersistentFileId = 0xFFFFFFFFFFFFFFFF; + req->VolatileFileId = 0xFFFFFFFFFFFFFFFF; } } if (remaining_bytes > io_parms->length) -- 2.30.2