From owner-freebsd-bugs@freebsd.org Mon Jan 22 21:15:30 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BEF54ED636E for ; Mon, 22 Jan 2018 21:15:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A65EA6F63F for ; Mon, 22 Jan 2018 21:15:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 82A06196EA for ; Mon, 22 Jan 2018 21:15:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0MLFUd2029569 for ; Mon, 22 Jan 2018 21:15:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0MLFURA029568 for freebsd-bugs@FreeBSD.org; Mon, 22 Jan 2018 21:15:30 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225389] mount_msdosfs: msdosfs_iconv: Operation not permitted Date: Mon, 22 Jan 2018 21:15:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aeuii@posteo.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jan 2018 21:15:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225389 Bug ID: 225389 Summary: mount_msdosfs: msdosfs_iconv: Operation not permitted Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: aeuii@posteo.de "mount_msdosfs: msdosfs_iconv: Operation not permitted" occurs when mounting mounting msdosfs with flags "-L=3Den_GB.UTF-8". I confirmed can confirm it on 11.1-RELEASE-p6 and in a VirtualBox using FreeBSD-11.1-RELEASE-amd64.vhd image. Environment and steps to reproduce: % uname -a FreeBSD myhost 11.1-RELEASE-p4 FreeBSD 11.1-RELEASE-p4 #0: Tue Nov 14 06:12= :40 UTC 2017 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI= C=20 amd64 % locale LANG=3Den_GB.UTF-8 LC_CTYPE=3D"en_GB.UTF-8" LC_COLLATE=3D"en_GB.UTF-8" LC_TIME=3D"en_GB.UTF-8" LC_NUMERIC=3D"en_GB.UTF-8" LC_MONETARY=3D"en_GB.UTF-8" LC_MESSAGES=3D"en_GB.UTF-8" LC_ALL=3Den_GB.UTF-8 % cat /boot/loader.conf | grep iconv msdosfs_iconv_load=3D"YES" libiconv_load=3D"YES" % cat /etc/fstab | grep UTF-8 /dev/da1 /home/myuser/mnt/u0 msdosfs rw,noauto,noexec,-L=3Den_GB.UTF-8,-m=3D600,-M=3D700 0 0 /dev/da1s1 /home/myuser/mnt/u1 msdosfs rw,noauto,noexec,-L=3Den_GB.UTF-8,-m=3D600,-M=3D700 0 0 % sysctl vfs.usermount vfs.usermount: 1 % cat /etc/rc.conf | grep kiconv kiconv_preload=3D"YES" kiconv_local_charset=3D"UTF-8" kiconv_foreign_charset=3D"UTF-16BE UTF-8" kiconv_fstypes=3D"msdosfs" % pkg info|grep kiconv kiconvtool-0.98 Tool to preload kernel iconv charset tables ** initially loaded tables % kiconvtool -d UTF-8 -> UTF-16BE UTF-16BE -> UTF-8 ** try to mount as a regular user % mount /home/user/mnt/u1 mount_msdosfs: msdosfs_iconv: Operation not permitted ** mount fs as root # mount /home/user/mnt/u1 # umount /home/user/mnt/u1 ** tables after root mounted the fs % kiconvtool -d UTF-8 -> UTF-16BE UTF-16BE -> UTF-8 UTF-8 -> _wctype ** now a regular user can mount too % mount /home/user/mnt/u1 --=20 You are receiving this mail because: You are the assignee for the bug.=