Home
last modified time | relevance | path

Searched hist:bf99f6be2d20146942bce6f9e90a0ceef12cbc1e (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/fs/smb/client/
H A Dsmb2transport.cdiff bf99f6be2d20146942bce6f9e90a0ceef12cbc1e Tue Jul 11 12:15:10 CDT 2023 Paulo Alcantara <pc@manguebit.com> smb: client: fix missed ses refcounting

Use new cifs_smb_ses_inc_refcount() helper to get an active reference
of @ses and @ses->dfs_root_ses (if set). This will prevent
@ses->dfs_root_ses of being put in the next call to cifs_put_smb_ses()
and thus potentially causing an use-after-free bug.

Fixes: 8e3554150d6c ("cifs: fix sharing of DFS connections")
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
H A Ddfs.cdiff bf99f6be2d20146942bce6f9e90a0ceef12cbc1e Tue Jul 11 12:15:10 CDT 2023 Paulo Alcantara <pc@manguebit.com> smb: client: fix missed ses refcounting

Use new cifs_smb_ses_inc_refcount() helper to get an active reference
of @ses and @ses->dfs_root_ses (if set). This will prevent
@ses->dfs_root_ses of being put in the next call to cifs_put_smb_ses()
and thus potentially causing an use-after-free bug.

Fixes: 8e3554150d6c ("cifs: fix sharing of DFS connections")
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>