diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-04-25 02:42:56 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-05-03 23:29:05 -0500 |
commit | ee20d7c6100752eaf2409d783f4f1449c29ea33d (patch) | |
tree | 07cce2dd6a63495b59f17b520a8d0ed490c5e169 /lib/crypto/mpi/mpi-add.c | |
parent | 90c49fce1c43e1cc152695e20363ff5087897c09 (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 'lib/crypto/mpi/mpi-add.c')
0 files changed, 0 insertions, 0 deletions