From owner-freebsd-amd64@freebsd.org Thu Nov 17 06:07:40 2016 Return-Path: Delivered-To: freebsd-amd64@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 646AEC46B87 for ; Thu, 17 Nov 2016 06:07:40 +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 4AB7EA6E for ; Thu, 17 Nov 2016 06:07:40 +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 uAH67e8A068580 for ; Thu, 17 Nov 2016 06:07:40 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 214597] [panic] Fatal trap 9 while mounting SD card with lock switch on Date: Thu, 17 Nov 2016 06:07:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: felix.the.red@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: 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-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Nov 2016 06:07:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214597 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@FreeBSD.org Reporter: felix.the.red@gmail.com CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Created attachment 177106 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D177106&action= =3Dedit 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-RELE= ASE (p2), so the condition either wasn't fixed or was reintroduced. I insert the SD card and the console shows: ugen0.7: at usbus0 umass1: on usbus0 umass1: SCSI over Bulk-Only; quirks =3D 0x4000 umass1:2:1: Attached to scbus2 da1 at umass-sim1 bus 1 scbus2 target 0 lun 0 da1: 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 =3D 1; apic id =3D 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=20 write protect set, trying to mount it (which fails), and then either (1) tr= ying 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@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERI= C=20 amd64 I have the core files, if that helps. I also have a few KLDs loaded: kern.vty=3Dvt fuse_load=3D"YES" vboxdrv_load=3D"YES" atapicam_load=3D"YES" I'm willing to help troubleshoot, just let me know what you need. --=20 You are receiving this mail because: You are on the CC list for the bug.=