Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Jun 2016 08:41:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210316] panic after trying to r/w mount msdosfs on write protected media
Message-ID:  <bug-210316-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210316

            Bug ID: 210316
           Summary: panic after trying to r/w mount msdosfs on write
                    protected media
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: avg@FreeBSD.org

At first there were some error messages:
(da1:umass-sim0:0:0:1): WRITE(10). CDB: 2a 20 00 00 00 04 00 00 08 00
(da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI status: Check Condition
(da1:umass-sim0:0:0:1): SCSI sense: DATA PROTECT asc:27,0 (Write protected)
(da1:umass-sim0:0:0:1): Error 19, Unretryable error
g_vfs_done():da1s1[WRITE(offset=3D512, length=3D4096)]error =3D 19

(da1:umass-sim0:0:0:1): WRITE(10). CDB: 2a 20 00 00 00 04 00 00 08 00
(da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI status: Check Condition
(da1:umass-sim0:0:0:1): SCSI sense: DATA PROTECT asc:27,0 (Write protected)
(da1:umass-sim0:0:0:1): Error 19, Unretryable error
g_vfs_done():da1s1[WRITE(offset=3D512, length=3D4096)]error =3D 19

(da1:umass-sim0:0:0:1): WRITE(10). CDB: 2a 20 00 00 00 04 00 00 08 00
(da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI status: Check Condition
(da1:umass-sim0:0:0:1): SCSI sense: DATA PROTECT asc:27,0 (Write protected)
(da1:umass-sim0:0:0:1): Error 19, Unretryable error
g_vfs_done():da1s1[WRITE(offset=3D512, length=3D4096)]error =3D 19

fsync: giving up on dirty
0xfffff802c126c938: tag devfs, type VCHR
    usecount 1, writecount 0, refcount 9 mountedhere 0xfffff80168b65000
    flags (VI_ACTIVE)
    v_object 0xfffff8029ed6e318 ref 0 pages 6 cleanbuf 6 dirtybuf 1
    lock type devfs: UNLOCKED
        dev da1s1
(da1:umass-sim0:0:0:1): SYNCHRONIZE CACHE(10). CDB: 35 20 00 00 00 00 00 00=
 00
00
(da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
(da1:umass-sim0:0:0:1): SCSI status: Check Condition
(da1:umass-sim0:0:0:1): SCSI sense: DATA PROTECT asc:27,0 (Write protected)
(da1:umass-sim0:0:0:1): Error 19, Unretryable error
g_vfs_done():da1s1[WRITE(offset=3D512, length=3D4096)]error =3D 1

fsync: giving up on dirty
0xfffff802c126c938: tag devfs, type VCHR
    usecount 1, writecount 0, refcount 12 mountedhere 0xfffff80168b65000
    flags (VI_ACTIVE)
    v_object 0xfffff8029ed6e318 ref 0 pages 10 cleanbuf 9 dirtybuf 1
    lock type devfs: UNLOCKED
        dev da1s1


And then BOOM:

Fatal trap 9: general protection fault while in kernel mode
cpuid =3D 2; apic id =3D 02
instruction pointer     =3D 0x20:0xffffffff8061eb51
stack pointer           =3D 0x28:0xfffffe0517dff8a0
frame pointer           =3D 0x28:0xfffffe0517dff910
code segment            =3D base 0x0, limit 0xfffff, type 0x1b
                        =3D DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        =3D interrupt enabled, resume, IOPL =3D 0
current process         =3D 25 (syncer)
trap number             =3D 9
panic: general protection fault
cpuid =3D 2

KDB: stack backtrace:
db_trace_self_wrapper() at 0xffffffff80420f0b =3D
db_trace_self_wrapper+0x2b/frame
0xfffffe0517dff400
kdb_backtrace() at 0xffffffff80673439 =3D kdb_backtrace+0x39/frame
0xfffffe0517dff4b0
vpanic() at 0xffffffff8063c94c =3D vpanic+0x14c/frame 0xfffffe0517dff4f0
panic() at 0xffffffff8063c693 =3D panic+0x43/frame 0xfffffe0517dff550
trap_fatal() at 0xffffffff8083e99f =3D trap_fatal+0x33f/frame 0xfffffe0517d=
ff5b0
trap() at 0xffffffff8083e603 =3D trap+0x823/frame 0xfffffe0517dff7c0
trap_check() at 0xffffffff8083ecba =3D trap_check+0x2a/frame 0xfffffe0517df=
f7e0
calltrap() at 0xffffffff808273ea =3D calltrap+0x8/frame 0xfffffe0517dff7e0
--- trap 0x9, rip =3D 0xffffffff8061eb51, rsp =3D 0xfffffe0517dff8b0, rbp =
=3D
0xfffffe0517dff910 ---
__mtx_lock_flags() at 0xffffffff8061eb51 =3D __mtx_lock_flags+0x51/frame
0xfffffe0517dff910
g_vfs_strategy() at 0xffffffff805b8776 =3D g_vfs_strategy+0x36/frame
0xfffffe0517dff940
bstrategy() at 0xffffffff806cc946 =3D bstrategy+0x26/frame 0xfffffe0517dff9=
50
bufwrite() at 0xffffffff806cab2e =3D bufwrite+0x20e/frame 0xfffffe0517dff9b0
bwrite() at 0xffffffff806cd8f6 =3D bwrite+0x26/frame 0xfffffe0517dff9c0
bawrite() at 0xffffffff806cd3ad =3D bawrite+0xd/frame 0xfffffe0517dff9d0
vop_stdfsync() at 0xffffffff806d7660 =3D vop_stdfsync+0x1a0/frame
0xfffffe0517dffa20
devfs_fsync() at 0xffffffff80531d66 =3D devfs_fsync+0x26/frame 0xfffffe0517=
dffa50
VOP_FSYNC_APV() at 0xffffffff80884be0 =3D VOP_FSYNC_APV+0x120/frame
0xfffffe0517dffaa0
VOP_FSYNC() at 0xffffffff806e7d58 =3D VOP_FSYNC+0x28/frame 0xfffffe0517dffa=
d0
sync_vnode() at 0xffffffff806eb99d =3D sync_vnode+0x11d/frame 0xfffffe0517d=
ffb20
sched_sync() at 0xffffffff806eb63e =3D sched_sync+0x23e/frame 0xfffffe0517d=
ffb80
fork_exit() at 0xffffffff8060280f =3D fork_exit+0xdf/frame 0xfffffe0517dffb=
f0
fork_trampoline() at 0xffffffff8082791e =3D fork_trampoline+0xe/frame
0xfffffe0517dffbf0

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210316-8>