From: Paulo Alcantara <pc@manguebit.org>
To: Fredric Cover <fredric.cover.lkernel@gmail.com>,
Namjae Jeon <linkinjeon@kernel.org>
Cc: ChenXiaoSong <chenxiaosong@chenxiaosong.com>,
Tom Talpey <tom@talpey.com>,
Ronnie Sahlberg <ronniesahlberg@gmail.com>,
Shyam Prasad N <sprasad@microsoft.com>,
Bharath SM <bharathsm@microsoft.com>,
linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org,
Fredric Cover <fredric.cover.lkernel@gmail.com>,
stable@vger.kernel.org
Subject: Re: [PATCH] smb: client: convert DFS target node name from cache charset on mount
Date: Thu, 26 Nov 2026 09:15:27 -0300 [thread overview]
Message-ID: <4be99f8a4f81c454f52165a0f5c793a2@manguebit.org> (raw)
In-Reply-To: <20261122045841.99012-1-fredric.cover.lkernel@gmail.com>
Fredric Cover <fredric.cover.lkernel@gmail.com> writes:
> parse_dfs_target() converts @path_consumed to the mount charset using
> dfs_consumed_to_local(), but @ref->node_name from the DFS referral cache
> is still encoded in UTF-8 (cache_cp).
>
> In dfs_parse_target_referral(), passing @ref->node_name directly to
> cifs_build_devname() and smb3_parse_devname() copies UTF-8 bytes into
> ctx->UNC and ctx->prepath (and mixes encodings when @prepath from
> @full_path is also non-empty). On mounts using a non-UTF-8 iocharset
> such as iso8859-1, subsequent path checks re-encode these strings to
> UTF-16LE using local_nls, corrupting non-ASCII characters on the wire
> and causing initial mount to fail with -ENOENT.
>
> Convert @ref->node_name from cache_cp to ctx->local_nls with
> dfs_cache_local_path() before building the device name so ctx->UNC and
> ctx->prepath stay in the mount charset.
> ...
Applied.
prev parent reply other threads:[~2026-11-26 12:15 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-22 4:58 Fredric Cover
2026-11-22 10:54 ` kernel test robot
2026-11-22 11:07 ` kernel test robot
2026-11-22 11:50 ` kernel test robot
2026-11-22 16:24 ` Fredric Cover
2026-11-26 12:15 ` Paulo Alcantara [this message]
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=4be99f8a4f81c454f52165a0f5c793a2@manguebit.org \
--to=pc@manguebit.org \
--cc=bharathsm@microsoft.com \
--cc=chenxiaosong@chenxiaosong.com \
--cc=fredric.cover.lkernel@gmail.com \
--cc=linkinjeon@kernel.org \
--cc=linux-cifs@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=ronniesahlberg@gmail.com \
--cc=sprasad@microsoft.com \
--cc=stable@vger.kernel.org \
--cc=tom@talpey.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®