]> www.infradead.org Git - users/dwmw2/linux.git/commit
smb: client: fix potential race in cifs_put_tcon()
authorPaulo Alcantara <pc@manguebit.com>
Fri, 6 Dec 2024 14:49:07 +0000 (11:49 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 6 Dec 2024 15:14:38 +0000 (09:14 -0600)
commitc32b624fa4f7ca5a2ff217a0b1b2f1352bb4ec11
tree97df1da711dcdd53dae3292bdafbbc5d2d34564f
parentddca5023091588eb303e3c0097d95c325992d05f
smb: client: fix potential race in cifs_put_tcon()

dfs_cache_refresh() delayed worker could race with cifs_put_tcon(), so
make sure to call list_replace_init() on @tcon->dfs_ses_list after
kworker is cancelled or finished.

Fixes: 4f42a8b54b5c ("smb: client: fix DFS interlink failover")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/connect.c