]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Compare prepaths when comparing superblocks
authorSachin Prabhu <sprabhu@redhat.com>
Fri, 29 Jul 2016 21:38:20 +0000 (22:38 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Oct 2017 14:28:21 +0000 (15:28 +0100)
commitf204fa8b8d4809edc87cf137ba684fbfd03b7c1c
treef23a169dc65ed23459c705a7cc7735316c31ea78
parent5726cde9e952226754e150b999441a6cdd6d566e
Compare prepaths when comparing superblocks

commit c1d8b24d18192764fe82067ec6aa8d4c3bf094e0 upstream.

The patch
fs/cifs: make share unaccessible at root level mountable
makes use of prepaths when any component of the underlying path is
inaccessible.

When mounting 2 separate shares having different prepaths but are other
wise similar in other respects, we end up sharing superblocks when we
shouldn't be doing so.

Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
Tested-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/cifs/connect.c