]> git.itanic.dy.fi Git - linux-stable/commit
smb: client: handle DFS tcons in cifs_construct_tcon()
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 01:44:08 +0000 (22:44 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Apr 2024 14:38:20 +0000 (16:38 +0200)
commite2cce9c3b5c8c9ef58d04061f9e3a776bd801b08
tree0145c1f507786954670ad2dfec6ebddebaca6816
parent6c8411172a34738ae36acb92cbe096c6cbf30fcf
smb: client: handle DFS tcons in cifs_construct_tcon()

commit 4a5ba0e0bfe552ac7451f57e304f6343c3d87f89 upstream.

The tcons created by cifs_construct_tcon() on multiuser mounts must
also be able to failover and refresh DFS referrals, so set the
appropriate fields in order to get a full DFS tcon.  They could be
shared among different superblocks later, too.

Cc: stable@vger.kernel.org # 6.4+
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202404021518.3Xu2VU4s-lkp@intel.com/
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/connect.c