linux/fs/cifs
Shyam Prasad N 212c79117f cifs: use tcon allocation functions even for dummy tcon
[ Upstream commit df57109bd5 ]

In smb2_reconnect_server, we allocate a dummy tcon for
calling reconnect for just the session. This should be
allocated using tconInfoAlloc, and not kmalloc.

Fixes: 3663c9045f ("cifs: check reconnects for channels of active tcons too")
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:33:25 +01:00
..
asn1.c
cached_dir.c cifs: drop the lease for cached directories on rmdir or rename 2022-10-19 17:57:41 -05:00
cached_dir.h cifs: drop the lease for cached directories on rmdir or rename 2022-10-19 17:57:41 -05:00
cifs_debug.c smb3: add dynamic trace points for tree disconnect 2022-10-05 01:31:18 -05:00
cifs_debug.h smb3: add dynamic trace points for tree disconnect 2022-10-05 01:31:18 -05:00
cifs_dfs_ref.c
cifs_fs_sb.h
cifs_ioctl.h smb3: improve SMB3 change notification support 2022-10-15 10:05:53 -05:00
cifs_spnego_negtokeninit.asn1
cifs_spnego.c
cifs_spnego.h
cifs_swn.c smb3: add dynamic trace points for tree disconnect 2022-10-05 01:31:18 -05:00
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c cifs: fix potential memory leaks in session setup 2023-02-01 08:34:32 +01:00
cifsfs.c cifs: fix missing display of three mount options 2023-01-07 11:11:50 +01:00
cifsfs.h cifs: update internal module number 2022-10-19 17:57:51 -05:00
cifsglob.h cifs: fix oops during encryption 2022-12-21 17:48:11 +01:00
cifspdu.h cifs: Replace a couple of one-element arrays with flexible-array members 2022-10-05 17:42:38 -05:00
cifsproto.h cifs: fix oops during encryption 2022-12-21 17:48:11 +01:00
cifsroot.c
cifssmb.c cifs: use ALIGN() and round_up() macros 2022-10-13 09:36:39 -05:00
connect.c use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
dfs_cache.c cifs: fix return of uninitialized rc in dfs_cache_update_tgthint() 2023-02-06 08:06:33 +01:00
dfs_cache.h
dir.c cifs: Fix xid leak in cifs_create() 2022-10-18 11:33:43 -05:00
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Fix use-after-free in rdata->read_into_pages() 2023-02-14 19:11:51 +01:00
fs_context.c cifs: replace kfree() with kfree_sensitive() for sensitive data 2022-10-07 23:06:48 -05:00
fs_context.h
fscache.c use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
fscache.h
inode.c cifs: reduce roundtrips on create/qinfo requests 2023-01-24 07:24:41 +01:00
ioctl.c cifs: Fix wrong return value checking when GETFLAGS 2022-11-16 00:21:04 -06:00
Kconfig
link.c cifs: Fix uninitialized memory read for smb311 posix symlink create 2023-01-18 11:58:14 +01:00
Makefile
misc.c cifs: reduce roundtrips on create/qinfo requests 2023-01-24 07:24:41 +01:00
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c cifs: improve symlink handling for smb2+ 2022-10-13 09:36:04 -05:00
rfc1002pdu.h
sess.c cifs: fix potential memory leaks in session setup 2023-02-01 08:34:32 +01:00
smb1ops.c cifs: fix file info setting in cifs_open_file() 2023-01-18 11:58:14 +01:00
smb2file.c cifs: don't leak -ENOMEM in smb2_open_file() 2022-12-31 13:32:56 +01:00
smb2glob.h
smb2inode.c cifs: reduce roundtrips on create/qinfo requests 2023-01-24 07:24:41 +01:00
smb2maperror.c
smb2misc.c cifs: avoid unnecessary iteration of tcp sessions 2022-11-04 23:34:40 -05:00
smb2ops.c use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
smb2pdu.c cifs: use tcon allocation functions even for dummy tcon 2023-03-10 09:33:25 +01:00
smb2pdu.h cifs: improve symlink handling for smb2+ 2022-10-13 09:36:04 -05:00
smb2proto.h smb3: improve SMB3 change notification support 2022-10-15 10:05:53 -05:00
smb2status.h
smb2transport.c cifs: avoid unnecessary iteration of tcp sessions 2022-11-04 23:34:40 -05:00
smbdirect.c cifs: Fix warning and UAF when destroy the MR list 2023-03-10 09:33:25 +01:00
smbdirect.h Decrease the number of SMB3 smbdirect client SGEs 2022-10-05 01:29:21 -05:00
smbencrypt.c
smberr.h
trace.c
trace.h smb3: add dynamic trace points for tree disconnect 2022-10-05 01:31:18 -05:00
transport.c use less confusing names for iov_iter direction initializers 2023-02-09 11:28:04 +01:00
unc.c
winucase.c
xattr.c