HomeFreeBSD

Fix a crash during unmount of an NFSv4.1 mount.

Description

Fix a crash during unmount of an NFSv4.1 mount.

Larry Rosenman reported a crash on freebsd-current@ which was caused by
a premature release of the krpc backchannel socket structure.
I believe this was caused by a race between the SVC_RELEASE() in clnt_vc.c
and the xprt_unregister() in the higher layer (clnt_rc.c), which tried
to lock the mutex in the xprt structure and crashed.
This patch fixes this by removing the xprt_unregister() in the clnt_vc
layer and allowing this to always be done by the clnt_rc (higher reconnect
layer).

Reported by: ler@lerctr.org
Tested by: ler@letctr.org
MFC after: 2 weeks

Details

Provenance
rmacklemAuthored on Apr 10 2017, 10:47 PM
Parents
rGfb5567915162: Set initial values for nfsstatfs in the NFSv4 client.
Branches
Unknown
Tags
Unknown

Event Timeline