Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2713526pxj; Mon, 31 May 2021 08:54:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFZPrRKg2jlqEESfOk3UkVx6m+gnJYCtvJvK6j6kXCN76XIbtT2n8AwyQT+VsDmFq9CALO X-Received: by 2002:a17:906:34c9:: with SMTP id h9mr11320715ejb.246.1622476478532; Mon, 31 May 2021 08:54:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622476478; cv=none; d=google.com; s=arc-20160816; b=z9CEBgTmYuo5AQ7VnMQ3wJ0un9pm6LOqq7rMj9f23/QTSPGFMmNTSVuKyWvUKFZTCu m21MEQPjCn4NfoqQ0h0i8EoT2rA9hn1qXy6JJjs38dwiw/hjbChvwMmfMeOCNPArnHDG /12EoHFt32c/yjI7GMbWq1+lMesGobtU597rbYlbrUB3zvvHACNII4NaV5Z+qBjxemgs YXoi+Ll+kwLmcg9Y525fO5Nje/c8VAGNjzLhMilUqQQEl/Cc3gNOR0D/M9Tx8BhdorMS wY83E9kq/gBaL7FSYnMfFVKxNlp5UbqFc/ho6KXTqoCLieTmKzGVMPU9XaG0UNgiCR6Q 4Xyg== 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=zARP11XQbJmb+IJ1sZOC5YtqEHW5yGRw0jLq74RlEms=; b=yuMi7ggN5GQIwc5A85mCcGraU+lEo0G4ughA0yQox7vg1/fO855CAlBxGnxoNZH8zo 574+qNjj2TA5tcW4YBtl4mRw3WMP6n2USybS/FkWE6PioIiPuJbnySzbvXC4y04QPYMn DL37D+v7X/pNtAfdMjm1GrH5q3fyrOUM12Gn0EOJ9+wkBXdTkIydCzTd7tiiWGBaYRqV tdK+95buOnTfakv9z5CNJsyduONJsjuNZkOzDULTvBqsUKIodFqYWsFn08Q8x7jrCtfu 13HmFmgLR4C8iyF3BfJXNBsQgIYHiHoly1oppS2vpxitWGdxf4ySYutcJb/IEGTcv7DT uqYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HGzAz0Yp; 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 eb13si14433142edb.182.2021.05.31.08.54.16; Mon, 31 May 2021 08:54:38 -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=HGzAz0Yp; 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 S233291AbhEaPvX (ORCPT + 99 others); Mon, 31 May 2021 11:51:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:55744 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233729AbhEaO3F (ORCPT ); Mon, 31 May 2021 10:29:05 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7754A61621; Mon, 31 May 2021 13:48:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468882; bh=++LW60jO3k9mXh6igm2eVWQTWvkp/K+wt3ocYKaL7h4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HGzAz0YpD0PGizC+khFFReS1DoFfExmExUQr6zTp7IeO6Qsk8NyU9cOJnxniG5jFv a6pTDa0E2IB7JnwuSAQ0cojd6LmHHv75hbK3OTk+gibqvCHyLxHj5pR6C+/OCgwB0C WRPJAXZYtTs/IsCXcRDlBMbarRbGFCIJS4OWup2w= 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.4 130/177] SMB3: incorrect file id in requests compounded with open Date: Mon, 31 May 2021 15:14:47 +0200 Message-Id: <20210531130652.425371951@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@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 c02983ebd763..e068f82ffedd 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3611,10 +3611,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