SMB3: incorrect file id in requests compounded with open
authorSteve French <stfrench@microsoft.com>
Sat, 15 May 2021 14:52:22 +0000 (09:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 07:00:44 +0000 (09:00 +0200)
commit530baa6f3c0632b17ee3d0feaba6dc68d53e0e09
tree65bf5ee6023af0d2746db38dfbbfcd091f474308
parent518457d0270c564e1aef2c7c09ca79e42c5b4550
SMB3: incorrect file id in requests compounded with open

[ 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 <stfrench@microsoft.com>
Reported-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.c