From owner-freebsd-bugs@freebsd.org Thu May 4 23:02:39 2017 Return-Path: Delivered-To: freebsd-bugs@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 EF3A6D5EBC1 for ; Thu, 4 May 2017 23:02:39 +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 D583F1AEF for ; Thu, 4 May 2017 23:02:39 +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 v44N2dGp019013 for ; Thu, 4 May 2017 23:02:39 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 219074] panic on cd insert Date: Thu, 04 May 2017 23:02:39 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: smh@FreeBSD.org 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 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-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 May 2017 23:02:40 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D219074 Bug ID: 219074 Summary: panic on cd insert Product: Base System Version: 11.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: smh@FreeBSD.org When inserting a cdrom on a supermicro IPMI I got the following panic: Fatal trap 9: general protection fault while in kernel mode cpuid =3D 23; apic id =3D 2b instruction pointer =3D 0x20:0xffffffff80304f65 stack pointer =3D 0x28:0xfffffe0f9452d640 frame pointer =3D 0x28:0xfffffe0f9452d6e0 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 13 (g_event) trap number =3D 9 panic: general protection fault cpuid =3D 23 KDB: stack backtrace: #0 0xffffffff807d80f7 at kdb_backtrace+0x67 #1 0xffffffff8078d4a2 at vpanic+0x182 #2 0xffffffff8078d313 at panic+0x43 #3 0xffffffff80a97d81 at trap_fatal+0x351 #4 0xffffffff80a97a18 at trap+0x768 #5 0xffffffff80a7af41 at calltrap+0x8 #6 0xffffffff802fe682 at cdopen+0x212 #7 0xffffffff806f2225 at g_disk_access+0xc5 #8 0xffffffff806f800e at g_access+0x17e #9 0xffffffff806f800e at g_access+0x17e #10 0xffffffff806ef570 at g_dev_attrchanged+0x60 #11 0xffffffff806ef432 at g_dev_taste+0x2d2 #12 0xffffffff806f864a at g_new_provider_event+0xba #13 0xffffffff806f367e at g_run_events+0x20e #14 0xffffffff80744085 at fork_exit+0x85 #15 0xffffffff80a7b47e at fork_trampoline+0xe #0 doadump (textdump=3D) at pcpu.h:221 #1 0xffffffff8078cf29 in kern_reboot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:366 #2 0xffffffff8078d4db in vpanic (fmt=3D, ap=3D) at /usr/src/sys/kern/kern_shutdown.c:759 #3 0xffffffff8078d313 in panic (fmt=3D0x0) at /usr/src/sys/kern/kern_shutdown.c:690 #4 0xffffffff80a97d81 in trap_fatal (frame=3D0xfffffe0f9452d590, eva=3D0) = at /usr/src/sys/amd64/amd64/trap.c:841 #5 0xffffffff80a97a18 in trap (frame=3D0xfffffe0f9452d590) at /usr/src/sys/amd64/amd64/trap.c:203 #6 0xffffffff80a7af41 in calltrap () at /usr/src/sys/amd64/amd64/exception.S:236 #7 0xffffffff80304f65 in cdcheckmedia (periph=3D0xfffff80135338a00) at /usr/src/sys/cam/scsi/scsi_cd.c:2340 #8 0xffffffff802fe682 in cdopen (dp=3D) at /usr/src/sys/cam/scsi/scsi_cd.c:740 #9 0xffffffff806f2225 in g_disk_access (pp=3D0x9d, r=3D, w=3D0, e=3D1) at /usr/src/sys/geom/geom_disk.c:122 #10 0xffffffff806f800e in g_access (cp=3D0xfffff80019bd7480, dcr=3D1, dcw= =3D0, dce=3D1) at /usr/src/sys/geom/geom_subr.c:924 #11 0xffffffff806f800e in g_access (cp=3D0xfffff80019bd9580, dcr=3D1, dcw= =3D0, dce=3D0) at /usr/src/sys/geom/geom_subr.c:924 #12 0xffffffff806ef570 in g_dev_attrchanged (cp=3D0xfffff80019bd9580, attr=3D0xffffffff80c0c0b9 "GEOM::physpath") at /usr/src/sys/geom/geom_dev.c= :231 #13 0xffffffff806ef432 in g_dev_taste (mp=3D, pp=3D, insist=3D) at /usr/src/sys/geom/geom_dev.c:347 #14 0xffffffff806f864a in g_new_provider_event (arg=3D, flag=3D) at /usr/src/sys/geom/geom_subr.c:552 #15 0xffffffff806f367e in g_run_events () at /usr/src/sys/geom/geom_event.c= :264 #16 0xffffffff80744085 in fork_exit (callout=3D0xffffffff806f6120 , arg=3D0x0, frame=3D0xfffffe0f9452dac0) at /usr/src/sys/kern/kern_fork.c:1038 #17 0xffffffff80a7b47e in fork_trampoline () at /usr/src/sys/amd64/amd64/exception.S:611 #18 0x0000000000000000 in ?? () Looking at frame 7 the value for softc->disk is bogus: (kgdb) frame 7 #7 0xffffffff80304f65 in cdcheckmedia (periph=3D0xfffff80135338a00) at /usr/src/sys/cam/scsi/scsi_cd.c:2340 2340 if ((softc->disk->d_devstat->flags & DEVSTAT_BS_UNAVAILABLE= ) !=3D 0) (kgdb) print softc $1 =3D (struct cd_softc *) 0xfffff8013564a000 (kgdb) print softc->disk $2 =3D (struct disk *) 0xf741c7b074d58fe4 It looks like there may be a setup / locking issue, when the IPMI device triggered the insert of the cd. Relevant messages just prior to the panic: May 4 14:54:31 host02 kernel: cd0 at umass-sim1 bus 1 scbus3 target 0 lun 0 May 4 14:54:31 host02 kernel: cd0: Removable CD-= ROM SCSI device May 4 14:54:31 host02 kernel: cd0: 40.000MB/s transfers May 4 14:54:31 host02 kernel: cd0: 685MB (350720 2048 byte sectors) May 4 14:54:31 host02 kernel: cd0: quirks=3D0x10<10_BYTE_ONLY> --=20 You are receiving this mail because: You are the assignee for the bug.=