[Bug 230752] panic: excl->share in newnfs_request

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Aug 19 17:22:16 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230752

            Bug ID: 230752
           Summary: panic: excl->share in newnfs_request
           Product: Base System
           Version: CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: fs at FreeBSD.org
          Reporter: dim at FreeBSD.org

Created attachment 196354
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=196354&action=edit
Text dump of newnfs_request -> witness panic

I recently got a few similar panics, seemingly originating from newnfs_request.
 The panic goes like this:

shared lock of (lockmgr) ufs @ /usr/src/sys/kern/vfs_lookup.c:671
while exclusively locked from /usr/src/sys/kern/vfs_subr.c:2590
panic: excl->share
cpuid = 2
time = 1534686985
...
#1  doadump (textdump=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:366
#2  0xffffffff8044906b in db_dump (dummy=<optimized out>, 
    dummy2=<unavailable>, dummy3=<unavailable>, dummy4=<unavailable>)
    at /usr/src/sys/ddb/db_command.c:574
#3  0xffffffff80448e39 in db_command (last_cmdp=<optimized out>, 
    cmd_table=<optimized out>, dopager=1) at /usr/src/sys/ddb/db_command.c:481
#4  0xffffffff80448bb4 in db_command_loop ()
    at /usr/src/sys/ddb/db_command.c:534
#5  0xffffffff8044bd7f in db_trap (type=<optimized out>, code=<optimized out>)
    at /usr/src/sys/ddb/db_main.c:252
#6  0xffffffff80be79d5 in kdb_trap (type=3, code=0, tf=<optimized out>)
    at /usr/src/sys/kern/subr_kdb.c:693
#7  0xffffffff81084c3a in trap (frame=0xfffffe0000582fc0)
    at /usr/src/sys/amd64/amd64/trap.c:605
#8  <signal handler called>
#9  kdb_enter (why=0xffffffff8131179d "panic", msg=<optimized out>)
    at /usr/src/sys/kern/subr_kdb.c:479
#10 0xffffffff80b9d7b1 in vpanic (fmt=<optimized out>, ap=0xfffffe0000583130)
    at /usr/src/sys/kern/kern_shutdown.c:852
#11 0xffffffff80b9d550 in kassert_panic (fmt=0xffffffff812a3ed5 "excl->share")
    at /usr/src/sys/kern/kern_shutdown.c:749
#12 0xffffffff80c083a8 in witness_checkorder (lock=0xfffff80004190ba8, 
    flags=1, file=0xffffffff8130d3f0 "/usr/src/sys/kern/vfs_lookup.c", 
    line=<optimized out>, 
    interlock=0xffffffff81f64e2c <w_locklistdata+264684>)
    at /usr/src/sys/kern/subr_witness.c:1176
#13 0xffffffff80b70c3e in lockmgr_slock_hard (lk=<optimized out>, 
    flags=2106368, ilk=0xfffff80004190bd8, file=<optimized out>, 
    line=<optimized out>, lwa=<optimized out>)
    at /usr/src/sys/kern/kern_lock.c:567
#14 0xffffffff80b71d5b in __lockmgr_args (lk=<optimized out>, 
    flags=<optimized out>, ilk=<optimized out>, wmesg=<optimized out>, 
    pri=<optimized out>, timo=<optimized out>, 
    file=0xffffffff8130d3f0 "/usr/src/sys/kern/vfs_lookup.c", line=671)
    at /usr/src/sys/kern/kern_lock.c:1195
#15 0xffffffff80ec6a05 in _lockmgr_args (lk=0xfffff80004190ba8, 
    flags=2106368, ilk=<optimized out>, wmesg=<optimized out>, prio=0, 
    timo=0, file=<optimized out>, line=18) at /usr/src/sys/sys/lockmgr.h:104
#16 ffs_lock (ap=0xfffffe00005833c8) at /usr/src/sys/ufs/ffs/ffs_vnops.c:428
#17 0xffffffff81208059 in VOP_LOCK1_APV (
    vop=0xffffffff81b62d50 <ffs_vnodeops2>, a=0xfffffe00005833c8)
    at vnode_if.c:2087
#18 0xffffffff80c86927 in VOP_LOCK1 (vp=<optimized out>, flags=2106368, 
    file=<optimized out>, line=671) at ./vnode_if.h:859
#19 _vn_lock (vp=0xfffff80004190b40, flags=2106368, 
    file=0xffffffff8130d3f0 "/usr/src/sys/kern/vfs_lookup.c", line=671)
    at /usr/src/sys/kern/vfs_vnops.c:1531
#20 0xffffffff80c68fe6 in lookup (ndp=0xfffffe00005835a0)
    at /usr/src/sys/kern/vfs_lookup.c:669
#21 0xffffffff80c68aad in namei (ndp=0xfffffe00005835a0)
    at /usr/src/sys/kern/vfs_lookup.c:450
#22 0xffffffff80c49b85 in unp_connectat (fd=<optimized out>, 
    so=<optimized out>, nam=<optimized out>, td=0xfffff800036f2000)
    at /usr/src/sys/kern/uipc_usrreq.c:1554
#23 0xffffffff80c3bc98 in soconnectat (fd=<optimized out>, 
    so=<optimized out>, nam=0xfffff8000367d800, 
    td=0xffffffff80b7d390 <_mtx_init+144>)
    at /usr/src/sys/kern/uipc_socket.c:1230
#24 0xffffffff80e611b9 in clnt_vc_create (so=0xfffff80004c316d0, 
    raddr=0xfffff800035fc020, prog=553713921, vers=1, sendsz=4096, 
    recvsz=4096, intrflag=0) at /usr/src/sys/rpc/clnt_vc.c:159
#25 0xffffffff80e60439 in clnt_reconnect_connect (cl=0xfffff80003372840)
    at /usr/src/sys/rpc/clnt_rc.c:193
#26 clnt_reconnect_call (cl=0xfffff80003372840, ext=0xfffffe0000583ab0, 
    proc=1, args=0xfffff800048dda00, resultsp=0xfffffe0000583c28, 
    utimeout=...) at /usr/src/sys/rpc/clnt_rc.c:265
#27 0xffffffff80a637ec in newnfs_request (nd=0xfffffe0000583c28, nmp=0x0, 
    clp=0x0, nrp=0xffffffff82021a18 <nfsrv_nfsuserdsock>, vp=0x0, td=0x0, 
    cred=0xfffff80003e65000, prog=553713921, vers=1, retsum=0x0, toplevel=0, 
    xidp=0x0, dssep=0x0) at /usr/src/sys/fs/nfs/nfs_commonkrpc.c:818
#28 0xffffffff80a6d5f9 in nfsrv_getuser (procnum=1, uid=<optimized out>, 
    gid=<optimized out>, name=0x0, p=0xfffffe0000582ce0)
    at /usr/src/sys/fs/nfs/nfs_commonsubs.c:3616
#29 0xffffffff80a6d71a in nfsrv_getgrpscred (oldcred=0xfffff80003deec00)
    at /usr/src/sys/fs/nfs/nfs_commonsubs.c:3150
#30 0xffffffff80acf53e in nfsd_excred (nd=0xfffffe0000583ff8, 
    exp=<optimized out>, credanon=0xfffffe0000582f80)
    at /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:2932
#31 0xffffffff80aa8104 in nfsrvd_compound (nd=<optimized out>, isdgram=0, 
    tag=0x10 <error: Cannot access memory at address 0x10>, 
    taglen=<optimized out>, minorvers=<optimized out>, p=<optimized out>)
    at /usr/src/sys/fs/nfsserver/nfs_nfsdsocket.c:1008
#32 nfsrvd_dorpc (nd=0xfffffe0000583ff8, isdgram=0, 
    tag=0x10 <error: Cannot access memory at address 0x10>, taglen=7, 
    minorvers=<optimized out>, p=0xfffff800036f2000)
    at /usr/src/sys/fs/nfsserver/nfs_nfsdsocket.c:560
#33 0xffffffff80abc3a7 in nfs_proc (xid=<optimized out>, 
    xprt=<optimized out>, nd=<optimized out>, rpp=<optimized out>)
    at /usr/src/sys/fs/nfsserver/nfs_nfsdkrpc.c:387
#34 nfssvc_program (rqst=0xfffff8004d1d5800, xprt=0xfffff800035fb600)
    at /usr/src/sys/fs/nfsserver/nfs_nfsdkrpc.c:272
#35 0xffffffff80e68499 in svc_executereq (rqstp=<optimized out>)
    at /usr/src/sys/rpc/svc.c:1031
#36 svc_run_internal (grp=<optimized out>, ismaster=1)
    at /usr/src/sys/rpc/svc.c:1306
#37 0xffffffff80e6785e in svc_run (pool=<optimized out>)
    at /usr/src/sys/rpc/svc.c:1385
#38 0xffffffff80abca06 in nfsrvd_nfsd (td=<optimized out>, 
    args=0xfffffe0000584510) at /usr/src/sys/fs/nfsserver/nfs_nfsdkrpc.c:542
#39 0xffffffff80ad298b in nfssvc_nfsd (td=0xfffff800036f2000, 
    uap=<optimized out>) at /usr/src/sys/fs/nfsserver/nfs_nfsdport.c:3451
#40 0xffffffff80e45eeb in sys_nfssvc (td=0xfffff800036f2000, 
    uap=0xfffff800036f23c0) at /usr/src/sys/nfs/nfs_nfssvc.c:111
#41 0xffffffff810859ef in syscallenter (td=0xfffff800036f2000)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:135
#42 amd64_syscall (td=0xfffff800036f2000, traced=0)
    at /usr/src/sys/amd64/amd64/trap.c:1029
#43 <signal handler called>
#44 0x00000008002dee8a in ?? ()

I'm adding core.txt.2 for reference.  Full core dump available on request.

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


More information about the freebsd-fs mailing list