Skip to content

Commit c0d4671

Browse files
committed
SMB3: incorrect file id in requests compounded with open
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>
1 parent 4236a26 commit c0d4671

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/cifs/smb2pdu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3900,10 +3900,10 @@ smb2_new_read_req(void **buf, unsigned int *total_len,
39003900
* Related requests use info from previous read request
39013901
* in chain.
39023902
*/
3903-
shdr->SessionId = 0xFFFFFFFF;
3903+
shdr->SessionId = 0xFFFFFFFFFFFFFFFF;
39043904
shdr->TreeId = 0xFFFFFFFF;
3905-
req->PersistentFileId = 0xFFFFFFFF;
3906-
req->VolatileFileId = 0xFFFFFFFF;
3905+
req->PersistentFileId = 0xFFFFFFFFFFFFFFFF;
3906+
req->VolatileFileId = 0xFFFFFFFFFFFFFFFF;
39073907
}
39083908
}
39093909
if (remaining_bytes > io_parms->length)

0 commit comments

Comments
 (0)