[Bug 273418] [panic] Repeating kernel panic on open(/dev/console)

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 21 Sep 2023 07:29:59 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273418

--- Comment #27 from Eugene Grosbein <eugen@freebsd.org> ---
(kgdb) bt
#0  __curthread () at /data/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=textdump@entry=1) at
/data/src/sys/kern/kern_shutdown.c:396
#2  0xffffffff80c0dd43 in kern_reboot (howto=260) at
/data/src/sys/kern/kern_shutdown.c:484
#3  0xffffffff80c0e1af in vpanic (fmt=<optimized out>,
ap=ap@entry=0xfffffe0152d4d5d0)
    at /data/src/sys/kern/kern_shutdown.c:923
#4  0xffffffff80c0df33 in panic (fmt=<unavailable>) at
/data/src/sys/kern/kern_shutdown.c:847
#5  0xffffffff80a994d2 in devfs_free (cdev=0xfffff804490bf400)
    at /data/src/sys/fs/devfs/devfs_devs.c:180
#6  0xffffffff80b9dc2d in dev_rel (dev=<unavailable>,
dev@entry=0xfffff804490bf400)
    at /data/src/sys/kern/kern_conf.c:178
#7  0xffffffff80a9ffdf in devfs_reclaim_vchr (ap=<optimized out>)
    at /data/src/sys/fs/devfs/devfs_vnops.c:1574
#8  0xffffffff811eb084 in VOP_RECLAIM_APV (vop=0xffffffff81ab08a8
<devfs_specops>,
    a=a@entry=0xfffffe0152d4d670) at vnode_if.c:2180
#9  0xffffffff80cfceb4 in VOP_RECLAIM (vp=0xfffff80464929000) at
./vnode_if.h:1087
#10 vgonel (vp=vp@entry=0xfffff80464929000) at
/data/src/sys/kern/vfs_subr.c:4150
#11 0xffffffff80cfd50f in vgone (vp=vp@entry=0xfffff80464929000)
    at /data/src/sys/kern/vfs_subr.c:3969
#12 0xffffffff80a99c81 in devfs_delete (dm=dm@entry=0xfffff80003f26d00,
    de=de@entry=0xfffff80440133a00, flags=flags@entry=0)
    at /data/src/sys/fs/devfs/devfs_devs.c:411
#13 0xffffffff80a9a7a5 in devfs_populate_loop (dm=dm@entry=0xfffff80003f26d00,
    cleanup=cleanup@entry=0) at /data/src/sys/fs/devfs/devfs_devs.c:551
#14 0xffffffff80a9a12a in devfs_populate (dm=dm@entry=0xfffff80003f26d00)
    at /data/src/sys/fs/devfs/devfs_devs.c:684
#15 0xffffffff80a9f3a8 in devfs_populate_vp (vp=0xfffff80003fcb5b8)
    at /data/src/sys/fs/devfs/devfs_vnops.c:359
#16 0xffffffff80a9d67b in devfs_lookup (ap=0xfffffe0152d4da30)
    at /data/src/sys/fs/devfs/devfs_vnops.c:1187
#17 0xffffffff80cecbb1 in VOP_LOOKUP (dvp=0xfffff80003fcb5b8,
vpp=0xfffffe0152d4dd10,
    cnp=0xfffffe0152d4dd38) at ./vnode_if.h:69
#18 lookup (ndp=ndp@entry=0xfffffe0152d4dcb8) at
/data/src/sys/kern/vfs_lookup.c:1092
#19 0xffffffff80cebba2 in namei (ndp=ndp@entry=0xfffffe0152d4dcb8)
    at /data/src/sys/kern/vfs_lookup.c:617
#20 0xffffffff80d11f90 in vn_open_cred (ndp=ndp@entry=0xfffffe0152d4dcb8,
    flagp=flagp@entry=0xfffffe0152d4ddd4, cmode=cmode@entry=0,
    vn_open_flags=vn_open_flags@entry=16, cred=0xfffff8044037dc00,
fp=0xfffff804646c30a0)
    at /data/src/sys/kern/vfs_vnops.c:328
#21 0xffffffff80d08c58 in kern_openat (td=0xfffffe0037918c80,
    td@entry=<error reading variable: value is not available>, fd=-100,
    fd@entry=<error reading variable: value is not available>,
    path=0x2dbfc31974a0 <error: Cannot access memory at address
0x2dbfc31974a0>,
    path@entry=<error reading variable: value is not available>,
pathseg=UIO_USERSPACE,
    pathseg@entry=<error reading variable: value is not available>, flags=6,
    flags@entry=<error reading variable: value is not available>,
mode=<unavailable>,
    mode@entry=<error reading variable: value is not available>)
    at /data/src/sys/kern/vfs_syscalls.c:1158
#22 0xffffffff81117283 in syscallenter (td=<optimized out>)
    at /data/src/sys/amd64/amd64/../../kern/subr_syscall.c:190
#23 amd64_syscall (td=0xfffffe0037918c80, traced=0) at
/data/src/sys/amd64/amd64/trap.c:1183
#24 <signal handler called>
#25 0x00002dbfc61e004a in ?? ()
Backtrace stopped: Cannot access memory at address 0x2dbfc3197398

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