Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2748617pxj; Mon, 31 May 2021 09:45:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyaksLmIn7droKVkmkvDVY9LpGnboGCUDF8GE0fL/8WeC4zDRvRDD1NgouLt8qSMWcatoR X-Received: by 2002:a5d:814d:: with SMTP id f13mr17349178ioo.203.1622479512036; Mon, 31 May 2021 09:45:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479512; cv=none; d=google.com; s=arc-20160816; b=MBP9+xuogtexIpaq1Unmg0rmjNGbm1hOVBP6lqlq74s/aZcP+FrNrkJ/tSpFwXZrvK LYenYu0UWSg/M0dVnbVqzqP1oRNTPPdwl+YYDYvli48Gjz7YOf0zB8aRu2BEIOv7QwaB D+9t36Ifajd2DJDGQ/5vM90dHuoI7I3ozb9yqRVJng6FSLjhg/eZOSrFMAsHZ8Z1KyiO sXd4U57vW6GWaGg6+NAMGSat/u7qbEbU2KeOx4DdQ/eDbN6vPhnJE3fCKzGPasivDnGu hxt8KGv22feR0QIUB/vd28Iq3Pnej8RcBTZdWuiPJTOK3yKuk+7LPA55Iitg2iRY/xxR G0dg== 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=2yc2QcfUiUWQ82G5dJtfE+1gKV79+0RPanSx/maj6dI=; b=kNWxx6Zp9zVli0cxRkYavaQ+v4ydNlmzqOR+MnYb1DEKYDDe0vwORA80CsVtUf0tJK bSewFBw9Ltxxi7XHKyRRAoy8T4gT9E/fHaov+rV1FZgvOofot3+C8oHKgveLwM1MOkat yJr8JbCwV3JMI3WMfl3SDywsj6Q0m3X0c8ZwRuThnJHvotmJNTD9uGQzNx2ExIJSdYv3 1g+0/s2Z+u4r66t4FUDnD5W3KfCAv/XAVLRdMDPORIkk6nDWbAPkyXdKio3E8SrT/7oY q4cvbgcUQlru5T+uR8vcb66XLDzpxre8TLZEqH8gk5TZkyn6K+QxUWrQm9bQnXrPeplX /1jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yItmfoIW; 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 q16si2494322ilj.78.2021.05.31.09.44.58; Mon, 31 May 2021 09:45:12 -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=yItmfoIW; 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 S232622AbhEaQqG (ORCPT + 99 others); Mon, 31 May 2021 12:46:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:50182 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233109AbhEaOzT (ORCPT ); Mon, 31 May 2021 10:55:19 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DE74161442; Mon, 31 May 2021 13:59:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469565; bh=v0qR1BplzjLxMS5bvo0jgaXHv5BR02BjMacAK3xckCA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yItmfoIWIVhXHnshYbQ4rfBh65C9uY1EdS/XFEbnTJjcOJW15KHerN5M08nhYL6ko 20m1R6G52YE0oZ8mNwT45/Jj0dlPybBb3ouga73+x7G0IMnU9+6UYiRMpWGpY1j9vA vqzqjGWqmxkeewmHpM0yjwH9jMpnI3jvhKIOjWRI= 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.12 211/296] SMB3: incorrect file id in requests compounded with open Date: Mon, 31 May 2021 15:14:26 +0200 Message-Id: <20210531130710.951904835@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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 20b353429e69..7606ce344de5 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3907,10 +3907,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