]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
cifs: prevent infinite recursion in CIFSGetDFSRefer()
authorPaulo Alcantara <pc@manguebit.com>
Wed, 29 Mar 2023 20:14:22 +0000 (17:14 -0300)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Wed, 17 May 2023 11:33:50 +0000 (13:33 +0200)
commit4475bee166be5fa172d59de88cc359f3ff8b155b
tree77b1c0936d92bcd89c3342ab0c3f6036a4dc5a5e
parente9e106c82b8015d2f88401c1c4cac2c0b7c488e7
cifs: prevent infinite recursion in CIFSGetDFSRefer()

BugLink: https://bugs.launchpad.net/bugs/2016878
commit 09ba47b44d26b475bbdf9c80db9e0193d2b58956 upstream.

We can't call smb_init() in CIFSGetDFSRefer() as cifs_reconnect_tcon()
may end up calling CIFSGetDFSRefer() again to get new DFS referrals
and thus causing an infinite recursion.

Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Cc: stable@vger.kernel.org # 6.2
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
fs/cifs/cifssmb.c