WSL2-Linux-Kernel/fs/cifs
Paulo Alcantara 0fe0781f29 cifs: fix uninitialised lease_key in open_shroot()
SMB2_open_init() expects a pre-initialised lease_key when opening a
file with a lease, so set pfid->lease_key prior to calling it in
open_shroot().

This issue was observed when performing some DFS failover tests and
the lease key was never randomly generated.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
CC: Stable <stable@vger.kernel.org>
2020-04-22 20:29:11 -05:00
..
Kconfig smb3: smbdirect support can be configured by default 2020-04-07 13:39:00 -05:00
Makefile
asn1.c
cache.c
cifs_debug.c cifs: smbd: Merge code to track pending packets 2020-04-07 12:41:16 -05:00
cifs_debug.h
cifs_dfs_ref.c cifs: fix potential mismatch of UNC paths 2020-02-24 14:20:38 -06:00
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego.c
cifs_spnego.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c fs/cifs: fix gcc warning in sid_to_id 2020-03-22 22:49:09 -05:00
cifsacl.h
cifsencrypt.c
cifsfs.c smb3: enable swap on SMB3 mounts 2020-04-10 13:32:32 -05:00
cifsfs.h cifs: update internal module version number 2020-03-29 16:59:31 -05:00
cifsglob.h cifs: minor update to comments around the cifs_tcp_ses_lock mutex 2020-04-21 23:51:18 -05:00
cifspdu.h cifs: cifspdu.h: Replace zero-length array with flexible-array member 2020-03-22 22:49:10 -05:00
cifsproto.h cifs: handle prefix paths in reconnect 2020-03-22 22:49:09 -05:00
cifsroot.c
cifssmb.c cifs: improve read performance for page size 64KB & cache=strict & vers=2.1+ 2020-04-15 21:15:11 -05:00
connect.c cifs: do not share tcons with DFS 2020-04-22 20:22:08 -05:00
dfs_cache.c cifs: handle prefix paths in reconnect 2020-03-22 22:49:09 -05:00
dfs_cache.h cifs: handle prefix paths in reconnect 2020-03-22 22:49:09 -05:00
dir.c cifs_atomic_open(): fix double-put on late allocation failure 2020-03-12 18:25:20 -04:00
dns_resolve.c
dns_resolve.h
export.c
file.c smb3: enable swap on SMB3 mounts 2020-04-10 13:32:32 -05:00
fscache.c
fscache.h
inode.c cifs: improve read performance for page size 64KB & cache=strict & vers=2.1+ 2020-04-15 21:15:11 -05:00
ioctl.c
link.c cifs: add SMB2_open() arg to return POSIX data 2020-03-22 22:49:09 -05:00
misc.c cifs: ensure correct super block for DFS reconnect 2020-04-22 20:27:30 -05:00
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c smb3: change noisy error message to FYI 2020-04-09 13:28:24 -05:00
rfc1002pdu.h
sess.c
smb1ops.c cifs: fix rename() by ensuring source handle opened with DELETE bit 2020-02-24 14:20:38 -06:00
smb2file.c cifs: allow unlock flock and OFD lock across fork 2020-03-22 22:49:09 -05:00
smb2glob.h
smb2inode.c cifs: fix rename() by ensuring source handle opened with DELETE bit 2020-02-24 14:20:38 -06:00
smb2maperror.c
smb2misc.c cifs: ignore cached share root handle closing errors 2020-04-07 12:40:40 -05:00
smb2ops.c cifs: fix uninitialised lease_key in open_shroot() 2020-04-22 20:29:11 -05:00
smb2pdu.c cifs: dump the session id and keys also for SMB2 sessions 2020-04-15 21:15:03 -05:00
smb2pdu.h cifs: smbd: Calculate the correct maximum packet size for segmented SMBDirect send/receive 2020-03-29 16:41:49 -05:00
smb2proto.h cifs: Allocate crypto structures on the fly for calculating signatures of incoming packets 2020-04-07 12:41:16 -05:00
smb2status.h
smb2transport.c smb3: remove overly noisy debug line in signing errors 2020-04-16 12:23:40 -05:00
smbdirect.c cifs: smbd: Do not schedule work to send immediate packet on every receive 2020-04-07 12:41:16 -05:00
smbdirect.h cifs: smbd: Do not schedule work to send immediate packet on every receive 2020-04-07 12:41:16 -05:00
smbencrypt.c
smberr.h
smbfsctl.h
trace.c
trace.h
transport.c cifs: Allocate encryption header through kmalloc 2020-03-29 16:42:54 -05:00
winucase.c
xattr.c