diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-04-25 02:42:56 -0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-05-11 23:17:38 +0900 |
commit | 553476df55a111e6a66ad9155256aec0ec1b7ad0 (patch) | |
tree | 08eddfbfbeaa424f78d21459ae5b6e0c2cc8e087 /lib/debugobjects.c | |
parent | c082c3be0f96e759ff2e361d929832fda0b93851 (diff) |
cifs: fix potential race when tree connecting ipc
commit ee20d7c6100752eaf2409d783f4f1449c29ea33d upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions