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:11:36 +0900 |
commit | 536ec71ba060a02fabe8e22cecb82fe7b3a8708b (patch) | |
tree | d3f6ab6ab77a1633f2f98899c1e3c0ffc8150381 /lib/debugobjects.c | |
parent | f30d226bcc9f0e2d97b4a6e94c43a28148fbeab6 (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