[Bug 276251] kernel panic due to issues with CD/DVD/BD drive

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 10 Jan 2024 22:58:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276251

            Bug ID: 276251
           Summary: kernel panic due to issues with CD/DVD/BD drive
           Product: Base System
           Version: 13.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: andreas.bock@virtual-arts-software.de

Created attachment 247582
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247582&action=edit
excerpt from the message log

The system is equipped with one SATA CD/DVD/BD disc drive.
Immediately after system startup, the kernel panicked while trying to connect
to the SATA disc drive.
It seems to have been a problem with the SATA connectors. The drive is now
working again.


crash summary:

13.2-RELEASE-p9 FreeBSD 13.2-RELEASE-p9 releng/13.2-n254652-c78c31d2ef40
GENERIC  amd64

panic: page fault

GNU gdb (GDB) 13.2 [GDB v13.2 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-portbld-freebsd13.2".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /boot/kernel/kernel...
Reading symbols from /usr/lib/debug//boot/kernel/kernel.debug...

Unread portion of the kernel message buffer:
[59] trap number                = 12
[59] panic: page fault
[59] cpuid = 11
[59] time = 1704445074
[59] KDB: stack backtrace:
[59] #0 0xffffffff807ae5b5 at kdb_backtrace+0x65
[59] #1 0xffffffff80760f31 at vpanic+0x151
[59] #2 0xffffffff80760dd3 at panic+0x43
[59] #3 0xffffffff80abffa7 at trap_fatal+0x387
[59] #4 0xffffffff80abffff at trap_pfault+0x4f
[59] #5 0xffffffff80a971b8 at calltrap+0x8
[59] #6 0xffffffff8069deb6 at disk_destroy+0x36
[59] #7 0xffffffff8031c042 at cdcleanup+0x92
[59] #8 0xffffffff802f4c4a at cam_periph_release_locked_buses+0xaa
[59] #9 0xffffffff802f4e2b at cam_periph_release_locked+0x1b
[59] #10 0xffffffff8032140c at cddone+0x15c
[59] #11 0xffffffff802fe193 at xpt_done_process+0x313
[59] #12 0xffffffff803000a5 at xpt_done_td+0xf5
[59] #13 0xffffffff8071e1de at fork_exit+0x7e
[59] #14 0xffffffff80a9822e at fork_trampoline+0xe
[59] Uptime: 59s
[59] Dumping 8556 out of 262104 MB:..1% (CTRL-C to abort)  (CTRL-C to abort) 
(CTRL-C to abort)  (CTRL-C to abort)
..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:396
#2  0xffffffff80760afa in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:484
#3  0xffffffff80760f9e in vpanic (fmt=<optimized out>,
    ap=ap@entry=0xfffffe02ca9311c0) at /usr/src/sys/kern/kern_shutdown.c:923
#4  0xffffffff80760dd3 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:847
#5  0xffffffff80abffa7 in trap_fatal (frame=0xfffffe02ca9312b0, eva=32)
    at /usr/src/sys/amd64/amd64/trap.c:942
#6  0xffffffff80abffff in trap_pfault (frame=0xfffffe02ca9312b0,
    usermode=false, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:761
#7  <signal handler called>
#8  0xffffffff807a6f93 in devstat_remove_entry (ds=0xfffff80102cc1c60)
    at /usr/src/sys/kern/subr_devstat.c:206
#9  0xffffffff8069deb6 in disk_destroy (dp=0xfffff8184913e400)
    at /usr/src/sys/geom/geom_disk.c:923
#10 0xffffffff8031c042 in cdcleanup (periph=0xfffff8184918a500)
    at /usr/src/sys/cam/scsi/scsi_cd.c:412
#11 0xffffffff802f4c4a in camperiphfree (periph=0xfffff8184918a500)
    at /usr/src/sys/cam/cam_periph.c:741
#12 cam_periph_release_locked_buses (periph=periph@entry=0xfffff8184918a500)
    at /usr/src/sys/cam/cam_periph.c:448
#13 0xffffffff802f4e2b in cam_periph_release_locked (
    periph=0xfffff8184918a500, periph@entry=0x6)
    at /usr/src/sys/cam/cam_periph.c:459
#14 0xffffffff802fc1d7 in xpt_run_allocq (periph=0xfffff80102cc1c60,
    periph@entry=0x5, sleep=1067954999, sleep@entry=0)
    at /usr/src/sys/cam/cam_xpt.c:3367
#15 0xffffffff802fcfe5 in xpt_release_ccb (
    free_ccb=free_ccb@entry=0xfffff81049131800)
    at /usr/src/sys/cam/cam_xpt.c:3938
#16 0xffffffff8032140c in cddone (periph=0xfffff8184918a500,
    done_ccb=0xfffff81049131800) at /usr/src/sys/cam/scsi/scsi_cd.c:1441
#17 0xffffffff802fe193 in xpt_done_process (ccb_h=0xfffff81049131800)
    at /usr/src/sys/cam/cam_xpt.c:5435
#18 0xffffffff803000a5 in xpt_done_td (
    arg=arg@entry=0xffffffff80f3f180 <cam_doneqs+128>)
    at /usr/src/sys/cam/cam_xpt.c:5462
#19 0xffffffff8071e1de in fork_exit (
    callout=0xffffffff802fffb0 <xpt_done_td>,
    arg=0xffffffff80f3f180 <cam_doneqs+128>, frame=0xfffffe02ca931f40)
    at /usr/src/sys/kern/kern_fork.c:1093
#20 <signal handler called>
(kgdb)

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