[Bug 214597] [panic] Fatal trap 9 while mounting SD card with lock switch on

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Nov 17 06:07:40 UTC 2016


            Bug ID: 214597
           Summary: [panic] Fatal trap 9 while mounting SD card with lock
                    switch on
           Product: Base System
           Version: 11.0-STABLE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: felix.the.red at gmail.com
                CC: freebsd-amd64 at FreeBSD.org
                CC: freebsd-amd64 at FreeBSD.org

Created attachment 177106
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=177106&action=edit
Screencap of fatal trap 9

While trying to mount an SD card with the lock switch on (very much like PR
94838), I get a kernel panic and fatal trap 9. The difference with this PR is
that they were running on 6.1-PRERELEASE, whereas I am running on 11.0-RELEASE
(p2), so the condition either wasn't fixed or was reintroduced.

I insert the SD card and the console shows:

ugen0.7: <Generic> at usbus0
umass1: <Bulk-In, Bulk-Out, Interface> on usbus0
umass1:  SCSI over Bulk-Only; quirks = 0x4000
umass1:2:1: Attached to scbus2
da1 at umass-sim1 bus 1 scbus2 target 0 lun 0
da1: <Generic- SD/MMC/MS PRO 1.00> Removable Direct Access SPC-2 SCSI device
da1: Serial Number 20121112761000000
da1: 40.000MB/s transfers

When I try to mount the SD card with
mount -t msdosfs /dev/da1s1 /mnt

I get:
Fatal trap 9: general protection fault while in kernel mode
cpuid = 1; apic id = 01

I'm not going to type out the panic information - I took a photo of it and
it's attached to this PR.

I can reliably reproduce this by inserting the SD card with the physical 
write protect set, trying to mount it (which fails), and then either (1) trying
to unmount the device or (2) removing the SD card.

I'm running on:
FreeBSD laptop 11.0-RELEASE-p2 FreeBSD 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27
UTC 2016     root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC 

I have the core files, if that helps.

I also have a few KLDs loaded:

I'm willing to help troubleshoot, just let me know what you need.

You are receiving this mail because:
You are on the CC list for the bug.

More information about the freebsd-amd64 mailing list