]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: protect access of TCP_Server_Info::{origin,leaf}_fullpath
authorPaulo Alcantara <pc@manguebit.com>
Wed, 26 Apr 2023 16:43:53 +0000 (13:43 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 May 2023 14:11:36 +0000 (23:11 +0900)
commit6dbd709df900f80f687737954b2b8298c48c6747
tree12a71f57002e2d5fe5e53797ef683a7e325e36e4
parent536ec71ba060a02fabe8e22cecb82fe7b3a8708b
cifs: protect access of TCP_Server_Info::{origin,leaf}_fullpath

commit 3dc9c433c9dde15477d02b609ccb4328e2adb6dc upstream.

Protect access of TCP_Server_Info::{origin,leaf}_fullpath when
matching DFS connections, and get rid of
TCP_Server_Info::current_fullpath while we're at it.

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>
fs/cifs/cifsglob.h
fs/cifs/connect.c
fs/cifs/dfs.c
fs/cifs/dfs.h
fs/cifs/dfs_cache.c