Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2670592pxj; Mon, 31 May 2021 07:54:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNFJ8GMRyZgTtpDFW2045GJWbaWE7QBjO13DY+ysC9Lclf+Gl2fRbJvn9RbvyWYzVHxwcc X-Received: by 2002:a05:6e02:1e06:: with SMTP id g6mr12128143ila.192.1622472859865; Mon, 31 May 2021 07:54:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472859; cv=none; d=google.com; s=arc-20160816; b=fzrf8D4GSO9ZLFJV7lBXTh6yw/qljtHHIGBeuWy0KsjtQSTaeSNh/pU39Y8NumANzP OWx5puN3WMwXZ/+2r+HieyRiwsfZU1MzMQoXeAQSDYUblRQafvNAlXPsE41nmtNOZGZV FchiG7YN83Y4q8GB1G8uEhNIABeqjaYbhKIlD/qLFafoIRzEyYZYb8p1KDQoV9QOgBT1 oTUKIpkfYWaD0ap+ZFPgioSELLfCW9RKTEhRMrtNPn7hcUCX0ZOpNssjGiPxBTb+iZEH fuESVc6HWLyOlTg58bYEBQqzGYnzvtw0UBlvCAMZRGgahqdYugmaIAQaF4UmhFId0fyc EUoQ== 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=zD4L433rC4xvAV4tto69EPDo+eUAkY25Kljy2paS5g0=; b=Wq+GYRu1bPGK+e3mAVKkpxNhdd1vlQ/LBo65dr1iGnavQjRlW6J8E2p7wJSCf+VFT3 l6NuRkE8mjAK6irvf3Kx7YVjVXkviVidP4kvA/DDdgJwrIiX/+o81+L2uE/l38JE3YfX TLYHC4VmedNrwgvTTmuMQXFxQueI8LGOW3s2IUaXU+iRLc2aaSZ3J4gTQU5GjRGFxuil DXMDKc07wkytb1DMp2lRs3d/R+EOFlpseD15PpJ4ziao98LnhJn4JgulKOTlYNIwrceU pwcnb7Dkvfdcv8n3DMHpT72OxM8wFVCzIeqPlyN6kXJhHjv0w3F9bjQl+GWgsFHLT83D hAtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Z4RseZty; 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 w13si6096502jao.90.2021.05.31.07.54.06; Mon, 31 May 2021 07:54:19 -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=Z4RseZty; 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 S234189AbhEaOyg (ORCPT + 99 others); Mon, 31 May 2021 10:54:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:36982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233034AbhEaODa (ORCPT ); Mon, 31 May 2021 10:03:30 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B4CE56135C; Mon, 31 May 2021 13:37:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468269; bh=JlD7Z3xjQTGq2Qdw73R5uducC+q2EnuaqfUeOO7B8+E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Z4RseZtyAouFwEaV58mU8H3bSGCFOBSNL5l59AoyswGEAUMdAW4zmI34OAH0V3t9F 9uiPo9bY3RVf/mCehAJXSyveKVhzR1rDxeLTrR2PKViBkTH2gXOxSCh/v6UwFnAiyh pbhvY9lILuq1Ov6xkS2+qwpU+EmVGX0Yus0c3+k8= 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 5.10 180/252] SMB3: incorrect file id in requests compounded with open Date: Mon, 31 May 2021 15:14:05 +0200 Message-Id: <20210531130704.129975469@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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 0ce92d958fd6..ab509965656e 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3898,10 +3898,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