Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2625185pxj; Mon, 31 May 2021 06:51:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxymQFUR0IEhTYAxeFzKifqCuHoIgXu/qSg1buV2rjD1poUk+o8dtGCVWQWFBPICZ8ao2um X-Received: by 2002:a05:6e02:1050:: with SMTP id p16mr6966068ilj.74.1622469090109; Mon, 31 May 2021 06:51:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622469090; cv=none; d=google.com; s=arc-20160816; b=tD0Omx08+ldvmxQQWG7U8GpjONoQ4q7SNwk11XmCOnA5GlewKMQUZnfqVC90z6Ajcj TyWdVQT6w4t3EW0/Qz3cFiA8bwsARAUJPVDZSw5M/Z+RO2U18e0o7HtF4QFi4wTIfrnt WBViKihUVqAfrOxXR3eeq6BUujpe0grIJ43eEnejCk//pO1lRIVfUkfef0uTRvijC2CV jmNaLelm37QXIr0F6Of3nOfr2IXKN1s17Cy86xC33duMhPVfjBItYT+UuKPAZAtVpCoI PJiq0wc/8XlrtPnx9ZMLJPLfkaj4r+6vX7D1bBaOd0KaUB7W8abhtyex8Ep33L/cESYz T0YQ== 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=lnEtXkK/2rJA2VJV/zKw90+Gi3Qp5mvBXIYEEQS3mk8=; b=bCz41NmTkl1eknwAhZSx836C1xy4LIHSdLnbj3zDssLuGmj/zsocSCyEaeQxofj9j1 Zo/falbFUicJHbGjx8Ao98AQxBDr2moySKck/KwGeNzT48OqbhG/GynnpbE3vAI5s/MR aVgv3BI+YBXLWwqK+JOMpKA+9ELAJZPipe61Dk7GVgxbbWCgA2PZKDNg6SiJwzeGmEpo YWBLu85i7DgI8fXysJ9ybLPza3aqcPsJmhoIG0bP7BGFR0s85G6B1cTR3ZDQCQB+xQR0 k0XACbDvR3SmfOKWsg/6vp/XzpYb6Q7Y4hS8MPYD9KTZgBixWy7xLMJj7ArGczUZdtLp J+OQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dzBQF24u; 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 r84si14902998jac.11.2021.05.31.06.51.17; Mon, 31 May 2021 06:51:30 -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=dzBQF24u; 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 S232315AbhEaNve (ORCPT + 99 others); Mon, 31 May 2021 09:51:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:38860 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231712AbhEaNfM (ORCPT ); Mon, 31 May 2021 09:35:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 39A2F61440; Mon, 31 May 2021 13:25:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622467510; bh=+bdAPR770A/6qlrJOq4AoDxXZQSCfeehkvgjE5IZtFU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dzBQF24uQA6Px27Buc7va37jS29znohKcqPObfCowO6V0+IvDl9+Y2GfOECXJxhLE JaSDh2ltkqeg8v6Mlo+zWu5FY1mi5oI+skJh9M6VTsTcjSE+maoW1O+BQ6H4Du6+fW AB88HBOqLaKatrJOCLzV0FgNWLNvoXX2eVHwrpk0= 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.19 092/116] SMB3: incorrect file id in requests compounded with open Date: Mon, 31 May 2021 15:14:28 +0200 Message-Id: <20210531130643.260729898@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130640.131924542@linuxfoundation.org> References: <20210531130640.131924542@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 07d1c79a79ea..43478ec6fd67 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -3124,10 +3124,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