smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect() 6.9-rc2-smb3-client-fixes
authorPaulo Alcantara <pc@manguebit.com>
Tue, 2 Apr 2024 19:34:04 +0000 (16:34 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 3 Apr 2024 19:45:15 +0000 (14:45 -0500)
commite0e50401cc3921c9eaf1b0e667db174519ea939f
tree551759339d123f9b5c149d69cd10cd842a10c40a
parent63981561ffd2d4987807df4126f96a11e18b0c1d
smb: client: fix potential UAF in cifs_signal_cifsd_for_reconnect()

Skip sessions that are being teared down (status == SES_EXITING) to
avoid UAF.

Cc: stable@vger.kernel.org
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c