]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
5.15-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Dec 2022 08:10:31 +0000 (09:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Dec 2022 08:10:31 +0000 (09:10 +0100)
added patches:
cifs-fix-missed-refcounting-of-ipc-tcon.patch

queue-5.15/cifs-fix-missed-refcounting-of-ipc-tcon.patch [new file with mode: 0644]
queue-5.15/series

diff --git a/queue-5.15/cifs-fix-missed-refcounting-of-ipc-tcon.patch b/queue-5.15/cifs-fix-missed-refcounting-of-ipc-tcon.patch
new file mode 100644 (file)
index 0000000..5ad1006
--- /dev/null
@@ -0,0 +1,34 @@
+From 65de262a209da0951eb9bc60b3b7faf3bbffa38a Mon Sep 17 00:00:00 2001
+From: Paulo Alcantara <pc@cjr.nz>
+Date: Thu, 2 Dec 2021 15:29:35 -0300
+Subject: cifs: fix missed refcounting of ipc tcon
+
+From: Paulo Alcantara <pc@cjr.nz>
+
+commit 65de262a209da0951eb9bc60b3b7faf3bbffa38a upstream.
+
+Fix missed refcounting of IPC tcon used for getting domain-based DFS
+root referrals.  We want to keep it alive as long as mount is active
+and can be refreshed.  For standalone DFS root referrals it wouldn't
+be a problem as the client ends up having an IPC tcon for both mount
+and cache.
+
+Fixes: c88f7dcd6d64 ("cifs: support nested dfs links over reconnect")
+Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
+Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
+Signed-off-by: Steve French <stfrench@microsoft.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ fs/cifs/connect.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/fs/cifs/connect.c
++++ b/fs/cifs/connect.c
+@@ -3390,6 +3390,7 @@ static int connect_dfs_root(struct mount
+        */
+       mount_put_conns(mnt_ctx);
+       mount_get_dfs_conns(mnt_ctx);
++      set_root_ses(mnt_ctx);
+       full_path = build_unc_path_to_root(ctx, cifs_sb, true);
+       if (IS_ERR(full_path))
index 1ab254277f92fe10b10a9274ad3d096496ee5314..9618de157524db59a9be163f793960bfe70a1eaf 100644 (file)
@@ -203,3 +203,4 @@ drm-amd-display-no-display-after-resume-from-wb-cb.patch
 drm-amdgpu-enable-aldebaran-devices-to-report-cu-occupancy.patch
 drm-amdgpu-always-register-an-mmu-notifier-for-userptr.patch
 drm-i915-fix-tlb-invalidation-for-gen12-video-and-compute-engines.patch
+cifs-fix-missed-refcounting-of-ipc-tcon.patch