From owner-freebsd-fs@freebsd.org Mon Apr 30 06:49:45 2018 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B4F56FC573D for ; Mon, 30 Apr 2018 06:49:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 4BD166EF25 for ; Mon, 30 Apr 2018 06:49:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 05B0CFC573C; Mon, 30 Apr 2018 06:49:45 +0000 (UTC) Delivered-To: fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E7720FC573A for ; Mon, 30 Apr 2018 06:49:44 +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 84A9A6EF23 for ; Mon, 30 Apr 2018 06:49:44 +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 832BE243C6 for ; Mon, 30 Apr 2018 06:49:43 +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 w3U6nhQi067423 for ; Mon, 30 Apr 2018 06:49:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3U6nhGi067422 for fs@FreeBSD.org; Mon, 30 Apr 2018 06:49:43 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: fs@FreeBSD.org Subject: [Bug 210316] panic after trying to r/w mount msdosfs on write protected media Date: Mon, 30 Apr 2018 06:49:41 +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: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: damjan.jov@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@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-fs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Apr 2018 06:49:45 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210316 --- Comment #6 from Damjan Jovanovic --- Repeating that test with UFS (newfs -U -j) also freezes the system, so sadly msdosfs is not the only filesystem affected. Using the ext2fs driver on a read-only EXT3 filesystem however works, print= ing some errors in dmesg: g_vfs_done():ggate0[WRITE(offset=3D1024, length=3D1024)]error =3D 1 g_vfs_done():ggate0[WRITE(offset=3D1024, length=3D1024)]error =3D 1 g_vfs_done():ggate0[WRITE(offset=3D2048, length=3D1024)]error =3D 1 g_vfs_done():ggate0[WRITE(offset=3D268288, length=3D1024)]error =3D 1 g_vfs_done():ggate0[WRITE(offset=3D268288, length=3D1024)]error =3D 1 but it mounts successfully, denies writes with EPERM, and doesn't crash. Unmounting however fails, with this ominous error: fsync: giving up on dirty (error =3D 1) 0xfffff801df6a45a0: tag devfs, type= VCHR usecount 1, writecount 0, refcount 7 rdev 0xfffff800d1092800 flags (VI_ACTIVE) v_object 0xfffff80146eb3900 ref 0 pages 2 cleanbuf 1 dirtybuf 4 lock type devfs: EXCL by thread 0xfffff800d1017000 (pid 1494, umount, t= id 100515) dev ggate0 but still no crash. --=20 You are receiving this mail because: You are the assignee for the bug.=