summaryrefslogtreecommitdiff
path: root/fs/cifs/dfs_cache.c
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.com>2023-04-25 02:42:56 -0300
committerSteve French <stfrench@microsoft.com>2023-05-03 23:29:05 -0500
commitee20d7c6100752eaf2409d783f4f1449c29ea33d (patch)
tree07cce2dd6a63495b59f17b520a8d0ed490c5e169 /fs/cifs/dfs_cache.c
parent90c49fce1c43e1cc152695e20363ff5087897c09 (diff)
cifs: fix potential race when tree connecting ipc
Protect access of TCP_Server_Info::hostname when building the ipc tree name as it might get freed in cifsd thread and thus causing an use-after-free bug in __tree_connect_dfs_target(). Also, while at it, update status of IPC tcon on success and then avoid any extra tree connects. Cc: stable@vger.kernel.org # v6.2+ Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/dfs_cache.c')
0 files changed, 0 insertions, 0 deletions