]> git.baikalelectronics.ru Git - kernel.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>
Wed, 5 Apr 2023 09:16:45 +0000 (11:16 +0200)
commit4f779debe5054d48683f908a2ed5c96e5ffdea61
tree8157775ce7376c976cf43eb53ead462560e51891
parent2b2351148bd740c48c9172d8e1bd9fb2615a10e7
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