Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Jun 2017 15:43:00 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Rick Macklem <rmacklem@uoguelph.ca>
Cc:        FreeBSD FS <freebsd-fs@FreeBSD.org>
Subject:   NFS panic: newnfs_copycred: negative nfsc_ngroups
Message-ID:  <2b7a77df-8291-d399-6d1f-c454fbb2a5d9@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--qLkRtHPOE1ng6AK76SLBOBv3Q07x8Mkgg
Content-Type: multipart/mixed; boundary="7jvj01t9qTfBf6Ok3GJkfXWHsugOSlKGp";
 protected-headers="v1"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Rick Macklem <rmacklem@uoguelph.ca>
Cc: FreeBSD FS <freebsd-fs@FreeBSD.org>
Message-ID: <2b7a77df-8291-d399-6d1f-c454fbb2a5d9@FreeBSD.org>
Subject: NFS panic: newnfs_copycred: negative nfsc_ngroups

--7jvj01t9qTfBf6Ok3GJkfXWHsugOSlKGp
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

Last reported here but I forgot to follow-up
https://lists.freebsd.org/pipermail/freebsd-current/2013-July/042996.html=


I still get this quite often.

Server is: 10.2-RELEASE-p2

Client is: 12.0-CURRENT #5 r318116M

mount is (no soft or intr since 2013):

> tank:/tank/distfiles/freebsd                        /mnt/distfiles     =
 nfs             rw,bg,noatime,rsize=3D65536,wsize=3D65536,readahead=3D8,=
nfsv4,rdirplus    0       0

I have a core for debugging...
> (kgdb) bt
> #0  __curthread () at ./machine/pcpu.h:232
> #1  doadump (textdump=3D1) at /usr/src/sys/kern/kern_shutdown.c:318
> #2  0xffffffff803abf3c in db_fncall_generic (addr=3D<optimized out>, rv=
=3D<optimized out>, nargs=3D<optimized out>, args=3D<optimized out>) at /=
usr/src/sys/ddb/db_command.c:581
> #3  db_fncall (dummy1=3D<optimized out>, dummy2=3D<optimized out>, dumm=
y3=3D<optimized out>, dummy4=3D<optimized out>) at /usr/src/sys/ddb/db_co=
mmand.c:629
> #4  0xffffffff803abaaf in db_command (last_cmdp=3D<optimized out>, cmd_=
table=3D<optimized out>, dopager=3D<optimized out>) at /usr/src/sys/ddb/d=
b_command.c:453
> #5  0xffffffff803ab7e4 in db_command_loop () at /usr/src/sys/ddb/db_com=
mand.c:506
> #6  0xffffffff803ae89f in db_trap (type=3D<optimized out>, code=3D<opti=
mized out>) at /usr/src/sys/ddb/db_main.c:248
> #7  0xffffffff80a9fda3 in kdb_trap (type=3D3, code=3D-61456, tf=3D<opti=
mized out>) at /usr/src/sys/kern/subr_kdb.c:654
> #8  0xffffffff80ee9286 in trap (frame=3D0xfffffe355f840540) at /usr/src=
/sys/amd64/amd64/trap.c:537
> #9  <signal handler called>
> #10 kdb_enter (why=3D0xffffffff81455661 "panic", msg=3D<optimized out>)=
 at /usr/src/sys/kern/subr_kdb.c:444
> #11 0xffffffff80a5d759 in vpanic (fmt=3D<optimized out>, ap=3D0xfffffe3=
55f8406d0) at /usr/src/sys/kern/kern_shutdown.c:772
> #12 0xffffffff80a5d59f in _kassert_panic (fatal=3D1, fmt=3D0xffffffff81=
434d8b "newnfs_copycred: negative nfsc_ngroups") at /usr/src/sys/kern/ker=
n_shutdown.c:669
> #13 0xffffffff80946ec2 in newnfs_copycred (nfscr=3D0xfffff8047b3eb530, =
cr=3D0xfffff80122cfa500) at /usr/src/sys/fs/nfs/nfs_commonport.c:244
> #14 0xffffffff8094bddc in nfscl_getstateid (vp=3D<optimized out>, nfhp=3D=
0xfffff80501233902 "\233\262\tM\336\006\236\313\n", fhlen=3D28, mode=3D1,=
 fords=3D<optimized out>, cred=3D<optimized out>, p=3D<optimized out>, st=
ateidp=3D<optimized out>, lckpp=3D<optimized out>) at /usr/src/sys/fs/nfs=
client/nfs_clstate.c:630
> #15 0xffffffff8095ca88 in nfsrpc_read (vp=3D0xfffff8030bc209c0, uiop=3D=
0xfffffe355f840af8, cred=3D0xfffff80122cfa500, p=3D0x0, nap=3D0xfffffe355=
f8409d0, attrflagp=3D0xfffffe355f840aa4, stuff=3D<optimized out>) at /usr=
/src/sys/fs/nfsclient/nfs_clrpcops.c:1396
> #16 0xffffffff8096b90a in ncl_readrpc (vp=3D0xfffff8030bc209c0, uiop=3D=
0xfffffe355f840af8, cred=3D0xfffff801b4913300) at /usr/src/sys/fs/nfsclie=
nt/nfs_clvnops.c:1375
> #17 0xffffffff80976656 in ncl_doio (vp=3D0xfffff8030bc209c0, bp=3D0xfff=
ffe349a268750, cr=3D<optimized out>, td=3D0x0, called_from_strategy=3D<op=
timized out>) at /usr/src/sys/fs/nfsclient/nfs_clbio.c:1643
> #18 0xffffffff80978694 in nfssvc_iod (instance=3D<optimized out>) at /u=
sr/src/sys/fs/nfsclient/nfs_clnfsiod.c:302
> #19 0xffffffff80a1e394 in fork_exit (callout=3D0xffffffff80978420 <nfss=
vc_iod>, arg=3D0xffffffff81c7de64 <nfs_asyncdaemon+4>, frame=3D0xfffffe35=
5f840c00) at /usr/src/sys/kern/kern_fork.c:1038
> #20 <signal handler called>
> (kgdb) p *nfscr
> $3 =3D {nfsc_uid =3D 3735929054, nfsc_groups =3D {3735929054 <repeats 1=
7 times>}, nfsc_ngroups =3D -559038242}
> (kgdb) frame 17
> #17 0xffffffff80976656 in ncl_doio (vp=3D0xfffff8030bc209c0, bp=3D0xfff=
ffe349a268750, cr=3D<optimized out>, td=3D0x0, called_from_strategy=3D<op=
timized out>) at /usr/src/sys/fs/nfsclient/nfs_clbio.c:1643
> (kgdb) p vp->v_mount->mnt_stat.f_mntonname
> $8 =3D "/mnt/distfiles", '\000' <repeats 73 times>

I had some bogus -domain in my nfsuserd options on the client that I
removed after the recent panic. Not sure if it is relevant.

--=20
Regards,
Bryan Drewery


--7jvj01t9qTfBf6Ok3GJkfXWHsugOSlKGp--

--qLkRtHPOE1ng6AK76SLBOBv3Q07x8Mkgg
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJZMzt4AAoJEDXXcbtuRpfPF2gH/0iXNZcbl2JRglqrYQAQLKR5
WN2zbOEIrgaHjyaTiXIad+HWMgSmnNQCMm3Z5TeX5nHDCDnwvCeVVflGZQQ28iYo
lNLMtcsTMpFkykyJRX9YhgxMKY2zqv9CwGR/ZIkLznM4q6V43L8jLFXEVflf5fkn
OsjjqWjh9HfGVrhb++D135SCvVM3Pmyp5wgO5r2j9IpkTly1aOs3RcNNidDPoPr2
Zc2X5xU7aNA01WLJbhVSQ18BHZtyyBgkJFeDIA0xxZVQV86q3uf1jV4uMlmfX9l1
IlCxPV0X/JkGsti3Z6zr5UWfcrSz0F12fMAbFa4crzqYEnQKDOPJ6/m9Yd6nS0M=
=l0vg
-----END PGP SIGNATURE-----

--qLkRtHPOE1ng6AK76SLBOBv3Q07x8Mkgg--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2b7a77df-8291-d399-6d1f-c454fbb2a5d9>