mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
SMB3: incorrect file id in requests compounded with open
[ Upstream commit c0d46717b9
]
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>
This commit is contained in:
parent
6d98f003ab
commit
c71faa2be5
1 changed files with 3 additions and 3 deletions
|
@ -2518,10 +2518,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)
|
||||
|
|
Loading…
Reference in a new issue