kern/94838: Kernel panic while mounting SD card with lock switch on

Alexey me at swizard.beercan.ru
Wed Mar 22 19:00:34 UTC 2006


>Number:         94838
>Category:       kern
>Synopsis:       Kernel panic while mounting SD card with lock switch on
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 22 19:00:27 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Alexey
>Release:        6.1-PRERELEASE
>Organization:
>Environment:
FreeBSD pstation.swizard.beercan.ru 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Mon Mar 20 23:06:22 MSK 2006     root at pstation.swizard.beercan.ru:/usr/obj/usr/src/sys/PSTATION61  i386

>Description:
Error "Permission denied" occurred when trying to mount SD card with lock switch set to "on" and then kernel panic and reboot after several seconds.

Card reader: generic 7-in-1 3" slot card reader
SD card: Transcend 45x
dmesg output:
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): UNIT ATTENTION csi:0,aa,55,61 asc:28,0
(da0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed field replaceable unit: 61
(da0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 0 0 0 0 ea 0 0 8 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): DATA PROTECT csi:0,aa,55,61 asc:27,0
(da0:umass-sim0:0:0:0): Write protected field replaceable unit: 61
(da0:umass-sim0:0:0:0): Unretryable error
g_vfs_done():da0s1[WRITE(offset=512, length=4096)]error = 13
(da0:umass-sim0:0:0:0): WRITE(10). CDB: 2a 0 0 0 0 ea 0 0 8 0
(da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da0:umass-sim0:0:0:0): SCSI Status: Check Condition
(da0:umass-sim0:0:0:0): DATA PROTECT csi:0,aa,55,61 asc:27,0
(da0:umass-sim0:0:0:0): Write protected field replaceable unit: 61
(da0:umass-sim0:0:0:0): Unretryable error
g_vfs_done():da0s1[WRITE(offset=512, length=4096)]error = 13
fsync: giving up on dirty
0xc5931000: tag devfs, type VCHR
    usecount 1, writecount 0, refcount 19 mountedhere 0xc4ecb800
    flags ()
    v_object 0xc58f24a4 ref 0 pages 16


>How-To-Repeat:
Insert SD card with lock switch set to "on" in card reader and then mount it with
# sudo mount_msdosfs /dev/da0s1 /mnt
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list