Bug 2162655 - Non UTF8 character displayed in /proc/mounts when a SMB3 share is mounted with iso8859-1 charset
Summary: Non UTF8 character displayed in /proc/mounts when a SMB3 share is mounted wit...
Keywords:
Status: ASSIGNED
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: kernel
Version: 8.7
Hardware: All
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Red Hat Kernel Manager
QA Contact: xiaoli feng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-20 12:11 UTC by Renaud Métrich
Modified: 2023-08-09 14:32 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHELPLAN-145890 0 None None None 2023-01-20 12:13:48 UTC

Description Renaud Métrich 2023-01-20 12:11:29 UTC
Description of problem:

We have a customer mounting SMB3 share hosted on a NetApp appliance (no details on appliance yet).
In order to mount the share, he has to use the "iocharset=iso8859-1" option.
The share contains non-ascii character "U Umlaut" (ü) in its name, which leads to having /proc/mounts displays the mount badly (see "umlaut_xxx�xxx"):
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------
//netapp.server/path/to/share/containing/umlaut_xxx�xxx /mount/point cifs rw,relatime,vers=3.0,xxx,iocharset=iso8859-1,xxx 0 0
-------- 8< ---------------- 8< ---------------- 8< ---------------- 8< --------

This is an issue for systemd, which reads the information and sends it through DBus directly, causing non-UTF8 messages to be sent and later DBus to complain/fail.

I understand that something has to be done on systemd side to avoid breakage, but I think this should be handled at /proc/mounts level already.

Version-Release number of selected component (if applicable):

All kernel including kernel-4.18.0-425.3.1.el8.x86_64.
Was also seen on RHEL7 kernel.

How reproducible:

Always on customer system with NetApp appliance.
Cannot reproduce internally (tried Windows & Linux smb server)


Note You need to log in before you can comment on or make changes to this bug.