diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-02-28 19:01:54 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-03-01 18:18:25 -0600 |
commit | b9ee2e307c6b06384b6f9e393a9b8e048e8fc277 (patch) | |
tree | 56eddce76ca31f3fa8fb2fbe26a300e9bd80f38d /io_uring | |
parent | 4c0421fa6df136ff869a078594b4b7b7637e566a (diff) |
cifs: improve checking of DFS links over STATUS_OBJECT_NAME_INVALID
Do not map STATUS_OBJECT_NAME_INVALID to -EREMOTE under non-DFS
shares, or 'nodfs' mounts or CONFIG_CIFS_DFS_UPCALL=n builds.
Otherwise, in the slow path, get a referral to figure out whether it
is an actual DFS link.
This could be simply reproduced under a non-DFS share by running the
following
$ mount.cifs //srv/share /mnt -o ...
$ cat /mnt/$(printf '\U110000')
cat: '/mnt/'$'\364\220\200\200': Object is remote
Fixes: c877ce47e137 ("cifs: reduce roundtrips on create/qinfo requests")
CC: stable@vger.kernel.org # 6.2
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'io_uring')
0 files changed, 0 insertions, 0 deletions