]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: prevent infinite recursion in CIFSGetDFSRefer()
authorPaulo Alcantara <pc@manguebit.com>
Wed, 29 Mar 2023 20:14:22 +0000 (17:14 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Apr 2023 10:10:50 +0000 (12:10 +0200)
commiteb94ea52afff7f0d4dfcb200ba45855fcf7986a3
treeaa77d5a9efcc042e8c8f51a347873b5d24212327
parentf8bdc959cefee58a1a17712f031bfcf3ea3e6ba1
cifs: prevent infinite recursion in CIFSGetDFSRefer()

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>
fs/cifs/cifssmb.c