NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/58725: panic: ufsdirhash_findslot: '' not found



>Number:         58725
>Category:       kern
>Synopsis:       panic: ufsdirhash_findslot: '' not found
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 07 16:55:00 +0000 2024
>Originator:     Patrick Welche
>Release:        NetBSD-10.99.12/amd64 of 2024-Oct-7
>Organization:
>Environment:
GENERIC kernel minus xen and spectre
>Description:
Just started a sh build.sh -j40 -x -E build to update userland after rebooting into todays kernel when

(gdb) x/s panicstr
0xffffffff81b5ede0 <scratchstr.0>:  "ufsdirhash_findslot: '' not found"

#2  0xffffffff80e46de5 in vpanic (
    fmt=fmt@entry=0xffffffff816f29a0 "ufsdirhash_findslot: '%.*s' not found", 
    ap=ap@entry=0xffffb2084d4eba78) at ../../../../kern/subr_prf.c:288
#3  0xffffffff80e46ebc in panic (
    fmt=fmt@entry=0xffffffff816f29a0 "ufsdirhash_findslot: '%.*s' not found")
    at ../../../../kern/subr_prf.c:209
#4  0xffffffff80d77f59 in ufsdirhash_findslot (dh=dh@entry=0xffff80794b00fc10, 
    name=name@entry=0xffff80794a3cc544 "x86_\"C\214", namelen=0, 
    offset=offset@entry=1340) at ../../../../ufs/ufs/ufs_dirhash.c:977
#5  0xffffffff80d79a4b in ufsdirhash_move (ip=0xffff8079496233c0, 
    dirp=0xffff80794a3cc53c, oldoff=1340, newoff=1308)
    at ../../../../ufs/ufs/ufs_dirhash.c:730
#6  0xffffffff80d7e616 in ufs_dircompact (dvp=<optimized out>, 
    ulr=<optimized out>, dirp=dirp@entry=0xffff8079588e1000, 
    cnp=cnp@entry=0xffffb2084d4ebd70, newdirbp=0x0, tvp=<optimized out>)
    at ../../../../ufs/ufs/ufs_lookup.c:1005
#7  0xffffffff80d7ecd9 in ufs_direnter (dvp=dvp@entry=0xffff807948ae2840, 
    ulr=ulr@entry=0xffff807949623440, tvp=<optimized out>, 
    dirp=dirp@entry=0xffff8079588e1000, cnp=cnp@entry=0xffffb2084d4ebd70, 
    newdirbp=newdirbp@entry=0x0) at ../../../../ufs/ufs/ufs_lookup.c:1110
#8  0xffffffff80d88953 in ufs_makeinode (vap=<optimized out>, 
    dvp=dvp@entry=0xffff807948ae2840, ulr=<optimized out>, 
    vpp=<optimized out>, cnp=0xffffb2084d4ebd70)
    at ../../../../ufs/ufs/ufs_vnops.c:2289
#9  0xffffffff80d88c46 in ufs_create (v=0xffffb2084d4ebca8)
    at ../../../../ufs/ufs/ufs_vnops.c:163
#10 0xffffffff80ec92a2 in VOP_CREATE (dvp=0xffff807948ae2840, 
    vpp=vpp@entry=0xffffb2084d4ebd48, cnp=cnp@entry=0xffffb2084d4ebd70, 
    vap=vap@entry=0xffffb2084d4ebd90) at ../../../../kern/vnode_if.c:485
#11 0xffffffff80ec0b64 in vn_open (at_dvp=at_dvp@entry=0x0, 
    pb=pb@entry=0xffff80794d897940, nmode=nmode@entry=16, 
    fmode=fmode@entry=2563, cmode=384, ret_vp=ret_vp@entry=0xffffb2084d4ebec8, 
    ret_domove=0xffffb2084d4ebeb7, ret_fd=0xffffb2084d4ebeb8)
    at ../../../../kern/vfs_vnops.c:273
#12 0xffffffff80eb2b1f in do_open (l=l@entry=0xffff80794b41d800, dvp=0x0, 
    pb=0xffff80794d897940, open_flags=open_flags@entry=2562, 
    open_mode=open_mode@entry=384, fd=fd@entry=0xffffb2084d4ebf7c)
    at ../../../../kern/vfs_syscalls.c:1770
#13 0xffffffff80eb2c32 in do_sys_openat (l=0xffff80794b41d800, 
    fdat=fdat@entry=-100, path=<optimized out>, flags=2562, mode=384, 
    fd=fd@entry=0xffffb2084d4ebf7c) at ../../../../kern/vfs_syscalls.c:1853
#14 0xffffffff80eb2d84 in sys_open (l=<optimized out>, uap=<optimized out>, 
    retval=0xffffb2084d4ebfb0) at ../../../../kern/vfs_syscalls.c:1874
#15 0xffffffff805a90f1 in sy_call (rval=0xffffb2084d4ebfb0, 
    uap=0xffffb2084d4ec000, l=0xffff80794b41d800, 
    sy=0xffffffff81a7e558 <sysent+120>) at ../../../../sys/syscallvar.h:65
#16 sy_invoke (code=5, rval=0xffffb2084d4ebfb0, uap=0xffffb2084d4ec000, 
    l=0xffff80794b41d800, sy=0xffffffff81a7e558 <sysent+120>)
    at ../../../../sys/syscallvar.h:94
#17 syscall (frame=0xffffb2084d4ec000)
    at ../../../../arch/x86/x86/syscall.c:137
#18 0xffffffff8020e6bd in handle_syscall ()

After a reboot into single user mode and an fsck which did find problems

(gdb) x/s panicstr
0xffffffff81b5ede0 <scratchstr.0>:  "ufsdirhash_findfree: free mismatch"

and one can repeat the fsck / coredump cycle...

This is GENERIC - I will try with LOCKDEBUG...
(This is the laptop of PR 58410 fame)

>How-To-Repeat:

>Fix:



Home | Main Index | Thread Index | Old Index