On 01/14, Eugene Korenevsky wrote:
Windows SMB server responds with STATUS_OBJECT_NAME_INVALID code to SMB2 QUERY_INFO request for "\<server>\<dfsname>\<linkpath>" DFS reference, where <dfsname> contains non-ASCII unicode symbols. Check such DFS reference and emulate -EREMOTE if it is actual. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=215440 Signed-off-by: Eugene Korenevsky <ekorenevsky@xxxxxxxxxxxxx>
The patch fixes the initial issue (mount and listing files) as per reported in the mentioned bugzilla, but it still fails to create files: % echo "test" | sudo tee myfile tee: myfile: No such file or directory test % dmesg ... [20510.826644] CIFS: fs/cifs/dfs_cache.c: cache_refresh_path: search path: \w19-addc.mori.test\дфс\test [20510.826653] CIFS: fs/cifs/dfs_cache.c: get_dfs_referral: get an DFS referral for \w19-addc.mori.test\дфс\test [45/504] [20510.826658] CIFS: fs/cifs/smb2ops.c: smb2_get_dfs_refer: path: \w19-addc.mori.test\дфс\test [20510.826665] CIFS: fs/cifs/smb2pdu.c: SMB2 IOCTL [20510.826670] CIFS: fs/cifs/transport.c: wait_for_free_credits: remove 1 credits total=577 [20510.826690] CIFS: fs/cifs/transport.c: Sending smb: smb_len=184 [20510.828315] CIFS: fs/cifs/connect.c: RFC1002 header 0x12a [20510.828331] CIFS: fs/cifs/smb2misc.c: SMB2 data length 186 offset 112 [20510.828336] CIFS: fs/cifs/smb2misc.c: SMB2 len 298 [20510.828342] CIFS: fs/cifs/smb2ops.c: smb2_add_credits: added 10 credits total=587 [20510.828364] CIFS: fs/cifs/transport.c: cifs_sync_mid_result: cmd=11 mid=41 state=4 [20510.828397] CIFS: fs/cifs/misc.c: Null buffer passed to cifs_small_buf_release [20510.828406] CIFS: fs/cifs/misc.c: num_referrals: 1 dfs flags: 0x3 ... [20510.828432] CIFS: fs/cifs/misc.c: DFS ref '\w19-addc.mori.test\дфс\test' is not found, emulate -ENOENT ... Cheers, Enzo