All of lore.kernel.org
 help / color / mirror / Atom feed
From: Enzo Matsumiya <ematsumiya@suse.de>
To: Eugene Korenevsky <ekorenevsky@astralinux.ru>
Cc: linux-cifs@vger.kernel.org, Steve French <sfrench@samba.org>
Subject: Re: [PATCH v2 2/2] cifs: quirk for STATUS_OBJECT_NAME_INVALID returned for non-ASCII dfs refs
Date: Mon, 17 Jan 2022 18:14:05 -0300	[thread overview]
Message-ID: <20220117211305.ambdxok747u6kwlm@cyberdelia> (raw)
In-Reply-To: <YeHUxJ9zTVNrKveF@himera.home>

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@astralinux.ru>

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

  parent reply	other threads:[~2022-01-17 21:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-14 19:53 [PATCH v2 2/2] cifs: quirk for STATUS_OBJECT_NAME_INVALID returned for non-ASCII dfs refs Eugene Korenevsky
2022-01-17 19:33 ` Steve French
2022-01-17 21:14 ` Enzo Matsumiya [this message]
2022-01-18 17:24   ` Eugene Korenevsky
2022-01-20 19:18     ` Steve French

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220117211305.ambdxok747u6kwlm@cyberdelia \
    --to=ematsumiya@suse.de \
    --cc=ekorenevsky@astralinux.ru \
    --cc=linux-cifs@vger.kernel.org \
    --cc=sfrench@samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.