Patch "Fix regression which breaks DFS mounting" has been added to the 4.8-stable tree
This is a note to let you know that I've just added the patch titled
Fix regression which breaks DFS mounting
to the 4.8-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
fix-regression-which-breaks-dfs-mounting.patch
and it can be found in the queue-4.8 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
d171356ff11ab1825e456dfb979755e01b3c54a1Mon Sep 17 00:00:00 2001
From: Sachin Prabhu <[email protected]>
Date: Tue, 6 Sep 2016 13:22:34 +0100
Subject: Fix regression which breaks DFS mounting
From: Sachin Prabhu <[email protected]>
commit d171356ff11ab1825e456dfb979755e01b3c54a1 upstream.
Patch a6b5058 results in -EREMOTE returned by is_path_accessible() in cifs_mount() to be ignored which breaks DFS mounting.
--- fs/cifs/connect.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-)
fs/cifs/connect.c +8 -6
@@ -3688,14 +3688,16 @@ remote_path_check: goto mount_fail_check; } - rc =cifs_are_all_path_components_accessible (server, +if (rc != -EREMOTE ) { + rc =cifs_are_all_path_components_accessible (server, xid, tcon, cifs_sb, full_path); -if (rc !=0 ) { -cifs_dbg (VFS ,"cannot query dirs between root and final path, " -"enabling CIFS_MOUNT_USE_PREFIX_PATH\n" ); - cifs_sb->mnt_cifs_flags |=CIFS_MOUNT_USE_PREFIX_PATH ; - rc =0 ; +if (rc !=0 ) { +cifs_dbg (VFS ,"cannot query dirs between root and final path, " +"enabling CIFS_MOUNT_USE_PREFIX_PATH\n" ); + cifs_sb->mnt_cifs_flags |=CIFS_MOUNT_USE_PREFIX_PATH ; + rc =0 ; + } }kfree (full_path); }
Patches currently in stable-queue which might be from [email protected] are
queue-4.8/fix-regression-which-breaks-dfs-mounting.patch queue-4.8/cleanup-missing-frees-on-some-ioctls.patch