From owner-freebsd-bugs@freebsd.org Wed Oct 18 14:39:55 2017 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 44F36E3AB6A for ; Wed, 18 Oct 2017 14:39:55 +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 mx1.freebsd.org (Postfix) with ESMTPS id 3394680010 for ; Wed, 18 Oct 2017 14:39:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9IEdtWg051094 for ; Wed, 18 Oct 2017 14:39:55 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 199152] msdosfs writes on umount to readonly mounted fs Date: Wed, 18 Oct 2017 14:39:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 10.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: longwitz@incore.de X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2017 14:39:55 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D199152 --- Comment #8 from longwitz@incore.de --- Seen in FreeBSD 10.3-STABLE r317782:=20 1. The problem with the first failing umount on a readonly mounted partitio= n is solved by commit 281457. 2. There is probably in issue with mount -r /mydosfs, it is a little bit suprising that the bit FSIMOD is set on a readonly mount. That is the reason for the failing first umount in absence of the patch mentioned above. The backtrace for this situation is included in the output of a DTrace script: 1 4751 msdosfs_mount:entry called with mnt_flag=3D0x1 1 18090 mountmsdosfs:entry called with mnt_flag=3D0x1 1 15625 fillinusemap:entry called with pm_flags=3D0x20000000, pm_maxcluster=3D98305, pm_inusemap=3Dfffffe0003e5b000 1 18456 usemap_free:entry called with pm_flags=3D0x20000000, pm_maxcluster=3D98305 and cn=3D67 kernel`fillinusemap+0x16d kernel`mountmsdosfs+0x9be kernel`msdosfs_mount+0x66a kernel`vfs_donmount+0xf50 kernel`sys_nmount+0x71 kernel`amd64_syscall+0x452 kernel`0xffffffff807f364b 1 18457 usemap_free:return returned with pm_flags=3D0x21000000 1 15626 fillinusemap:return returncode=3D0, pm_flags=3D0x21000000, pm_maxcluster=3D98305, pm_inusemap=3Dfffffe0003e5b000 1 18091 mountmsdosfs:return returncode=3D0, mnt_flag=3D0x1001, pm_flags=3D0xa1000000, pm_inusemap=3Dfffffe0003e5b000 1 4752 msdosfs_mount:return returncode=3D0 FSIMOD (=3D0x1000000) is set on call number 67 in usemap_free(). 3. To compile the kernel with MSDOSFS_DEBUG some patches are nesessary. --=20 You are receiving this mail because: You are the assignee for the bug.=